Accumulation of small knowledge points used in Linux systems

Source: Internet
Author: User

Preface: In Ubuntu to do things under the terminal to run some commands, or in vim to do some operation, naturally need to use some small knowledge points, not how to systematically see "bird Brother's dishes", basically encountered what the problem to achieve what function, find blog, learn the knowledge point, Some scattered, then a little accumulation of summary.

1. Batch-processing command SH:

Need to run multiple commands at the terminal, write those commands into a file, and name xx.sh, the terminal run SH xx.sh can break, the terminal will be a run xx.sh file inside the command.

2.echo:

In the batch command, you need to use the command to output some of the things you want to the terminal, echo can be broken, like python inside the print, under the terminal echo "================" like the Python bid to write down how the program run the sentence Print 30* "*".

3. Pipeline redirection >,>>:

> is the output to the specified file, such as the file already exists and will be re-written, the original content of the file will not be retained.

>> is to append the output to the file, the original content of the file will be preserved.
$ ls >> log.txt or $ ls > log.txt
In addition there are script,tee and other commands, idle time and then systematically look down to write down.

4.grep,awk,sed:


5. To be Continued ...

#=============================
Reference: "Brother Bird's Linux private cuisine"


Accumulation of small knowledge points used in Linux systems

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.