Linux instructions: file directory management - Cat

xiaoxiao2021-03-06  90

Name: CAT Use Permissions: All users use mode: cat [-abeensttuv] [--help] [--Version] filename Description: Connect the file to the basic output (screen or plus> filename to another) Parameters: -N or --Number is similar to the number of rows numbers -b or -number-nonblank and -n of all outputs, but it is encountered for blank lines - Square In a row of two consecutive lines, it is changed to a line -V or -show-nonprinting example: cat -n textfile1> textfile2 Enter the textfile2 file with the line number after entering textfile2 CAT -B TextFile1 TextFile2 >> TextFile3 adds the contents of TextFile1 and TextFile2 with the line number (blank line does not add) to TextFile 3. Example: After adding the file content of TextFile1, enter the textfile2. Cat -n textfile1> textFile2 adds the contents of TextFile1 and TextFile2 to TextFile 3 after the line number (blank line does not add). CAT -B TEXTFILE1 TEXTFILE2 >> TEXTFILE3 CAT / dev / null> /etc/test.txt This is a clear /etc/test.txt file content CAT can also be used to make image file. For example, you want to make a soft disc's image, put the soft disc, play the soft disc, if you want to write image file to floppy disc, please play Cat IMG_FILE> / DEV / FD0 Note: 1. Outfile Refers to the output image file name. 2. IMG_FILE refers to image file. 3. If you write from Image File back DEVICE, the device capacity needs to be quite. 4. Usually used in the production of boot magnetic sheets.

转载请注明原文地址:https://www.9cbs.com/read-123780.html

New Post(0)