V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
bramblex
V2EX  ›  程序员

[ShellScript] 辅助 kill 进程的小脚本

  •  
  •   bramblex ·
    bramblex · Apr 22, 2016 · 2342 views
    This topic created in 3659 days ago, the information mentioned may be changed or developed.

    主要功能

    1. 根据关键词匹配进程名,并且大小写不敏感。匹配出多个结果时,可以根据序号 kill 一个或者多个进程。
    2. 根据 pid 匹配进程。
    3. 根据端口占用匹配进程。

    图片演示

    blxkill

    代码如下

    https://gist.github.com/bramblex/e03bd9aa7595e1ef1408b7608f8adad0

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1079 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:50 · PVG 06:50 · LAX 15:50 · JFK 18:50
    ♥ Do have faith in what you're doing.