Linux Shell script programming learning notes and practice, Script Programming learning notes

Source: Internet
Author: User
Tags time and date

Linux Shell script programming learning notes and practice, Script Programming learning notes

Http://www.1987.name/141.html

Shell Basics
  • Terminal printing, arithmetic operations, common variables
  • Search for specific strings in a specified directory in Linux and highlight matching keywords
  • Obtain the standard input [read command] from the keyboard or file
  • File descriptor and redirection
  • Array, associated array, and alias usage
  • Function Definition, execution, passing parameters, and recursive functions
  • Conditional test operations and flow control statements
  • Get the time and date format and latency [date, sleep command]
  • DEBUG internal field delimiter IFS and script
  • Display, read, or splice file content [cat command]
  • File Search and print file list [find command]
  • [Xargs command]
  • Character conversion, deletion, and compression tools [tr command]
  • Sort, single, and repeat text [sort, uniq command]
  • Split file name extract file extension or extract file name [%, % And #, #]
  • Features of Shell Regular Expressions and grep, sed, and awk
  • Search for the text tool in the file [grep command]
  • File field splitting tool by column [cut command]
  • Text processing stream editor [sed command]
  • Process text and data [awk programming]
  • Temporary File naming method and random number [tempfile command]
  • Create And split files of any size [dd, split, csplit command]
  • Linux file comparison, intersection of text files, difference sets, and deviation [comm command]
  • Use commands to download website files or webpages [wget, lynx command]
  • Command Line advanced network tool [curl command]
  • Monitor file and directory access information and record [inotifywait command]
  • Linux System Log-related commands, files, and management tools [logrotate, logger commands]
  • Current logon user, startup log, and startup fault information [who, w, users, uptime, last, lastb command]
  • Time spent on computing command execution [time Command]
  • Archive and decompress data [tar, cpio, gzip, bzip, lzma, zip]
Shell practice
  • A Linux Server uploads file scripts to multiple servers at the same time.
  • Linux VPS and Linux system anti-DDOS script
  • Nginx smooth upgrade script for uninterrupted services
  • Linux/Unix: summary
  • Simple MySQL database regular backup Shell script


Two books for LINUX SHELL

For beginners, You can first look at "Linux commands, editors and Shell programming" and "Practical LINUX + SHELL programming and Server Management".
After reading the advanced Bash Script Programming Guide with a certain understanding of shell, you will find it easier.

Books on LINUX shell Script Programming

<Linux Shell programming> <Linux System Management/red hat9 from entry to entry> <24 hours proficient in UNIX shell programming "proficient in UNIX Shell script programming" can be bought .. query the local bookstore.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.