Linux system CentOS 7 run command

 

Shutdown
poweroff

Reboot 
reboot

Help 
help

View IP address
ip addr

ping www.qq.com for detecting the network communication nowhere

Change directory 
cd path

View files
cat filename

vi Tools

Edit the file
vi filename
by i edit
Press Esc to exit edit
enter: wq save

Network Service Restart
systemctl restart network

Add a new user
adduser - d user directory -p password new user name

Switch user
su username

Switching home directory
cd ~

Switching to / etc
CD / etc

Understanding the composition of directory permissions

-rw-r -. r-- 1 root root 44 dated 10 31 2018 shells file  

drwxr-xr-x. 2 root root 62 dated 11 2018 skel. 4 at the beginning of the folder is a folder d

- indicates that this is the beginning of the file
at the beginning of the representation of d is the folder (directory)
followed by nine characters, 9 characters divided into three groups
of the first set of user authority is a root
privileges second group representing the group of users
of the third group shows another user permissions
r for read permission
w expressed written permission 
x represents the implementation of the authority

Create a file vi filename

Create a directory mkdir directory name

Delete the file rm filename

Rm -rf delete directory directory name

How to view help?
Add the parameter --help after the command

Shutdown
poweroff

Reboot 
reboot

Help 
help

View IP address
ip addr

ping www.qq.com for detecting the network communication nowhere

Change directory 
cd path

View files
cat filename

vi Tools

Edit the file
vi filename
by i edit
Press Esc to exit edit
enter: wq save

Network Service Restart
systemctl restart network

Add a new user
adduser - d user directory -p password new user name

Switch user
su username

Switching home directory
cd ~

Switching to / etc
CD / etc

Understanding the composition of directory permissions

-rw-r -. r-- 1 root root 44 dated 10 31 2018 shells file  

drwxr-xr-x. 2 root root 62 dated 11 2018 skel. 4 at the beginning of the folder is a folder d

- indicates that this is the beginning of the file
at the beginning of the representation of d is the folder (directory)
followed by nine characters, 9 characters divided into three groups
of the first set of user authority is a root
privileges second group representing the group of users
of the third group shows another user permissions
r for read permission
w expressed written permission 
x represents the implementation of the authority

Create a file vi filename

Create a directory mkdir directory name

Delete the file rm filename

Rm -rf delete directory directory name

How to view help?
Add the parameter --help after the command

Guess you like

Origin www.cnblogs.com/lszw/p/11260518.html