Jump to content
xisto Community
Sign in to follow this  
dserban

Linux - Handy Tool If You Can't Unmount Due To Open Files

Recommended Posts

lsof

 

The author of the article below says he uses lsof most for getting network connection related information from a system, but netstat is just as useful and made specifically for this particular purpose.

lsof will do more than network connections, though. It will also tell you what files the program has open in addition to unix sockets and libraries. Of course you could also get all this from /proc but lsof makes it nice and easy. 'of' is actually for 'open files'.

 

http://forums.xisto.com/no_longer_exists/

or

http://forums.xisto.com/no_longer_exists/404.png

 

You can use lsof to find out what is using your sound card (if it's FireFox, it's probably some YouTube video or some such multimedia piece of embedded Flash):

lsof /dev/snd
Other great commands you'll love: 'watch', 'strace', 'ltrace', 'iostat', 'vmstat', 'tcpdump', 'truss', 'netcat' (nc), 'wget'.

https://en.wikipedia.org/wiki/Watch_(Unix)

https://en.wikipedia.org/wiki/Strace

https://en.wikipedia.org/wiki/Iostat

https://en.wikipedia.org/wiki/Netstat

 

Just as useful or better network monitoring tools / options:

iptraf:

http://linuxhaxor.net/

itrace:

http://linuxhaxor.net/

intrace:

http://linuxhaxor.net/

tcptrack:

http://linuxhaxor.net/

_________________________________

 

http://forums.xisto.com/no_longer_exists/

Edited by dserban (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.