One: Time
Date-View current time date %y:%m:%d--Specify format output date-s "00:00:00" --Modify time 00:00:00cal --command line View Calendar Uptime--run time information & nbsp; two: Output view echo "" --return "" Specify content Cat filename--View file contents (all) more file name--page to view file, Space page down, only backward, not forward less file name--page to view the file, Up and down keys support front and back page head file name---View file default first 10 line head-n file name--view file n rows tail file name--view file default end 10 line tail-n file name--View end of file n rows tail-f file name--terminal does not exit, see the end of the file new append line, generally used to view the last write log information Three: View Hardware Device LSPCI--View device lspci-v View device Details LSUSB--View USB device lsusb  -V--View USB Detail Device lsmod--view current load all drives Four: shutdown restart shutdown [critical, restart] time-h shutdown-R Restart such as: Immediate shutdown: shutdown-h now10 minute Shutdown: shutdown-h 10 Specify time off: shutdown-h 12:30 Restart now: Shutdown-r now Linux also offers poweroff immediate shutdown and reboot immediate Restart V: Archive compression command zip to compress file zip [compressed file] [file needed to compress]:zip shark.zip myfileunzip [compressed file] for decompression: Unzip Install.zip tar: Used as archive command tar-cvf[archived new Archive] [to create an archived file] tar-xvf[Archive document]--release archive tar- CVZF: Archive and then compress the surviving. tar.gz file, the compression process takes longer than TAR-CVF, and the compressed file size is small TAR-CVZF [new archive after archive] [to create an archived file]&Nbsp;tar-cvzf test.tar.gz install.log Six: Find locate "keywords"--quick find, not real-time updates, need Updatedb find "Find directory" "Find parameters" find/-name *aad* Find/Under Include AAD files find/-name *.conf Find/Under *.conf file find/-perm 777 Find files with 777 permissions & nbsp;
Linux basic commands