Auxiliary operations for command line editing:
TAB health: auto-completion
Ctrl +u: Empty to First line
Ctrl +k: Empty to Tail line
Ctrl +l: (or clear) clear screen
Ctrl +c: Canceling execution of commands
Get help command:
Internal command Help For example: Help CD
Most external commands--help
Read the manual using the man command
Read the manual using the info command
Directory Operations Command:
PWD: Used to view working directory
CD: Used to switch working directory for example: CD (working directory location)
LS: (list) displays directory contents such as LS (option),,, (file or directory)
mkdir: Creating a new Directory
Du: Statistics directory and space consumption of files (-H in the form of more readable bytes K m,-s only counts the size of each parameter occupies space)
File Operations Command:
Touch: Create a new empty file
File: View files Type
CP: (copy) copy file or directory CP "options" source file or directory file or directory
(-R) recursively replicate entire directory tree
RM: (remove) delete files or directories
MV: (move) move files or directories
File Content Operations Command:
Cat: Display the full contents of the file
Head: View the first part of the file (head-n number of rows filename)
Tail: View end of File (tail-n file name)
VI Editor Mode of operation:
File directory permissions:
1. Types of permissions
Reading read R 4
Writing Write W 2
Executes execute x 1
No permissions-0
2. View permissions for a file
Ls-lh
-rw-rw-r--1 soft01 soft01 30 June 10:39 Itany.txt
Drwxrwxr-x 5 soft01 soft01 4.0K June 09:28 Movie
-rw-rw-r--
D rwx rwx R-x
The first section represents the type of file
The second part represents the owner's permission
The third part represents the permissions of the group
Part IV indicates other people's rights
3. Modify Permissions
There are two ways to use the chmod command:
A. Notation 1
chmod [Ugoa] [+-=] [rwx] File
chmod o-r Itany.txt
chmod g=r Itany.txt
chmod O+RW Itany.txt
B. Notation 2
chmod nnn File
Set Master can read only, belong to group can read and write, others can only
chmod u=r Itany.txt
chmod G=RW Itany.txt
chmod o=r Itany.txt
chmod u=r,g=rw,o=r Itany.txt
chmod 464 Wbs17061.txt
chmod 777 Itany.txt
To view network information:
Ifconfig: View IP Address
Ping: Test Network condition
Netstat: View network connection Status
Linux Common Command shortcuts