maroph

Start time of Linux processes

Apr 5th, 2016
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. # Source: https://twitter.com/climagic/status/717090979396853760
  2. # Show the (long) format start time and calling parameters for all processes on a Linux system.
  3. ps -o pid,lstart,command ax
  4.  
  5. # uptime of a single process with pid $pid:
  6. ps -o lstart $pid | tail -1
Advertisement
Add Comment
Please, Sign In to add comment