commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
The "-r 2" option puts lsof in repeat mode, with updates every 2 seconds. (Ctrl -c quits)
The "-p" option is used to specify the application PID you want to monitor.
The "-u' option can be used to keep an eye on a users network activity.
"lsof -r 2 -u username -i -a"
There are 5 alternatives - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.