天天看点

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 软件名[可通配符]
           

继续阅读