1. 程式人生 > >lsof 命令輸出

lsof 命令輸出

輸入lsof命令檢視結果如下(sybase server程序相關)

COMMAND     PID      USER   FD      TYPE     DEVICE     SIZE       NODE NAME

dataserve 18525    sybase  cwd       DIR      253,0     4096    1638847 /home/sybase/ASE-12_5/install
dataserve 18525    sybase  rtd       DIR      253,0     4096          2 /
dataserve 18525    sybase  txt       REG      253,0 22221408    1638910 /home/sybase/ASE-12_5/bin/dataserver
dataserve 18525    sybase  mem       REG      253,0   105412    7176405 /lib/libaudit.so.0.0.0
dataserve 18525    sybase  mem       REG      253,0    44532    7176410 /lib/libpam.so.0.81.5
dataserve 18525    sybase  mem       REG      253,0   125736    7176195 /lib/ld-2.5.so
dataserve 18525    sybase  mem       REG      253,0  1611564    7176209 /lib/libc-2.5.so
dataserve 18525    sybase  mem       REG      253,0   208352    7176258 /lib/libm-2.5.so
dataserve 18525    sybase  mem       REG      253,0    16428    7176248 /lib/libdl-2.5.so
dataserve 18525    sybase  mem       REG      253,0   129716    7176222 /lib/libpthread-2.5.so
dataserve 18525    sybase  mem       REG      253,0    44060    7176224 /lib/librt-2.5.so
dataserve 18525    sybase  mem       REG      253,0   101404    7176242 /lib/libnsl-2.5.so
dataserve 18525    sybase  mem       REG      253,0    46680    7176232 /lib/libnss_files-2.5.so
dataserve 18525    sybase  mem       REG      253,0   200137    1638404 /home/sybase/OCS-12_5/lib3p/libnspr3.so
dataserve 18525    sybase  mem       REG      253,0   979772    1638402 /home/sybase/OCS-12_5/lib3p/libldapssl41.so
dataserve 18525    sybase  DEL       REG        0,9              131073 /SYSVf40001ba
dataserve 18525    sybase  mem       REG      253,0    46476    7176262 /lib/libgcc_s-4.1.2-20080825.so.1
dataserve 18525    sybase  mem       REG      253,0   259532    6175523 /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
dataserve 18525    sybase  mem       REG      253,0    15852    1638405 /home/sybase/OCS-12_5/lib3p/libplds3.so
dataserve 18525    sybase  mem       REG      253,0    15876    1638403 /home/sybase/OCS-12_5/lib3p/libplc3.so
dataserve 18525    sybase    0r      CHR        1,3                1543 /dev/null
dataserve 18525    sybase    1u      CHR      136,1                   3 /dev/pts/1 (deleted)
dataserve 18525    sybase    2u      CHR      136,1                   3 /dev/pts/1 (deleted)
dataserve 18525    sybase    3w      REG      253,0   484482    1638939 /home/sybase/ASE-12_5/install/BDWG.log
dataserve 18525    sybase    4r     FIFO        0,6              160444 pipe
dataserve 18525    sybase    5w     FIFO        0,6              160444 pipe
dataserve 18525    sybase    6u     unix 0xccca9040              160445 socket
dataserve 18525    sybase    7u     unix 0xccca9200              160446 socket
dataserve 18525    sybase    8uW     BLK      253,2                6667 /dev/mapper/VolGroup01-lvol_master
dataserve 18525    sybase    9uW     BLK      253,4                6740 /dev/mapper/VolGroup01-lvol_bdwg01
dataserve 18525    sybase   10uW     BLK      253,5                6776 /dev/mapper/VolGroup01-lvol_bdwg02
dataserve 18525    sybase   11uW     BLK      253,6                6812 /dev/mapper/VolGroup01-lvol_bdwg03
dataserve 18525    sybase   12uW     BLK      253,7                6848 /dev/mapper/VolGroup01-lvol_bdwg04
dataserve 18525    sybase   13uW     BLK     253,10                6899 /dev/mapper/VolGroup01-lvol_bdwgindex
dataserve 18525    sybase   14uW     BLK      253,8                6870 /dev/mapper/VolGroup01-lvol_bdwglog
dataserve 18525    sybase   15uW     BLK      253,9                6892 /dev/mapper/VolGroup01-lvol_bdwgtemp
dataserve 18525    sybase   16uW     BLK      253,3                6704 /dev/mapper/VolGroup01-lvol_systemproc
dataserve 18525    sybase   17u     IPv4     160450                 TCP bdwg:igo-incognito (LISTEN)
dataserve 18525    sybase   18u     IPv4     160463                 TCP bdwg:igo-incognito->135.52.5.52:52256 (ESTABLISHED)
dataserve 18525    sybase   19u     IPv4     160465                 TCP bdwg:igo-incognito->135.52.5.51:41203 (ESTABLISHED)
dataserve 18525    sybase   20u     IPv4     160467                 TCP bdwg:igo-incognito->135.52.5.52:52258 (ESTABLISHED)
dataserve 18525    sybase   21u     IPv4     160471                 TCP bdwg:igo-incognito->bdwg:36987 (ESTABLISHED)
dataserve 18525    sybase   22u     IPv4     161387                 TCP bdwg:igo-incognito->135.52.5.51:41394 (ESTABLISHED)
dataserve 18525    sybase   23u     IPv4     450552                 TCP bdwg:igo-incognito->135.52.5.38:magicom (ESTABLISHED)

