Umask
Catalog: 777-umask
Files: Permissions after 666-umask touch
umask=023
File does not have Execute permission by default
Touch A.txt mod=643---> Executable, automatically add 1. Becomes 644.
To directory: mkdir BB mod=754 does not change
Suid
Sgid
Sticky can only delete files that you have created
chmod U+s A
Suid the current user has file host permissions
Sgid The current user group has directory host permissions, directory host.
Sticky files created by multiple users in this directory can only be deleted by the host and appear in other bits. Just can't delete files, but can write files.
chmod O+t/myproject
IP Address
Ifconfig EthX ip/netmask Immediate effect, temporary useful. Not permanently valid.
System-config-network-gui &
Xmanager Open the Xserver on Linux
Setup Export lang=en
Locale localization.
/etc/sysconfig/i18n I18N International
BOOTP Permanently assigned IP address
DHCP temporarily assigns IP addresses, leases, and recycles.
Userctl whether the network card can be used or disabled by other users
Type network device types Ethernet POP
Ifdown EthX && ifup EthX
Redhat Support
Service Network restart
/etc/init.d/network restart
FQDN Full qualified Domain Name
/etc/resov.conf DNS resolver Specifies DNS
Hostname Define host name View host name
Hostname name defines host name
/etc/sysconfig/network define the host name of the system settings
Networking=yes|no restrict access to the Internet. Yes can surf the internet, no can not surf the Internet.
Hostname= system is still active after reboot
Agteway define the gateway scope must be a network card is generally based on the network card
One NIC multiple aliases:
Eth0 eth0:0 eth0:1
/etc/sysconfig/network-scripts/ifcfg-eth0:0
Ifconfig eth0:0 192.168.10.1/24
Vim!$ $ last parameter of last command
Specifies the route.
Route specifies routes.
Route add
Route-n
Route add-net 10.0.0.0/8 Gateway 192.168.10.1
0.0.0.0 Direct-Connect routing
Rights Management of Linux Learning notes