Linux notes: File Processing command Touch,cat,more,less,head,tail

Source: Internet
Author: User

Command name: Touch
Features: New file
directory where the command is located:/bin/touch
Usage: Touch file name

Command name: Cat
Function: Display file contents
directory where the command is located:/bin/cat
Usage: Cat [-n] File name
Parameters:
-N Display Line number
Other: If the file information is longer, only the following lines are displayed.

File processing commands
Command name: more
Features: page display of file contents
directory where the command is located:/bin/more
Usage: more file names
Other:
Space or F page
Enter next line
Q or Q exit

Command name: Less
Features: Paging through the contents of the file (can page up)
directory where the command is located: usr/bin/less
Usage: Less file name
Other:
Page UP pages up
Up ARROW on row
/keyword Search
N Continue search down

Command name: Head
Function: Display the first few lines of the file
directory where the command is located:/usr/bin/head
Usage: head-n How many rows of file names

Command name: Tail
Function: Display the file after a few lines
directory where the command is located:/usr/bin/tail
Usage: tail-n How many rows of file names
Parameters:
-n Specifies the number of rows
-F Dynamic display of file end content

Linux notes: File Processing command Touch,cat,more,less,head,tail

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.