Commands Line Utilities
From mylearnings
Process
- Find PID of a known program.
pidof <application name>
- Find all the direct and indirect child processes of a process.
pstree -p <PID>
- List all the files opened by a process with PID.
lsof -p <PID>
- Find details of a file descriptor corresponding to a PID.
lsof -p <PID> -a -d <FD>
- - -a => Stands for 'AND' Operation.
- - -d => File descriptor for which we need to find details.
- Find Parent (PPID) of a process with PID.
ps -o ppid= -o comm= -p <PID>