-
查看磁盘目录的大小
du -sh
# 显示当前目录下子目录大小并从大到小排序
sudo du -sh * | sort -hr -
查看当前目录文件大小
ls -lSh -
确认端口是否打开
Single port:
nc -zv 127.0.0.1 80Multiple ports: nc -zv 127.0.0.1 22 80 8080 Range of ports: nc -zv 127.0.0.1 20-30
查看磁盘目录的大小
du -sh
# 显示当前目录下子目录大小并从大到小排序
sudo du -sh * | sort -hr
查看当前目录文件大小
ls -lSh
确认端口是否打开
Single port:
nc -zv 127.0.0.1 80
Multiple ports:
nc -zv 127.0.0.1 22 80 8080
Range of ports:
nc -zv 127.0.0.1 20-30
本文标题:常用linux命令收集
本文链接:https://www.haomeiwen.com/subject/oxmfpttx.html
网友评论