1. 查看目录大小
[[email protected].io]# du -kh -d 1 . | sort -h
2. 关闭 Selinux
3. 关闭 Firewalld
[[email protected].io]# systemctl stop firewalld
[[email protected].io]# systemctl disable firewalld
4. 查看指定端口是否打开
[[email protected].io]# ss -anlp | grep 80
5. 查找包含指定文本的文件
如果安装了 ACK 的话
[[email protected].io]# ack "text"
如果没有安装 ACK
[[email protected].io]# grep -r "text" .
6. 快速查看本机 IP
[[email protected].io]# hostname -I
192.168.1.47 192.168.122.1