ps
command
ps vs. htop? https://unix.stackexchange.com/questions/62176/what-is-the-difference-between-ps-and-top-command
If you just run ps
, you will only see the processes started by you (the current user).
If you want to see all processes (this is what htop
does out of the box), do
ps aux
To get info on a PID, you can just do
ps -fp <PID>
To get more info on the process.
-f
for the full process information- I think you can get away without using the
p
? that specifies the process, but I’m able to use it without the-p
For user, do
ps -fu <USER>
- actually here,
h
means no header lol
ChatGPT showed me ls -fp