In last week’s post, we looked at a series of commands that used the lsof (list open files) command to provide information that can help with troubleshooting on the Unix systems you manage. Since lsof has such a huge collection of options, remembering which option to use for what sometimes makes the command hard to use as often or as effectively as you might like. So what we’re doing today is looking at several ways to make the use of this very helpful tool a bit easier. We do that by creating useful aliases, by providing something of a “cheat sheet”, and by deploying a number of lsof options in a script that makes educated guesses about what you’re going after.

To read this article in full or to leave a comment, please click here

Source: COMPUTER WORLD