System Settings

MAC OS Connect Warning

ssh USER@HOST

# -bash: warning: setlocale: 
# LC_CTYPE: cannot change locale (UTF-8): No such file or directory

locale

# LANG=en_US.UTF-8
# LC_CTYPE=UTF-8
# These two options are different, they should be same.

vim /etc/locale.conf

# LANG="en_US.UTF-8"
# append: LC_CTYPE="en_US.UTF-8"

exit

Modify the name of the network card to " eth0 "

Hostname setting

CentOS 6

CentOS 7

System Time setting

Filesystem mount or unmount

Mount a filesystem

Unmount a filesystem

Config system startup auto mount

SELinux setting

View SELinux state

Open SELinux temporarily

Close SELinux temporarily

Set SELinux state permanently

Firewall setting

CentOS 6 - iptables

CentOS 7 - firewalld

Last updated