Re:A Unix Utility to Know About: lsof (2009)
by voidz on Friday August 26, 2016 @04:00AM
(#12364891)
> Sometimes powerful tools require effort to understand. Lsof is absolutely something you should spend some real time grokking.
Yup, this is true. And I did. But sometimes you just need less dense manual pages.
Re:A Unix Utility to Know About: lsof (2009)
by daurnimator on Friday August 26, 2016 @04:19AM
(#12364941)
I find lsof and ps too hard to remember, so I usually just use regular linux utilities like cat/grep on the /proc file system.
- grep bash /proc/*/status
- readlink /proc/*/fd/* | grep /run
In regard to ps you can memorize a few commands until something truly weird comes up since you will probably use other more specialized snapshotting and tracing tools for anything somewhat difficult to troubleshoot.