How to know how long a process has been running? [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
开发者_开发百科 Improve this questionI am interested in doing this purely using bash.
ps
can fit your needs:
ps -eo pid,command,etime
精彩评论