1:如果卸载程序试一试(比如说卸载谷歌浏览器)执行命令 yum remove google-chrome-stable 即可卸载或者./install_chrome.sh -u 命令
2:命令yum provides chrome可以查询使用某一命令需要安装哪个包!
3:查询开机启动项命令
systemctl list-unit-files --type=service
systemctl list-unit-files --type=service | grep enabled
systemctl list-unit-files --type=service | grep disabled
#查询服务是否开机启动 systemctl is-enabled xxx.service
查询所有已安装软件包 rpm -qa
查询已安装的指定软件包如 kernel ;rpm -qa | grep kernel
用rpm卸载安装包 rpm -e --nodeps 要卸载的软件包
4:开机停止某个服务 sudo systemctl stop vsftpd.service
sudo systemctl disable vsftpd.service
5:涉及端口的命令
6:查看所有用户信息 cat /etc/passwd cat /etc/passwd | cut -f 1 -d :
7 :查看selinux允许service使用端口列表 semanage port -l | grep squid
8:复制文件里面去掉注释的部分如·; cat /etc/samba/smb.conf.bak | grep -v "#"
9:在本地linux主机上显示远程主机的图形界面程序需要以 ssh -Y ***.***.***.***登陆
10:创建一个用户但不允许登陆服务器(虚拟账户) [root@linuxprobe ~]# useradd -d /var/ftproot -s /sbin/nologin virtual
11:查找 /etc 下7天内编辑过超过100兆文件 find /etc -mtime -7 -a -size +100M
删除本目录下所有以 .txt 结尾的文件 find -name "*.txt" -exec rm -rf {} ;