Some common Shell commands and common Shell commands
Common system commands]
Passwd [hostname]Change Password
Useradd [hostname]Add User
Su-Switch to the root user
Ssh [hostname]Ssh connection
Cd [directory]Go to the directory
Sudo chown [username]Grant corresponding permissions to users
Ctrl + cStop the current command (such as ping)
Vi [filename]Use the vim editor to edit files
IText editing status
: EExit Editor
: WSave files
:! QExit but not save
EscCommand Line status
Cat [filename]View File Content
Common network commands]
IfconfigView local Nic status
[Download and install commands]
Wget [URL]URL download
Apt-get install [name]Apt-get Installation
Rpm-ivh jdk-7u7-linux-i586.rpmRpm command Installation
Tar xvf [tar-file]Extract tar-file
[File Operation Command]
Mkdir [directory]Create directory
Cp [file] [path]Copy file to path
Mv [file] [path]Move the file to the path
Rm [file]Delete file
Process command]
Kill-9 [pid]Kill a process whose process number is pid.