$ ps -ejH PID PGID SID TTY TIME CMD ... 1396 1396 1396 ? 00:00:00 sshd 28281 28281 28281 ? 00:00:00 sshd 28409 28281 28281 ? 00:00:00 sshd 28410 28410 28410 pts/0 00:00:00 bash 30968 30968 28410 pts/0 ...
Process accounting is a method of recording and summarizing commands and processes. It’s an option on Linux systems, but you have to enable it and use a particular command to view the details ...