如何ls在 bash 中找到正在运行的进程的 PID ?假设我知道进程的名称。使用ps会很容易。如果我要搜索 firefox,它只会是ps ax | grep firefox. 但是为了争论,假设我不能这样做,我必须使用ls.
ls
ps
ps ax | grep firefox
任何帮助都会很棒!
linux bash pid ls
bash ×1
linux ×1
ls ×1
pid ×1