SSH user name @ip address Xshell Login
Useradd User name Add user
Su-user name jump to user record
[Email protected] ~]#
Current logged on user @ hostname current directory
~ Represents the home directory of the currently logged in user
Man command to view command Help information
Ifconfig Viewing network interface status
IP Addr View IP address
IP a View IP address
Route-n View routing Status
Service Network restart restart NIC
Clear Clear Screen
PWD Print current directory
CD Switch Directory
LS lists file directories and file information
-l long Format display file (contains properties, time ... )
-a displays all files in this directory (including hidden files)
-D View the directory itself
Ls-l = ll
Under Linux systems, file types (three common types)
-* File
d * Directory (similar to Win7 folder)
L * Connection (similar to Win7 under the shortcut)
Cat View the contents of the file
Touch build files (rarely used, basically VI)
mkdir Creating a Directory
-P recursive creation of multilevel directories
RM Delete a file or directory
-R Delete directory (not add delete file)
-F Force Delete
CP source File destination directory * Copy files or directories
-r Copy Directory (does not add to copy files)
-a copy all (include properties, permissions ...) )
MV Move or rename files
More Paging View file contents
Head-5 file name to view the first 5 lines of information
tail-10 file name View 10 lines of information
Du statistics directory or file capacity
-S
-H
grep finds a matching string in a file
-N Display Line number
Find files or directories in the directory that match the criteria
Syntax: Find target matching criteria for find (can not use quotation marks)
-name
-type d (directory) f (file)
Linux System basic Command use