Show info about process with a given PID
11 May 2022 (Updated 11 May 2022)
ps -p <PID>
Example output:
PID TTY TIME CMD
55109 ?? 0:00.53 /opt/homebrew/opt/redis/bin/redis-server 127.0.0.1:6379
- PID: process ID
- TTY: the name of the controlling terminal (if any).
- TIME: how much CPU time the process has used since execution.
- CMD: the command that spawned the process.
Tagged:
Unix
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment