1. 查看目录大小

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

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

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

3. 关闭 Selinux

4. 关闭 Firewalld

[[email protected]]# systemctl stop firewalld
[[email protected]]# systemctl disable firewalld

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

[[email protected]]# ss -anlp | grep 80

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

7. 快速查看本机 IP

[[email protected]]# hostname -I
192.168.1.47 192.168.122.1

8. Cannot open: https://centos7.iuscommunity.org/ius-release.rpm. Skipping.

问题是 ius 的地址变更了:

[[email protected]]# https://centos7.iuscommunity.org/ius-release.rpm    变更为 =>
[[email protected]]# https://repo.ius.io/ius-release-el7.rpm