【pgrep】按照grep查找显示进程
来源:互联网 发布:拓扑图算法 编辑:程序博客网 时间:2024/05/21 06:18
【pgrep】按照grep查找显示进程
例如:
pgrep -u root bash //是root用户的并且是bash的进程
pgrep bash //显示所有bash进程
SYNOPSIS
pgrep [-flvx] [-d delimiter] [-n|-o] [-P ppid,...] [-g pgrp,...]
[-s sid,...] [-u euid,...] [-U uid,...] [-G gid,...]
[-t term,...] [pattern]
pkill [-signal] [-fvx] [-n|-o] [-P ppid,...] [-g pgrp,...]
[-s sid,...] [-u euid,...] [-U uid,...] [-G gid,...]
[-t term,...] [pattern]
参数:
【-U】:uid 谁发起的,那个用户发起的
【-u】:euid 实际按照谁的权限运行的
例如:
pgrep -u root bash //是root用户的并且是bash的进程
pgrep bash //显示所有bash进程
SYNOPSIS
pgrep [-flvx] [-d delimiter] [-n|-o] [-P ppid,...] [-g pgrp,...]
[-s sid,...] [-u euid,...] [-U uid,...] [-G gid,...]
[-t term,...] [pattern]
pkill [-signal] [-fvx] [-n|-o] [-P ppid,...] [-g pgrp,...]
[-s sid,...] [-u euid,...] [-U uid,...] [-G gid,...]
[-t term,...] [pattern]
参数:
【-U】:uid 谁发起的,那个用户发起的
【-u】:euid 实际按照谁的权限运行的
0 0
- 【pgrep】按照grep查找显示进程
- pgrep:查找匹配条件的进程
- grep查找进程ID
- ps -aux | grep xxx, kill -s 9, pgrep --Linux下进程
- shell获取进程ID的方法: pidof | pgrep | ps-A+grep+awk
- linux下grep查找进程
- grep查找特定进程 屏蔽grep进程本身
- pgrep 查询进程的工具
- pgrep 查询进程的工具
- pgrep 查询进程的工具
- 使用ps aux|grep ×查找进程
- ps -ef | grep查找进程并停止
- 查找某进程 并过滤grep
- find+grep查找文件,并显示文件名
- pgrep
- Linux中grep不显示本身进程?
- 查找某进程 但过滤grep进程本身 方法
- grep 查找
- Lintcode 删除链表中倒数第k个结点
- 计算函数运行时间
- 反编译操作及反编译工具<二>
- iOS Core Animation系列之CADisplayLink
- lua 和 C 语言进行交互 —— 如何传递table
- 【pgrep】按照grep查找显示进程
- Windows Dev Intro - Direct2D Compile Error
- 数据结构实验1 线性表的有关操作
- java持有对象-map(二)-追踪元素次数
- hbase
- 堆和栈的区别
- MemCache超详细解读
- JQuery实现提交(submit)表单时候验证所有文本框是否为空
- pcl里面使用KdTree来搜索