So obviously the title says it all. Is this the best way to view my running processes?
ps -u whoami
So obviously the title says it all. Is this the best way to view my running processes?
ps -u whoami
That is not a valid command so: no.
ps -u $(whoami)
would be a valid method but since $USER equals to the current user
ps -u $USER
is shorter and less consuming. You can also do
top -U $USER
for a real time method (it will refresh the processes) and ordered by %CPU.
Or
pstree $USER
for a tree like view.
ps -u $(whoami)
– terdon Jun 19 '16 at 19:14top
,ps -A
orps -A | less
? All valid... true that the question is a matter of opinion but perhaps you intend to ask for the cleanest, most human-readable form or maybe a way to list processes for only a particular user? – P Smith Jun 19 '16 at 19:18