Basic command:
Format: command [-options] [parameters]
such as: ls-l/etc
-rw-r--r--
File type Owner Permissions group permissions other people permissions
-:-Binary
Catalog D
L Link
RWX: Read and write execution
ls: Show directory file
-A All Files
-L verbose display
-h display size is calculated by K
-ld View the details of a directory without looking at its subdirectories
-I view the I-node unique ID of the directory file
mkdir: Creating a Directory
-P Recursive options
CD: Switch directories
PWD: Show current directory
RmDir: Delete Empty directory
RM: Delete files (directory also line)
-rf
-R Delete Directory
-F Force Delete
CP: Copy
-R Copy Directory
-P Reserved File attributes
MV: Cut renaming
Touch: Create an empty file
Cat: View text class capacity (for short pieces)
-N Display Line number
TAC: Inverted display
MORE: Paging display file (long file)
Blank or F-page return line-Break Q exit
Less: Paging file (long file)
Blank or F page return to line Q exit PgUp go up
/keyword search Content n search Next
Head: View the first few lines of the file (default 10 lines)
-n Specifies the number of rows
Tail: See the file after a few lines
-N: Specify the number of rows
-F: Dynamically displays the end-of-file class capacity
LN: Generating a linked file
-S Create soft connection
Example: Ln-s source file Destination file generation soft connection (shortcut)
ln source file destination file generated hard link (source file destination file sync update, copy, source file missing hard link still in, cannot cross partition)
by Ls-i to see if it is a hard link, I-node numbers are the same
This article is from the "Tommy Lin" blog, so be sure to keep this source http://linyingyong.blog.51cto.com/6609544/1775696
File processing commands for Linux basic commands