1. Getting Help information: Man
Man ls: Get help with ls command
Man services: View the Help information for profile services, directly add the file name, no absolute path required
Help: 1 indicates help for the command, 5 indicates help for the configuration file
Mans 1 passwd
2. View the command description: Whatis
3. Production See profile information: Apropos profile Name
3. Get help with Shell built-in commands:
Help umask: View the umask command's helpful information
4. Options for viewing commands: Command--help
4. Add a new User: Useradd
Useradd Weigy
5. Set User password: passwd
passwd User Name
6. View logged in user information: WHO
7. View logged in User details: W
8. zip file: gzip
gzip [file]
9. Unzip the. Gz Zip file: gunzip
gunzip [Compressed file]
10. Package directory: TAR, compressed after file name *.tar.gz
Tar options [-ZCF] [file name after compression] [directory]
Compression usage:
-C Packaging
-V Show More information
-F Specify File name
-Z Package simultaneous compression
Example: TAR-ZCF Japan.tar.gz Japan
Decompression usage
-X Unpack the package
-V Show More information
-F Specify Unzip file
-Z Decompression
Example: TAR-ZXVF Japan.tar.gz
11. Compress files or directories: Zip, compressed after file name *.zip
Zip option [-r] [filename after compression] [file or directory]
-R: Compressed directory
12. Unzip the. zip file: Unzip
Unzip [compressed file]
13. Compressed files: bzip2, compressed after file name *.bz2
BZIP2 option [-K] [file]
-K preserves source files after generating compressed files
14. Unzip:bunzip2
BUNZIP2 option [-K] [compressed file]
-K retain original file after decompression
2016/8/19 Linux Common commands: Help commands, user management commands, compression decompression commands