Time and TimeZone configuration
Set Time:
Timedatectl set-time "Time"
To view time zones:
Timedatectl List-timezones
Set the time zone:
Timedatectl Set-timezone Asia/shanghai
Network configuration
Static IP configuration:
Bootproto=static
Ipaddr=
netmask=
gateway=
dns1=
Dns2=
Onboot=yes
To modify the NIC name:
Change the cfg-enoxxxxxxx NIC name to Ifcfg-eth0
First turn off the device name acquired by the BIOS boot
Vim/etc/sysconfig/grub
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/74/C7/ Wkiol1yo97mxxqotaacv25tetbc967.jpg "" 516 "height="/>
(RHGB: Do not display process startup information, delete and swipe to/boot/grub2/grub.cfg to display the start status of each service in the system boot)
Here, the boot is not in effect, and you need to run the following command to brush the configuration of Vim/etc/sysconfig/grub to/boot/grub2/grub.cfg
Grub2-mkconfig-o/boot/grub2/grub.cfg
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/74/C7/ Wkiol1yo97mwzekeaaeephvboka598.jpg "" 523 "height=" 156 "/>
Vim/boot/grub2/grub.cfg Verify that the first configuration has been brushed into a startup item
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/74/C7/ Wkiol1yo97rdkxnhaaewcg9onei059.jpg "" 530 "height=" 211 "/>
Next, you can modify the name of the NIC.
Cp/etc/sysconfig/network-script/ifcfg-enoxxxxxxxx/etc/sysconfig/network-script/ifcfg-eth0
Mv/etc/sysconfig/network-script/ifcfg-enoxxxxxxxx/etc/sysconfig/network-script/ifcfg-enoxxxxxxxx.bak
Vim/etc/sysconfig/network-script/ifcfg-eth0, change name=enoxxxxxxxx to Eth0
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/74/C7/wKioL1Yo97rCiEYBAADVOfB_ Pns562.jpg "" 540 "height=" 134 "/>
Restart your computer.
Boot script
Example: empty all Files under the/tmp folder on boot
Vim/etc/rc.d/rc.local
chmod +x rc.local
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/74/C7/wKioL1Yo97uRquweAAFWQ_ J99oa819.jpg "" 546 "height=" 195 "/>
Add Users and groups (introduction)
Through the graphical interface:
Install a package that manages users first
Yum–y Install System-config-users
Enter the command in the graphical interface: System-config-users, bring up the user management interface
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/74/CB/ Wkiom1yo94-bsxutaaczlxxezja296.jpg "" 549 "height=" 359 "/>
Default Permissions
Umask (Matte)
By default, the maximum permissions for a folder are 777
By default, the maximum permissions for a file are 666
For example, an average user's umask is 002
The corresponding file 664
The corresponding folder 775
Root's Umask value is 022
The default permissions for files and folders are:
Folder: 777 binary code minus umask binary code
Files: 666 binary code minus umask binary code
Special permissions for files and folders
Suid and Sgid Special permissions
Suid: When Suid is applied to a binary file (command), then anyone who executes the command is temporarily used for command owner permissions and can only be applied to the executable file; u+s
Sgid: When Sgid is applied to a binary file, people and people temporarily have the command to have group permissions when executing the command, only on the executable file, and if Sgid is applied to a directory, then anyone who creates a file/directory in that directory will inherit the group of the directory itself; g+s
System Management and Umask