dserodio
3/21/2016 - 8:52 PM

ps(1) tips and tricks

ps(1) tips and tricks

# show process start time for a give PID (GNU ps)
ps -o lstart= -p $PID

# show process start time for all processes (GNU ps)
ps ax -O lstart


# show process environment variables (BSD grep)
ps -Eww -p $PID