'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



Solution 1:[1]

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.

Solution 2:[2]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 alper
Solution 2 hasan