美文网首页
常用linux命令收集

常用linux命令收集

作者: 蓝色瓦力 | 来源:发表于2016-11-11 17:49 被阅读9次
  1. 查看磁盘目录的大小
    du -sh
    # 显示当前目录下子目录大小并从大到小排序
    sudo du -sh * | sort -hr

  2. 查看当前目录文件大小
    ls -lSh

  3. 确认端口是否打开
    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