sajad torkamani
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

Leave a comment

Your email address will not be published. Required fields are marked *