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 auxTo get info on a PID, you can just do
ps -fp <PID>
To get more info on the process.
- -ffor 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, hmeans no header lol
ChatGPT showed me ls -fp