在ps的管理中
tid TID the unique number representing a dispatchable
entity (alias lwp, spid). This value may also
appear as: a process ID (pid); a process group
ID (pgrp); a session ID for the session leader
当我为某个进程执行topas时,在CPU%列中显示43%,并跳转到85%。
当我执行:
"ps aux | grep processName"
同样的工艺为5%。
更准确的是什么?我还做了一个类似于Linux "watch“命令的循环,我看到它在%5。
托帕斯和ps有什么区别,谁是对的?
ps的输出:
[ttfai231:root]/root>ps aux | head -1; ps aux | sort -rn +2 | head -10
USER PID %CPU %MEM SZ RSS TTY STAT STIME
wsl -h显示以下内容: --exec, -e <CommandLine> Execute the specified command without using the default Linux shell.
-- Pass the remaining command line as is. “不使用默认的Linux shell”是什么意思(即,如果不使用默认的shell,它还将使用什么?)。 此外,作为示例,我现在有三种可能的方法来从我的PowerShell提示符运行Linux ls (即,这将不是ls的Get-ChildItem别名,而是通过WS
我是linux的新手,我正在努力学习更多,我就是在这种情况下遇到的。
我尝试过使用ps命令和grep来捕获"ca“,但它返回"ca”的每一个实例,无论它来自什么,它实际上对我没有帮助。
我试过这个办法,但行不通。
ps aux | grep ca
find out the process id
and issue kill <process number>
但是grep将捕获所有的"ca“,不管它在哪里,在进程名,目录和任何东西中。
我应该做些什么来实现我所需要的。提前感谢