Recent Changes - Search:

Softwares

.

Lsof

Main.Lsof History

Hide minor edits - Show changes to markup

April 25, 2009, at 04:48 PM by 118.95.7.226 -
Added lines 1-2:

(:Googletxt:)


Added lines 61-63:

(:Google1:) (:Googlemm:)

June 27, 2007, at 11:18 AM by 202.56.231.116 -
Added lines 1-58:

An open file may be a regular file, a directory, a block special file, a character special file, an executing text reference, a library, a stream or a network file (Internet socket, NFS file or UNIX domain socket.) A specific file or all the files in a file system may be selected by path.

lsof 4.76
latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/

 latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
 latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man


  root@shibu-laptop:~# lsof -i TCP
  COMMAND    PID    USER   FD   TYPE DEVICE SIZE NODE NAME
  dnsmasq   3855 dnsmasq    4u  IPv4  10532       TCP *:domain (LISTEN)
  dnsmasq   3855 dnsmasq    6u  IPv6  10549       TCP *:domain (LISTEN)
  hpiod     3873   hplip    0u  IPv4  10581       TCP localhost:3422 (LISTEN)
  firefox-b 5148   shibu   42u  IPv4  15690       TCP 10.154.58.234:1179->rv-in-f99.google.com:www (ESTABLISHED)
  firefox-b 5148   shibu   43u  IPv4  15823       TCP 10.154.58.234:4955->clusteralt0.msomt.modwest.com:www   (ESTABLISHED)
  firefox-b 5148   shibu   47u  IPv4  15791       TCP 10.154.58.234:1030->hk-in-f104.google.com:www (ESTABLISHED)
  firefox-b 5148   shibu   51u  IPv4  15786       TCP 10.154.58.234:3671->72.14.255.104:www (ESTABLISHED)
  firefox-b 5148   shibu   53u  IPv4  15746       TCP 10.154.58.234:2194->www.hostmysite.com:www (ESTABLISHED)
  firefox-b 5148   shibu   55u  IPv4  15794       TCP 10.154.58.234:1031->hk-in-f104.google.com:www (ESTABLISHED)

  root@shibu-laptop:~# lsof -i UDP
  COMMAND  PID    USER   FD   TYPE DEVICE SIZE NODE NAME
  dnsmasq 3855 dnsmasq    3u  IPv4  10531       UDP *:domain
  dnsmasq 3855 dnsmasq    5u  IPv6  10548       UDP *:domain

  root@shibu-laptop:~# lsof -p 3855
  COMMAND  PID    USER   FD   TYPE     DEVICE    SIZE    NODE NAME
  dnsmasq 3855 dnsmasq  cwd    DIR        3,4    4096       2 /
  dnsmasq 3855 dnsmasq  rtd    DIR        3,4    4096       2 /
  dnsmasq 3855 dnsmasq  txt    REG        3,4   96048  610190 /usr/sbin/dnsmasq
  dnsmasq 3855 dnsmasq  mem    REG        0,0               0 [heap] (stat: No such file or directory)
  dnsmasq 3855 dnsmasq  mem    REG        3,4   38372 1032964 /lib/tls/i686/cmov/libnss_files-2.4.so
  dnsmasq 3855 dnsmasq  mem    REG        3,4   34320 1032966 /lib/tls/i686/cmov/libnss_nis-2.4.so
  dnsmasq 3855 dnsmasq  mem    REG        3,4   75488 1032961 /lib/tls/i686/cmov/libnsl-2.4.so
  dnsmasq 3855 dnsmasq  mem    REG        3,4   30428 1032962 /lib/tls/i686/cmov/libnss_compat-2.4.so
  dnsmasq 3855 dnsmasq  mem    REG        3,4 1248904 1032698 /lib/tls/i686/cmov/libc-2.4.so
  dnsmasq 3855 dnsmasq  mem    REG        3,4  105112  819226 /lib/ld-2.4.so
  dnsmasq 3855 dnsmasq    0u  unix 0xcebfd480           10555 socket
  dnsmasq 3855 dnsmasq    3u  IPv4      10531             UDP *:domain
  dnsmasq 3855 dnsmasq    4u  IPv4      10532             TCP *:domain (LISTEN)
  dnsmasq 3855 dnsmasq    5u  IPv6      10548             UDP *:domain
  dnsmasq 3855 dnsmasq    6u  IPv6      10549             TCP *:domain (LISTEN)


  root@shibu-laptop:~# lsof -u root
  COMMAND    PID USER   FD      TYPE     DEVICE    SIZE       NODE NAME
  init         1 root  cwd       DIR        3,4    4096          2 /
  init         1 root  rtd       DIR        3,4    4096          2 /
  init         1 root  txt       REG        3,4   31432     426047 /sbin/init
  init         1 root  mem       REG        0,0                  0 [heap] (stat: No such file or directory)
  init         1 root  mem       REG        3,4 1248904    1032698 /lib/tls/i686/cmov/libc-2.4.so
  init         1 root  mem       REG        3,4  105112     819226 /lib/ld-2.4.so
  init         1 root   10u     FIFO       0,12               6012 /dev/initctl
  ksoftirqd    2 root  cwd       DIR        3,4    4096          2 /
  ksoftirqd    2 root  rtd       DIR        3,4    4096          2 /
  ksoftirqd    2 root  txt   unknown                               /proc/2/exe
  watchdog/    3 root  cwd       DIR        3,4    4096          2 /
Edit - History - Print - Recent Changes - Search
Page last modified on April 25, 2009, at 04:48 PM