1. 查看目录大小

  1. [[email protected].io]# du -kh -d 1 . | sort -h

2. 找出目录中占用磁盘最多的 10 个

  1. [[email protected].io]# du -cks * | sort -rn | head
  2. 23403552 total
  3. 9177692 work
  4. 5167648 fix-prometheus.tar.gz
  5. 2401788 deepin-15.11-amd64.iso
  6. 1048576 fix-prometheus.tar.gz.3
  7. 1048576 fix-prometheus.tar.gz.2
  8. 1048576 fix-prometheus.tar.gz.1
  9. 1048576 fix-prometheus.tar.gz.0
  10. 973344 fix-prometheus.tar.gz.4
  11. 743480 pycharm-2018.2.1

3. 关闭 Selinux

4. 关闭 Firewalld

  1. [[email protected].io]# systemctl stop firewalld
  2. [[email protected].io]# systemctl disable firewalld

5. 查看指定端口是否打开

  1. [[email protected].io]# ss -anlp | grep 80

6. 查找包含指定文本的文件

7. 快速查看本机 IP

  1. [[email protected].io]# hostname -I
  2. 192.168.1.47 192.168.122.1