1、停止防火墙:[root@xgd~]# systemctl stop firewalld.service
2、查看防火墙状态:[root@xgd~]# systemctl status firewalld.service
3、禁用防火墙:[root@xgd~]# systemctl disable firewalld.service
4、降低内核防火墙的强度:[root@xgd~]# setenforce 0
5、关闭虚拟机:[root@xgd~]# shutdown now
6、重启虚拟机:[root@xgd~]# reboot
7、查看ip信息:[root@xgd~]# ifconfig
8、更改主机名:[root@xgd~]# hostnamectl set-hostname (更改的名字)
9、查看主机信息:[root@xgd~]# hostnamectl status
10、重新加载一次shell:bash
11、账户的切换:su (用户名)
12、切换工作目录:cd (文件名)
13、查看当前工作目录的绝对路径:pwd
14、两种目录之间切换:cd -
15、切换到当前账户的家目录:cd ~
16、切换到上一级目录:cd ../
17、切换到根目录:cd /
18、查看历史执行过的命令:history
19、查看当前linux的发行信息:cat /etc/rethat-release
20、查看内核信息:uname -a
21、浏览目录文件下的内容:ls
22、改密码:passwd (账户名)
23、查看命令是内部命令还是外部命令:type (命令字)
24、返回命令执行的时间:time (命令字)
25、显示隐藏文件:ls -a
26、以列表的形式显示目录文件:ls -l
27、ll是ls -l的简写形式
28、只显示指定的目录文件的具体信息不会显示它的目录的子文件信息:ls -d
29、按照文件的修改时间顺序进行排列之后显示:ls -c
30、以更人性化的方式显示目录结果:ls -h
31、递归的去查看指定目录下的子文件:ls -R