Reputation: 49
What is the command to display currently running processes and the option to display PPID's?
I thought that it might be:
jobs -p
jobs -pl
Neither worked though. Any hints?
Upvotes: 2
Views: 4569
Reputation: 5241
for getting one using your username: top -u username
idk how to do it with ps but that would be nice to know.
Upvotes: -1
Reputation: 11396
it really depends on what you're after
you usually use
top
to see how processes consume system resources
however, if you just want to see some process pid, and know some word from the command that used to run it, try:
ps -ef | grep java
there are other (many) commands and tools, it really depends on the reason you look for the process
Upvotes: 1