linux使用技巧总结

@lucas  February 23, 2024

1、查询大文件命令

du --max-depth=1 -h

2、查询端口使用情况,shell脚本

  • vi findpid ,添加一下内容

    #!/bin/bash
    #set -x
    port=$1
    fuser -v -n tcp ${port}
    
  • 添加可执行权限:chmod a+x findpid
  • 查询端口: findpid 8080

添加新评论

  1. 看的我热血沸腾啊https://www.237fa.com/

    Reply
  2. 不错不错,我喜欢看 www.jiwenlaw.com

    Reply
  3. 哈哈哈,写的太好了https://www.cscnn.com/

    Reply
  4. 大兵传奇私服下载的正确方法与安全疑问探讨:https://501h.com/danzhiye/2024-11-05/46455.html

    Reply
  5. 你的文章让我心情愉悦,每天都要来看一看。 http://www.55baobei.com/QiC4oWn0Sf.html

    Reply
  6. 你的文章内容非常卖力,让人点赞。 https://www.yonboz.com/video/65300.html

    Reply
  7. 《糖耳朵》喜剧片高清在线免费观看:https://www.jgz518.com/xingkong/102464.html

    Reply
  8. 《糖耳朵》喜剧片高清在线免费观看:https://www.jgz518.com/xingkong/102464.html

    Reply
  9. 《轮到你了特别篇》剧情片高清在线免费观看:https://www.jgz518.com/xingkong/129533.html

    Reply
  10. 哈哈哈,写的太好了https://www.lawjida.com/

    Reply
  11. 对趋势的预判具有战略参考价值。

    Reply