Instructions for using pipelines and redirects in Linux systems

Source: Internet
Author: User
Keywords Linux
Tags aliyun browser difference example file function html http

>
A redirection symbol that redirects the output of a command to a file. For example, we want to save the result of command LS as a http://www.aliyun.com/zixun/aggregation/19352.html ">filelist file, make a list, and we can use the redirection symbol to do it:

ls > filelist

>>
The effect is basically the same as >, except that >> writes the output of the command to the end of the file in an append manner.

<
is a redirection from file to command, and the contents of the file are entered as commands.

|
is a pipe symbol that is used to output the previous command as input to the next command. Assuming that there are too many files in a directory, using the LS command is not able to be fully displayed on the screen, this time you can use the output of the LS command, through the pipe symbol, as the browser pager input. You can use the browser's capabilities to page, find:

Ls-al | Pager

Tip:less browser's key bindings are almost the same as man, see the online Help system.

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.