dataserve 18525    sybase   24u     IPv4     809117                 TCP bdwg:igo-incognito->135.32.5.4:4250 (ESTABLISHED)

COMMAND    程序名稱(未輸出全)

PID      程序ID

USER  程序啟動使用者

FD     程序開啟檔案描述符:

                       cwd  current working directory;
                       Lnn  library references (AIX);
                       err  FD information error (see NAME column);
                       jld  jail directory (FreeBSD);
                       ltx  shared library text (code and data);
                       Mxx  hex memory-mapped type number xx.
                       m86  DOS Merge mapped file;
                       mem  memory-mapped file;
                       mmap memory-mapped device;
                       pd   parent directory;
                       rtd  root directory;
                       tr   kernel trace file (OpenBSD);
                       txt  program text (code and data);
                       v86  VP/ix mapped file;

                  FD is followed by one of these characters, describing the mode under which the file is open:

                       r for read access;
                       w for write access;
                       u for read and write access;
                       space if mode unknown and no lock
                            character follows;
                       '-' if mode unknown and lock
                            character follows.

TYPE     :型別

                  or ''IPv4'' for an IPv4 socket;

                  or ''IPv6'' for an open IPv6 network file - even if its address is IPv4, mapped in an IPv6 address;

                  or ''ax25'' for a Linux AX.25 socket;

                  or ''inet'' for an Internet domain socket;

                  or ''lla'' for a HP-UX link level access file;

                  or ''rte'' for an AF_ROUTE socket;

                  or ''sock'' for a socket of unknown domain;

                  or ''unix'' for a UNIX domain socket;

                  or ''x.25'' for an HP-UX x.25 socket;

                  or ''BLK'' for a block special file;

                  or ''CHR'' for a character special file;

                  or ''DEL'' for a Linux map file that has been deleted;

                  or ''DIR'' for a directory;

                  or ''DOOR'' for a VDOOR file;

                  or ''FIFO'' for a FIFO special file;

                  or ''KQUEUE'' for a BSD style kernel event queue file;

                  or ''LINK'' for a symbolic link file;

                  or ''MPB'' for a multiplexed block file;

                  or ''MPC'' for a multiplexed character file;

                  or ''NOFD'' for a Linux /proc/<PID>/fd directory that can't be opened -- the directory path appears  in  the  NAME  column,
                  followed by an error message;

                  or ''PAS'' for a /proc/as file;

                  or ''PAXV'' for a /proc/auxv file;

                  or ''PCRE'' for a /proc/cred file;

                  or ''PCTL'' for a /proc control file;

                  or ''PCUR'' for the current /proc process;

                  or ''PCWD'' for a /proc current working directory;

                  or ''PDIR'' for a /proc directory;

                  or ''PETY'' for a /proc executable type (etype);

                  or ''PFD'' for a /proc file descriptor;

                  or ''PFDR'' for a /proc file descriptor directory;

                  or ''PFIL'' for an executable /proc file;

                  or ''PFPR'' for a /proc FP register set;

                  or ''PGD'' for a /proc/pagedata file;

                  or ''PGID'' for a /proc group notifier file;

                  or ''PIPE'' for pipes;

                  or ''PLC'' for a /proc/lwpctl file;

                  or ''PLDR'' for a /proc/lpw directory;

                  or ''PLDT'' for a /proc/ldt file;

                  or ''PLPI'' for a /proc/lpsinfo file;

                  or ''PLST'' for a /proc/lstatus file;

                  or ''PLU'' for a /proc/lusage file;

                  or ''PLWG'' for a /proc/gwindows file;

                  or ''PLWI'' for a /proc/lwpsinfo file;

                  or ''PLWS'' for a /proc/lwpstatus file;

                  or ''PLWU'' for a /proc/lwpusage file;

                  or ''PLWX'' for a /proc/xregs file'

                  or ''PMAP'' for a /proc map file (map);

                  or ''PMEM'' for a /proc memory image file;

                  or ''PNTF'' for a /proc process notifier file;

                  or ''POBJ'' for a /proc/object file;

                  or ''PODR'' for a /proc/object directory;

                  or ''POLP'' for an old format /proc light weight process file;

                  or ''POPF'' for an old format /proc PID file;

                  or ''POPG'' for an old format /proc page data file;

                  or ''PORT'' for a SYSV named pipe;

                  or ''PREG'' for a /proc register file;

                  or ''PRMP'' for a /proc/rmap file;

                  or ''PRTD'' for a /proc root directory;

                  or ''PSGA'' for a /proc/sigact file;

                  or ''PSIN'' for a /proc/psinfo file;

                  or ''PSTA'' for a /proc status file;

                  or ''PSXSEM'' for a POSIX semaphore file;

                  or ''PSXSHM'' for a POSIX shared memory file;

                  or ''PUSG'' for a /proc/usage file;

                  or ''PW'' for a /proc/watch file;

                  or ''PXMP'' for a /proc/xmap file;

                  or ''REG'' for a regular file;

                  or ''SMT'' for a shared memory transport file;

                  or ''STSO'' for a stream socket;

                  or ''UNNM'' for an unnamed type file;

                  or ''XNAM'' for an OpenServer Xenix special file of unknown type;

                  or ''XSEM'' for an OpenServer Xenix semaphore file;

                  or ''XSD'' for an OpenServer Xenix shared data file;

                  or the four type number octets if the corresponding name isn't known.


DEVICE     :裝置

SIZE       :大小

NODE    

NAME