简体   繁体   English

如何在 linux 中找到进程的名称?

[英]How do I find the name of a process in linux?

I'm really struggling with how to find processes by name in linux.我真的很纠结如何在 linux 中按名称查找进程。 I'm sure it's probably something simple that I'm missing.我敢肯定这可能是我缺少的一些简单的东西。

Are you looking for the command ps ?您在寻找命令ps吗?

Here an example这里有一个例子

nabil@LAPTOP:~$ ps xua | grep python
rootwsl      327  0.0  0.1  29568 17880 ?        Ss   Jan30   0:02 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
rootwsl      411  0.0  0.1 108116 20740 ?        Ssl  Jan30   0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
nabil     106387  0.0  0.0   3444   736 pts/1    S+   23:26   0:00 grep --color=auto python

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM