2016/8/19 Linux Common commands: Help commands, user management commands, compression decompression commands

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.