[Reading Notes] common Linux commands

Source: Internet
Author: User
0. Reference Materials

Zheng Peng, Zeng Ping, editor-in-chief of Ding Jianli, and Wuhan University Press

1. Basic Linux commands 1.1 General Format of Linux commands

The general format of Linux commands is as follows:

 

Command name [Option] [parameter 1] [parameter 2]

The options start with "-", and multiple options can be connected with one.

1.2 online help commands

 

Man -- display online manuals with certain formats

Man commands are useful tools for beginners and veterans. Programmers can use this command to refer to the C function.

1.3 log on to and exit Linux

 

Syntax:Login

Function Description: log on to the system.

Note: The LOGIN command allows a user to log on to the system. You can also use its function to change the logon identity at any time.


 

Syntax:Logout

Function Description: exit the system.

Note: The logout command causes the user to exit the system, and its functions and login commands correspond to each other.

 

Function Description: Set the password.

Syntax:Passwd[-Dkls] [-u <-F>] [user name]

Note: The passwd command allows you to change your password, while the system administrator can use it to manage your password. Only Administrators can specify user names. Generally, users can only change their passwords.

Parameters:

-D. Delete the password. This parameter can only be used by system administrators.

-F.

-K can be updated only when the password expires.

-L lock the password.

-S: list the password information. This parameter can only be used by system administrators.

-U unlocks the locked account


 

2. file and directory operation commands
  1. CD
  2. Ls
  3. CP
  4. MV
  5. Rm
  6. Mkdir
  7. Rmdir (only empty directories can be deleted)
  8. Touch
  9. Cat
  10. More
  11. Less
  12. Head
  13. Tail
  14. Find
  15. Locate
  16. Whereis
  17. Grep
  18. WC
  19. Sort
  20. Chmod
  21. Chown
  22. Chgrp
  23. Umask

 

3. system status and communication commands
  1. Who
  2. Whoami
  3. W
  4. PS
  5. Kill
  6. Write
  7. Mesg
  8. Wall
4. Disk Resource Information command
  1. DF
  2. Du
5 others
  1. Date
  2. Cal
  3. Uname
  4. Hostname
  5. Echo
  6. Read

 

 

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.