In linux, the cat command-Linux general technology-Linux technology and application information. The following is a detailed description. The cat command is to view the file content:
For example, # cat a.txt, while vi is a file editor
Try: # cat> a.txt and enter the following content
Hello solary! Ctrl + D
# Cat a.txt: Check the content:
# Cat-n textfile1> textfile2: add the row number to the file content of textfile1 and overwrite the file content of textfile2.
# Cat-B textfile1 textfile2> textfile3 adds the content of textfile1 and textfile2 to the row number (blank rows are not added) and adds the content to textfile3.
Note: The cat command is used to view the file content, while the directory cannot be viewed using cat. The ls command is used to view the directory.
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