Directory processing commands
ls view catalog
pwd view the current directory
cd switch directory
mkdir create directory
rm delete
cp Copy
mv move
find find
File processing commands
touch create file
more,cat,head,tail view file
more a.java Starting from the first page, press the enter key to wrap, space to turn pages, q to exit
cat a.java View the last page of a.java file
head a.java View the first 10 lines of a.java file
tail a.java View the last 10 lines of a.java file
vi edit file
Exit the command after editing
:wq Save and exit shortcut key shift+zz
:q Shortcut key to exit without saving and exit shift+zq
:q! Force exit without saving
Compress, decompress commands
Common compression format zip gz in Linux
Compress the file to be compressed by tar -zcvf compressed package name
Unzip tar -zxvf compressed file -C directory to unzip
Authority management commands
chmod +xxx (xxx is a number, the maximum is 777) + file or directory name.