grep显示ps输出标题

背景
查找服务器上某个进程详细信息[ps:pid,ppid,内存使用,cpu使用等],常常会使用ps筛选对应的进程,正常情况过滤后信息不会显示ps输出的title。

实操:
1.未显示ps 标题
常规操作:ps aux|grep xx
[rootbird ~]# ps aux | grep libvirt
dnsmasq 2169025 0.0 0.0 71964 2120 ? S 2021 0:00 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
root 2169026 0.0 0.0 71860 428 ? S

grep显示ps输出标题最先出现在Python成神之路

版权声明:
作者:玉兰
链接:https://www.techfm.club/p/27088.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>