Difference between revisions of "Lsof"
From Linuxintro
imported>ThorstenStaerk (New page: lsof is a command to list open files on your system. This can help you to find out which application is blocking your sound card so it does not play or your CD ROM drive so it does...) |
imported>ThorstenStaerk |
||
Line 1: | Line 1: | ||
− | [[lsof]] is a [[command]] to list open files on your system. This can help you to find out which application is blocking your sound card so it does not play or your CD ROM drive so it does not eject. | + | [[lsof]] is a [[command]] to list open files on your system. This can help you to find out which application is blocking your sound card so it does not play or your CD ROM drive so it does not eject. It is also possible to show processes that have a [[network]] socket open. |
= Examples = | = Examples = | ||
* Show which process is blocking your soundcard: | * Show which process is blocking your soundcard: | ||
− | lsof | grep dsp | + | lsof | grep dsp\ |
+ | * Show which process listens on your smtp port | ||
+ | tweedleburg:~/Downloads # lsof -i | grep smtp | ||
+ | master 3320 root 12u IPv4 9503 0t0 TCP localhost:smtp (LISTEN) | ||
+ | master 3320 root 13u IPv6 9505 0t0 TCP localhost:smtp (LISTEN) | ||
+ | |||
+ | = See also = | ||
+ | * [[netstat]] | ||
+ | * [[nmap]] | ||
+ | * [[telnet]] |
Revision as of 07:45, 30 November 2010
lsof is a command to list open files on your system. This can help you to find out which application is blocking your sound card so it does not play or your CD ROM drive so it does not eject. It is also possible to show processes that have a network socket open.
Examples
- Show which process is blocking your soundcard:
lsof | grep dsp\
- Show which process listens on your smtp port
tweedleburg:~/Downloads # lsof -i | grep smtp master 3320 root 12u IPv4 9503 0t0 TCP localhost:smtp (LISTEN) master 3320 root 13u IPv6 9505 0t0 TCP localhost:smtp (LISTEN)