1. Format description
"[email protected] Simon" $
"[Email protected] ~" $
Both of these methods represent the same. Simon is the specified user, localhost is the computer name, if not set to localhost by default. Simon, ~ refers to the directory where you are currently located.
Terminal: Command interpreter, simulation shell
2, the user's switch
su[options] [user]
such as: Su-root
The example uses the SU command to change a normal user to the root user and use the option "-" to carry the root environment variable.
Exit from super user to normal user
3. User Management
Add user account
useradd [Options] User name
Useradd YCW
passwd YCW
New Password: (note that entering the password is not displayed)
Retype new Password:
Change of account password
passwd [user Name]
4. System Management Commands (PS and kill)
PS: Displays a list of processes running by that user in the current system
Kill: Terminate the process
Example: Ps-ef (shows the currently running program)
Kill 7421 (terminates 7421 of this process)
5. Disk-related commands (FDISK)
FDISK: You can view the partition of the hard disk, and can partition the hard disk to manage
such as: Fdisk-l
Lists the partitioning of the file system.
Linux basic commands for user system-related commands