user121196
user121196

Reputation: 31070

show a process's detail by id on linux

on linux can I show a process's detail including what command/script started it, etc? top is show all processes and I wish to get more information on a process using its id

Upvotes: 9

Views: 15846

Answers (2)

Gaurav
Gaurav

Reputation: 173

ps -p <pid> -lF

...will give you information about the process like which command started it, time it was started, its state, parent pid, size etc.

If you can tell in more detail as what all information you want to know about process from pid, then we can help you better.

Upvotes: 16

hasan
hasan

Reputation: 658

You can find lots of information in /proc/{PID} directories.

Upvotes: 2

Related Questions