Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Linux - Handy Tool If You Can't Unmount Due To Open Files
dserban
post Sep 22 2007, 09:38 AM
Post #1


Premium Member
Group Icon

Group: [HOSTED]
Posts: 286
Joined: 17-June 07
Member No.: 22,702



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://dmiessler.com/study/nix/commands/lsof/
or
http://img231.imageshack.us/img231/5250/lsofhh8.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):
CODE
lsof /dev/snd

Other great commands you'll love: 'watch', 'strace', 'ltrace', 'iostat', 'vmstat', 'tcpdump', 'truss', 'netcat' (nc), 'wget'.
http://en.wikipedia.org/wiki/Watch_(Unix)
http://en.wikipedia.org/wiki/Strace
http://en.wikipedia.org/wiki/Iostat
http://en.wikipedia.org/wiki/Netstat

Just as useful or better network monitoring tools / options:
iptraf:
http://www.linuxhaxor.net/2007/08/27/iptra...ed-lan-monitor/
itrace:
http://www.linuxhaxor.net/2007/07/17/backt...ing-all-itrace/
intrace:
http://www.linuxhaxor.net/2007/07/16/backt...ng-all-intrace/
tcptrack:
http://www.linuxhaxor.net/2007/09/04/sniff...-with-tcptrack/
_________________________________

http://dserban01.googlepages.com/linkedin....abap.basis.html


This post has been edited by dserban: Jun 3 2008, 07:25 PM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. You can Play now in Linux(26)
  2. What's The Difference Between Linux And Unix?!?(15)
  3. Which Distro Of Linux Is Best For A Windows User ?(42)
  4. Where To Find Notepad++ For Linux ?(37)
  5. What Made You Switch To Linux?(59)
  6. Psybnc - Howto(2)
  7. Looking For Linux(29)
  8. Three Ways To Access Linux Partitions From Windows On Dual-boot Systems(5)
  9. Linux And Windows Partitions(2)
  10. Linux Kernel 2.6.24 Released(5)
  11. Virtualization In Linux: A Review Of Four Software Choices(4)
  12. How To Install Linux Without A CD or DVD?(11)
  13. Imac Bondi.........which Linux(1)
  14. General Av Encoding In Linux(0)
  15. How Can I Rip A Dvd To My Hard Drive Under Linux?(0)
  1. Getting My Wireless Network Adapter Working On Linux(2)
  2. What Softwares Should I Get To Linux?(6)
  3. Diablo 2 In Linux?(9)
  4. Linux?(3)
  5. What Is Linux(2)
  6. So, I Want To Try Out Linux.(9)
  7. How To Play Music And Movie In Linux? Which Is The Good One?.(2)
  8. Some Usefull Linux Basic Commands And Utilities. Please Add To This List If You Know One.(0)
  9. How To Copy File & Folders From Linux To Windows?.(6)
  10. Access Linux Box From Windows Machine- Putty Tool(2)
  11. Linux For Beginners- Easy To Install(8)
  12. Linux Basic Command - For Storing Compilation Error To File(1)
  13. Choice Of Motherboard For Linux Virtualization(4)


 



- Lo-Fi Version Time is now: 7th July 2008 - 12:07 AM