Morning: Redirect:
Tadafa (| character) can connect commands
ll–l/etc/| Less
Vim Advanced text editor vim introduction
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/73/1A/wKioL1X1NlLQLmD0AAGKdNu_b_ 4254.jpg "" 478 "height=" 297 "/>
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/73/1A/ Wkiol1x1nlpxdy08aah-nzrobv4374.jpg "" 481 "height=" 366 "/>
VIM: pattern-editing device
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/73/1A/ Wkiol1x1nlptvhoaaaezuyybe-4939.jpg "" 489 "height="/>
Modify Text: Insert mode
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/73/1A/ Wkiol1x1nloyipeqaafo-izsvpw162.jpg "" 492 "height="/>
Save and exit
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/73/1A/ Wkiol1x1nlsbtvt1aaffbtpigbu812.jpg "" 498 "height=" 243 "/>
Move: Command mode
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/73/1A/ Wkiol1x1nlssw5gbaaflqrzrkyo635.jpg "" 502 "height=" 245 "/>
Manipulating text: Command mode
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/73/1D/ Wkiom1x1ncocx00kaac9opsqs5u257.jpg "" 506 "height=" 253 "/>
Undo Change: Command mode
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/73/1D/ Wkiom1x1ncoh8e5waadwraltfuy231.jpg "" 518 "height=" 113 "/>
Use multiple windows
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/73/1D/ Wkiom1x1ncsghcdcaag3akynits863.jpg "" 513 "height=" 267 "/>
Configuring VI and VIM
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/73/1D/ Wkiom1x1ncsda9r9aae6vuklzgw519.jpg "" 521 "height=" 249 "/>
User groups and Rights users
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/73/1A/ Wkiol1x1nlfiagroaafccrhrhxq842.jpg "" 523 "height=" 219 "/>
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/73/1A/ Wkiol1x1nlfqqlwqaabzf5r24ls537.jpg "" 527 "height=" 198 "/>
Group
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/73/1D/ Wkiom1x1ncaz03bdaagzixeiqic515.jpg "" 526 "height="/>
Password
Stored under the/etc/shadow file
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/73/1D/ Wkiom1x1ncbdx6lgaaelgo-oew4910.jpg "" 534 "height=" 215 "/>
User and group ID numbers
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/73/1A/wKioL1X1NlmTCqA_ Aaecyau0ewy124.jpg "" 541 "height=" 156 "/>
Linux File Security
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/73/1D/ Wkiom1x1ncfqg7ngaafh3nol-2u627.jpg "" 550 "height=" 213 "/>
Permissions classification:
R: Read
W: Write
X: Execute
User Category:
Owned by: Owner
Group: Groups
Others: Other.
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/73/1D/ Wkiom1x1ncjty7rkaaggjwfmxlo217.jpg "" 525 "height=" 228 "/>
Permissions: The first "D" represents the directory, "B" represents the block device; "L" stands for the link; "-" represents no permissions
Check Permissions
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/73/1D/ Wkiom1x1nciqvkzsaaedfd2ikzq508.jpg "" 536 "height=" 157 "/>
Change permissions
Change the owner of the file: chown [user name] [file]
Change the owning group for a file: chgrp [user name] [file]
Change the owner and owning group for a file: chown [user name]:[group name] [file]
Change permissions: chmod [u+x] [g+w] [file]
Change the execution rights for everyone: chmod a-x [File]
Permission code:
R=4
w=2
X=1
u= Users
G= Group
o= other users
Change file ownership:
chmod–r [Permission code] [file]
Recursive Change permissions
Afternoon: Permissions
Default License:
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/73/1A/ Wkiol1x1nlqj39wjaafiw4vhvhi955.jpg "" 478 "height=" 243 "/>
For folders:
View default umask: Command umask
Maximum permission bit minus default mask as default permission
777-022=755
Modify Mask: umask [number]
For text files:
Maximum permissions minus 111 (code that executes permission x) is subtracted from the default umask
777-111-022=644
When Umask is an odd digit, the last value is added to the 1-bit default permission code
To change the configuration file:
Vim/root/.bashrc
Add umask=[number]
Valid only for the root user.
Vim/etc/.bashrc
Add umask=[number]
For all users
User Management Tools
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/73/1D/ Wkiom1x1ncng7k0waaeimzjdueo268.jpg "" 433 "height=" 195 "/>
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/73/1D/ Wkiom1x1ncncjkuoaac3hvflkjs580.jpg "" 418 "height=" 166 "/>
Group Management Tools
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/73/1A/ Wkiol1x1nlyddjzmaad2l32zaqw060.jpg "" 419 "height=" 182 "/>
Advanced Permissions
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/73/1D/ Wkiom1x1ncqqlvllaadexpnakda264.jpg "" 426 "height=" 134 "/>
Web Services Links:
Establish one or more links for an active network card that contains network information for a network card that can be switched over without manually changing the IP address, as long as the relevant link is activated.
Command: NMCLI connection Add type Ethernet con-name TO2 ifname eno16777736 ip4 192.168.0.2/24 gw4 192.168.1.1
To2: Name of the newly created link. eno16777736: Name of the active NIC
NMCLI connection down [NIC name (NMCLI connection show view)]
NMCLI connection up [NIC name]
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/73/1D/wKiom1X1NCvwz6AlAAF_XYP_ P8c239.jpg "" 614 "height=" 283 "/>
Tip: The options in the NMCLI command can be automatically complete.
Dns:
DNS Information configuration file:/etc/resolv.conf
Hostname configuration file:/etc/hostname
Local DNS resolution file:/etc/hosts. The priority is higher than the DNS server.
2015.9.13 VIM, permissions, and network management