pkill关闭进程

124 篇文章 9 订阅

帮助翻译

英文原版

pkill --help

用法:
pkill [options]

选项:
-, --signal signal to send (either number or name)
-q, --queue integer value to be sent with the signal
-e, --echo display what is killed
-c, --count count of matching processes
-f, --full use full process name to match
-g, --pgroup <PGID,…> match listed process group IDs
-G, --group <GID,…> match real group IDs
-i, --ignore-case match case insensitively
-n, --newest select most recently started
-o, --oldest select least recently started
-O, --older select where older than seconds
-P, --parent <PPID,…> match only child processes of the given parent
-s, --session <SID,…> match session IDs
-t, --terminal <tty,…> match by controlling terminal
-u, --euid <ID,…> match by effective IDs
-U, --uid <ID,…> match by real IDs
-x, --exact match exactly with the command name
-F, --pidfile read PIDs from file
-L, --logpidfile fail if PID file is not locked
-r, --runstates match runstates [D,S,Z,…]
–ns match the processes that belong to the same
namespace as
–nslist <ns,…> list which namespaces will be considered for
the --ns option.
Available namespaces: ipc, mnt, net, pid, user, uts

-h, --help 显示此帮助然后离开
-V, --version 显示程序版本然后离开

翻译

pkill-帮助

用法:
pkill [选项] <模式>

选项:
-,-signal 发送信号(数字或名称)
-q,–queue <值>与信号一起发送的整数值
-e,–echo显示被杀死的内容
-c,–count匹配进程的数量
-f,–full使用完整的进程名称进行匹配
-g,–pgroup <PGID,…>匹配列出的进程组ID
-G,–group <GID,…>匹配真实的组ID
-i,–ignore-case不区分大小写地匹配
-n,-最新选择最近启动
-o,–oldest选择最近最少启动的
-O,–older 选择比秒大的地方
-P,–parent <PPID,…>仅匹配给定父级的子进程
-s,–session <SID,…>匹配会话ID
-t,–terminal <tty,…>通过控制终端进行匹配
-u,–euid <ID,…>通过有效ID进行匹配
-U,–uid <ID,…>通过真实ID匹配
-x,–exact与命令名完全匹配
-F,–pidfile <文件>从文件读取PID
-L,–logpidfile如果未锁定PID文件则失败
-r,–runstates <状态>匹配运行状态[D,S,Z,…]
–ns 匹配属于同一进程
命名空间为
–nslist <ns,…>列出将考虑使用哪些名称空间
–ns选项。
可用的名称空间:ipc,mnt,net,pid,user,uts

实例

关闭进程名中包含Tomcat_SG_dev 字体的所有进程

pkill -f Tomcat_SG_dev
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值