天天看點

Centos7.4 常用指令及方法

檢視主機名指令:    hostnamectl status
           
修改主機名指令:    hostnamectl set-hostname 主機名
           
修改主機名檔案:  vi /etc/hostname
           
修改系統語言檔案:  vim /etc/locale.conf    "en_US.UTF-8"替換成"zh_CN.UTF-8" 
           
檢查軟體安裝:    rpm -qa | grep 軟體名[可通配符]
           
列出軟體的安裝檔案:    rpm -qal |grep 軟體名[可通配符] 
           
檢視開機啟動項:    systemctl list-unit-files | grep 軟體名[可通配符]
           

繼續閱讀