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
- CD
- Ls
- CP
- MV
- Rm
- Mkdir
- Rmdir (only empty directories can be deleted)
- Touch
- Cat
- More
- Less
- Head
- Tail
- Find
- Locate
- Whereis
- Grep
- WC
- Sort
- Chmod
- Chown
- Chgrp
- Umask
3. system status and communication commands
- Who
- Whoami
- W
- PS
- Kill
- Write
- Mesg
- Wall
4. Disk Resource Information command
- DF
- Du
5 others
- Date
- Cal
- Uname
- Hostname
- Echo
- Read