달력

4

« 2024/4 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
2008. 11. 12. 13:31

lsof - LiSt Open Files Enjoy/etc2008. 11. 12. 13:31

lsof (LiSt Open Files) version 4  (revision 4.49)

출처 : http://www.javaservice.net/~java/bbs/read.cgi?m=etc&b=unix&c=r_p&n=959319048


javaservice:/usr/src/# ftp ftp.cert.dfn.de
Connected to concert.cert.dfn.de.
220- \ \ \
220-  ) ) )      The DFN-CERT  / DFN-PCA AnonFtp Archive
220- / / /
220- \ \ \       --------------------------------------------
220- | | |
220- | | |       If you want to contact the DFN-CERT directly
220- | | |       send electronic mail to:
220- | | |
220- | | |            dfncert@cert.dfn.de  (Incidents)
220- | | |       or
220- | | |            ftp@cert.dfn.de      (AnonFtp Server)
220- | | |       or
220- | | |            dfnpca@pca.dfn.de    (DFN-PCA)
220- | | |
220- | | |       The information and tools on this server are
220- | | |       provided "as is". No responsibility is taken
220-   | |       by neither DFN-CERT nor DFN-PCA.
220-   | |
220-     |       All traffic is logged and analysed, if you
220-     |       do not accept this policy, do not log in!
220-
220-Local time in Hamburg, Germany, is Fri Jun 23 09:06:09 2000
220-
220 concert.cert.dfn.de FTP server (Version wu-2.6.0-dfncert(2) Wed May 17 16:33:20
MET DST 2000) ready.
Name (ftp.cert.dfn.de:root): guest
331 Guest login ok, send your complete e-mail address as password.
Password:
230-The response 'guest' is not valid
230-Next time please use your e-mail address as your password
230-        for example: joe@210.220.251.96
230-
230-If you have comments or recommendations concerning this server please
230-contact the local administrators by email: ftp@cert.dfn.de
230-
230-Check also our WWW server:
230-
230-      German language:     http://www.cert.dfn.de/
230-      English language:    http://www.cert.dfn.de/eng/
230-
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd pub/tools/admin/lsof
250 CWD command successful.
ftp> bin
ha200 Type set to I.
ftp> ha
Hash mark printing on (1024 bytes/hash mark).
ftp> asc
200 Type set to A.
ftp> get README
local: README remote: README
200 PORT command successful.
150 Opening ASCII mode data connection for README (13251 bytes).
##############
226 Transfer complete.
13597 bytes received in 1.15 secs (12 Kbytes/sec)
ftp> bin
200 Type set to I.
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
total 1572
-rw-rw-r--   1 infosys    28540 Jun  1 23:19 .mirror
-rw-rw-r--   1 infosys    13251 Apr  3 18:28 README
lrwxrwxrwx   1 infosys       18 May  1 23:10 lsof.tar.gz -> lsof_4.49_W.tar.gz
-rw-rw-r--   1 infosys   751995 Apr  3 10:56 lsof_4.49_W.tar.gz
226 Transfer complete.
ftp> get lsof_4.49_W.tar.gz
local: lsof_4.49_W.tar.gz remote: lsof_4.49_W.tar.gz
200 PORT command successful.
150 Opening BINARY mode data connection for lsof_4.49_W.tar.gz (751995 bytes).
####################################################################################
####################################################################################
####################################################################################
####################################################################################
####################################################################################
####################################################################################
####################################################################################
####################################################################################
##############################################################
226 Transfer complete.
751995 bytes received in 496 secs (1.5 Kbytes/sec)
ftp> quit
221-You have transferred 765592 bytes in 2 files.
221-Total traffic for this session was 768123 bytes in 3 transfers.
221-Thank you for using the FTP service on concert.cert.dfn.de.
221 Goodbye.
javaservice:/usr/src/# dir
total 764
   4 drwxr-xr-x   2 root     root         4096 Jun 23 16:10 ./
   4 drwxr-xr-x   5 guest    users        4096 Jun 23 16:09 ../
  16 -rw-r--r--   1 root     root        13251 Jun 23 16:10 README
740 -rw-r--r--   1 root     root       751995 Jun 23 16:19 lsof_4.49_W.tar.gz
javaservice:/usr/src/# mkdir lsof
javaservice:/usr/src/# cd lsof
javaservice:/usr/src/lsof# tar xvfz ../lsof_4.49_W.tar.gz

RELEASE.SUMMARY_4.49
README.lsof_4.49
00.README.FIRST_4.49
lsof_4.49.tar
lsof_4.49.tar.asc
javaservice:/usr/src/lsof# dir
total 3044
   4 drwxr-xr-x   2 root     root         4096 Jun 23 16:21 ./
   4 drwxr-xr-x  10 root     root         4096 Jun 23 16:21 ../
   4 -rw-r--r--   1 701      1233          700 Apr  4 00:55 00.README.FIRST_4.49
   8 -rw-r--r--   1 701      1233         4132 Apr  4 00:55 README.lsof_4.49
  16 -r--r--r--   1 701      1233        13251 Apr  4 00:55 RELEASE.SUMMARY_4.49
3004 -rw-r--r--   1 701      1233      3072000 Apr  4 00:54 lsof_4.49.tar
   4 -rw-r--r--   1 701      1233          284 Apr  4 00:55 lsof_4.49.tar.asc
javaservice:/usr/src/lsof# tar xvf lsof_4.49.tar
lsof_4.49/
lsof_4.49/00.README.FIRST
lsof_4.49/00CREDITS
lsof_4.49/00DCACHE
lsof_4.49/00DIALECTS
lsof_4.49/00DIST
lsof_4.49/00FAQ
lsof_4.49/00LSOF-L
lsof_4.49/00MANIFEST
lsof_4.49/00PORTING
lsof_4.49/00QUICKSTART
lsof_4.49/00README
lsof_4.49/00XCONFIG
lsof_4.49/AFSConfig
lsof_4.49/Configure
lsof_4.49/Customize
lsof_4.49/Inventory
lsof_4.49/dialects/
lsof_4.49/dialects/n+os/
lsof_4.49/dialects/n+os/dproc.c
lsof_4.49/dialects/n+os/Mksrc
lsof_4.49/dialects/n+os/dnode.c
lsof_4.49/dialects/n+os/dlsof.h
lsof_4.49/dialects/n+os/Makefile
lsof_4.49/dialects/n+os/dsock.c
lsof_4.49/dialects/n+os/machine.h
lsof_4.49/dialects/n+os/dproto.h
lsof_4.49/dialects/n+os/dnode1.c
lsof_4.49/dialects/n+os/dstore.c
lsof_4.49/dialects/ultrix/
lsof_4.49/dialects/ultrix/Makefile
lsof_4.49/dialects/ultrix/dlsof.h
lsof_4.49/dialects/ultrix/dmnt.c
lsof_4.49/dialects/ultrix/dnode.c
lsof_4.49/dialects/ultrix/dproc.c
lsof_4.49/dialects/ultrix/dproto.h
lsof_4.49/dialects/ultrix/dsock.c
lsof_4.49/dialects/ultrix/dstore.c
lsof_4.49/dialects/ultrix/machine.h
lsof_4.49/dialects/ultrix/Mksrc
lsof_4.49/dialects/aix/
lsof_4.49/dialects/aix/dnode1.c
lsof_4.49/dialects/aix/dlsof.h
lsof_4.49/dialects/aix/Mksrc
lsof_4.49/dialects/aix/ddev.c
lsof_4.49/dialects/aix/dproto.h
lsof_4.49/dialects/aix/machine.h
lsof_4.49/dialects/aix/Makefile
lsof_4.49/dialects/aix/dfile.c
lsof_4.49/dialects/aix/dnode.c
lsof_4.49/dialects/aix/dmnt.c
lsof_4.49/dialects/aix/dproc.c
lsof_4.49/dialects/aix/dsock.c
lsof_4.49/dialects/aix/dstore.c
lsof_4.49/dialects/sun/
lsof_4.49/dialects/sun/machine.h
lsof_4.49/dialects/sun/dproc.c
lsof_4.49/dialects/sun/Mksrc
lsof_4.49/dialects/sun/dsock.c
lsof_4.49/dialects/sun/include/
lsof_4.49/dialects/sun/include/sys/
lsof_4.49/dialects/sun/include/sys/auxv.h
lsof_4.49/dialects/sun/dnode2.c
lsof_4.49/dialects/sun/dfile.c
lsof_4.49/dialects/sun/dnode.c
lsof_4.49/dialects/sun/ddev.c
lsof_4.49/dialects/sun/dstore.c
lsof_4.49/dialects/sun/Makefile
lsof_4.49/dialects/sun/dproto.h
lsof_4.49/dialects/sun/dmnt.c
lsof_4.49/dialects/sun/dnode1.c
lsof_4.49/dialects/sun/dlsof.h
lsof_4.49/dialects/freebsd/
lsof_4.49/dialects/freebsd/Mksrc
lsof_4.49/dialects/freebsd/dnode.c
lsof_4.49/dialects/freebsd/dlsof.h
lsof_4.49/dialects/freebsd/dmnt.c
lsof_4.49/dialects/freebsd/dnode1.c
lsof_4.49/dialects/freebsd/include/
lsof_4.49/dialects/freebsd/include/procfs/
lsof_4.49/dialects/freebsd/include/procfs/pfsnode.h
lsof_4.49/dialects/freebsd/Makefile
lsof_4.49/dialects/freebsd/dsock.c
lsof_4.49/dialects/freebsd/dstore.c
lsof_4.49/dialects/freebsd/machine.h
lsof_4.49/dialects/freebsd/dproc.c
lsof_4.49/dialects/freebsd/dproto.h
lsof_4.49/dialects/hpux/
lsof_4.49/dialects/hpux/kmem/
lsof_4.49/dialects/hpux/kmem/Makefile
lsof_4.49/dialects/hpux/kmem/Mksrc
lsof_4.49/dialects/hpux/kmem/dfile.c
lsof_4.49/dialects/hpux/kmem/dlsof.h
lsof_4.49/dialects/hpux/kmem/dmnt.c
lsof_4.49/dialects/hpux/kmem/dnode.c
lsof_4.49/dialects/hpux/kmem/dnode1.c
lsof_4.49/dialects/hpux/kmem/dnode2.c
lsof_4.49/dialects/hpux/kmem/dproc.c
lsof_4.49/dialects/hpux/kmem/dproto.h
lsof_4.49/dialects/hpux/kmem/dsock.c
lsof_4.49/dialects/hpux/kmem/dstore.c
lsof_4.49/dialects/hpux/kmem/machine.h
lsof_4.49/dialects/hpux/kmem/hpux11/
lsof_4.49/dialects/hpux/kmem/hpux11/rnode.h
lsof_4.49/dialects/hpux/kmem/hpux11/vnode.h
lsof_4.49/dialects/hpux/kmem/hpux11/kernbits.h
lsof_4.49/dialects/hpux/kmem/hpux11/proc.h
lsof_4.49/dialects/hpux/kmem/hpux11/nfs_clnt.h
lsof_4.49/dialects/hpux/kmem/hpux11/lla.h
lsof_4.49/dialects/hpux/kmem/hpux11/sth.h
lsof_4.49/dialects/hpux/kmem/hpux11/ipc_s.h
lsof_4.49/dialects/hpux/kmem/hpux11/udp_s.h
lsof_4.49/dialects/hpux/kmem/hpux11/tcp_s.h
lsof_4.49/dialects/linux/
lsof_4.49/dialects/linux/kmem/
lsof_4.49/dialects/linux/kmem/patches/
lsof_4.49/dialects/linux/kmem/patches/Linux-mouse-module.patch
lsof_4.49/dialects/linux/kmem/Makefile
lsof_4.49/dialects/linux/kmem/Makefile.lseek
lsof_4.49/dialects/linux/kmem/Mksrc
lsof_4.49/dialects/linux/kmem/__lseek.s
lsof_4.49/dialects/linux/kmem/dfile.c
lsof_4.49/dialects/linux/kmem/dlsof.h
lsof_4.49/dialects/linux/kmem/dmnt.c
lsof_4.49/dialects/linux/kmem/dnode.c
lsof_4.49/dialects/linux/kmem/dproc.c
lsof_4.49/dialects/linux/kmem/dproto.h
lsof_4.49/dialects/linux/kmem/dsock.c
lsof_4.49/dialects/linux/kmem/dstore.c
lsof_4.49/dialects/linux/kmem/machine.h
lsof_4.49/dialects/linux/proc/
lsof_4.49/dialects/linux/proc/Makefile
lsof_4.49/dialects/linux/proc/machine.h
lsof_4.49/dialects/linux/proc/Mksrc
lsof_4.49/dialects/linux/proc/dfile.c
lsof_4.49/dialects/linux/proc/dlsof.h
lsof_4.49/dialects/linux/proc/dmnt.c
lsof_4.49/dialects/linux/proc/dnode.c
lsof_4.49/dialects/linux/proc/dproc.c
lsof_4.49/dialects/linux/proc/dproto.h
lsof_4.49/dialects/linux/proc/dsock.c
lsof_4.49/dialects/linux/proc/dstore.c
lsof_4.49/dialects/linux/proc/patches/
lsof_4.49/dialects/linux/proc/patches/net_ipx_af_ipx.c.patch
lsof_4.49/dialects/linux/proc/patches/README
lsof_4.49/dialects/n+obsd/
lsof_4.49/dialects/n+obsd/dnode.c
lsof_4.49/dialects/n+obsd/dsock.c
lsof_4.49/dialects/n+obsd/Mksrc
lsof_4.49/dialects/n+obsd/dlsof.h
lsof_4.49/dialects/n+obsd/dmnt.c
lsof_4.49/dialects/n+obsd/dproc.c
lsof_4.49/dialects/n+obsd/dstore.c
lsof_4.49/dialects/n+obsd/dnode1.c
lsof_4.49/dialects/n+obsd/machine.h
lsof_4.49/dialects/n+obsd/Makefile
lsof_4.49/dialects/n+obsd/dproto.h
lsof_4.49/dialects/du/
lsof_4.49/dialects/du/dlsof.h
lsof_4.49/dialects/du/Mksrc
lsof_4.49/dialects/du/dnode.c
lsof_4.49/dialects/du/ddev.c
lsof_4.49/dialects/du/dmnt.c
lsof_4.49/dialects/du/dproc.c
lsof_4.49/dialects/du/dstore.c
lsof_4.49/dialects/du/dproto.h
lsof_4.49/dialects/du/dsock.c
lsof_4.49/dialects/du/dfile.c
lsof_4.49/dialects/du/machine.h
lsof_4.49/dialects/du/Makefile
lsof_4.49/dialects/osr/
lsof_4.49/dialects/osr/include/
lsof_4.49/dialects/osr/include/sys/
lsof_4.49/dialects/osr/include/sys/cdefs.h
lsof_4.49/dialects/osr/include/netdb.h
lsof_4.49/dialects/osr/dproc.c
lsof_4.49/dialects/osr/Mksrc
lsof_4.49/dialects/osr/dlsof.h
lsof_4.49/dialects/osr/dmnt.c
lsof_4.49/dialects/osr/dsock.c
lsof_4.49/dialects/osr/dstore.c
lsof_4.49/dialects/osr/dfile.c
lsof_4.49/dialects/osr/dnode.c
lsof_4.49/dialects/osr/machine.h
lsof_4.49/dialects/osr/Makefile
lsof_4.49/dialects/osr/dproto.h
lsof_4.49/dialects/bsdi/
lsof_4.49/dialects/bsdi/Mksrc
lsof_4.49/dialects/bsdi/dfile.c
lsof_4.49/dialects/bsdi/Makefile
lsof_4.49/dialects/bsdi/dproc.c
lsof_4.49/dialects/bsdi/dproto.h
lsof_4.49/dialects/bsdi/dsock.c
lsof_4.49/dialects/bsdi/dstore.c
lsof_4.49/dialects/bsdi/machine.h
lsof_4.49/dialects/bsdi/dlsof.h
lsof_4.49/dialects/bsdi/dmnt.c
lsof_4.49/dialects/bsdi/dnode.c
lsof_4.49/dialects/uw/
lsof_4.49/dialects/uw/uw21/
lsof_4.49/dialects/uw/uw21/fs/
lsof_4.49/dialects/uw/uw21/fs/proc/
lsof_4.49/dialects/uw/uw21/fs/proc/prdata.h
lsof_4.49/dialects/uw/uw21/fs/proc/README
lsof_4.49/dialects/uw/uw21/fs/procfs/
lsof_4.49/dialects/uw/uw21/fs/procfs/prdata.h
lsof_4.49/dialects/uw/uw21/fs/procfs/README
lsof_4.49/dialects/uw/uw21/sys/
lsof_4.49/dialects/uw/uw21/sys/fs/
lsof_4.49/dialects/uw/uw21/sys/fs/fifonode.h
lsof_4.49/dialects/uw/uw21/sys/fs/namenode.h
lsof_4.49/dialects/uw/uw21/vm/
lsof_4.49/dialects/uw/Makefile
lsof_4.49/dialects/uw/Mksrc
lsof_4.49/dialects/uw/dfile.c
lsof_4.49/dialects/uw/dlsof.h
lsof_4.49/dialects/uw/dmnt.c
lsof_4.49/dialects/uw/dnode.c
lsof_4.49/dialects/uw/dnode1.c
lsof_4.49/dialects/uw/dnode2.c
lsof_4.49/dialects/uw/machine.h
lsof_4.49/dialects/uw/dsock.c
lsof_4.49/dialects/uw/uw7/
lsof_4.49/dialects/uw/uw7/vm/
lsof_4.49/dialects/uw/uw7/sys/
lsof_4.49/dialects/uw/uw7/sys/fs/
lsof_4.49/dialects/uw/uw7/sys/fs/namenode.h
lsof_4.49/dialects/uw/uw7/sys/fs/fifonode.h
lsof_4.49/dialects/uw/uw7/fs/
lsof_4.49/dialects/uw/uw7/fs/procfs/
lsof_4.49/dialects/uw/uw7/fs/procfs/prdata.h
lsof_4.49/dialects/uw/uw7/fs/procfs/README
lsof_4.49/dialects/uw/dstore.c
lsof_4.49/dialects/uw/dproc.c
lsof_4.49/dialects/uw/dproto.h
lsof_4.49/dialects/uw/dnode3.c
lsof_4.49/dialects/ptx/
lsof_4.49/dialects/ptx/Makefile
lsof_4.49/dialects/ptx/Mksrc
lsof_4.49/dialects/ptx/dfile.c
lsof_4.49/dialects/ptx/dlsof.h
lsof_4.49/dialects/ptx/dmnt.c
lsof_4.49/dialects/ptx/dnode.c
lsof_4.49/dialects/ptx/dproc.c
lsof_4.49/dialects/ptx/dproto.h
lsof_4.49/dialects/ptx/dsock.c
lsof_4.49/dialects/ptx/dstore.c
lsof_4.49/dialects/ptx/machine.h
lsof_4.49/dialects/ptx/dnode2.c
lsof_4.49/dialects/ptx/dnode1.c
lsof_4.49/dialects/ptx/ddev.c
lsof_4.49/dialects/pyramid/
lsof_4.49/dialects/pyramid/Mksrc
lsof_4.49/dialects/pyramid/dfile.c
lsof_4.49/dialects/pyramid/dproc.c
lsof_4.49/dialects/pyramid/dlsof.h
lsof_4.49/dialects/pyramid/dmnt.c
lsof_4.49/dialects/pyramid/dnode.c
lsof_4.49/dialects/pyramid/dnode1.c
lsof_4.49/dialects/pyramid/dnode2.c
lsof_4.49/dialects/pyramid/dsock.c
lsof_4.49/dialects/pyramid/dproto.h
lsof_4.49/dialects/pyramid/dstore.c
lsof_4.49/dialects/pyramid/machine.h
lsof_4.49/dialects/pyramid/MkKernOpts
lsof_4.49/dialects/pyramid/Makefile
lsof_4.49/dialects/pyramid/dnode3.c
lsof_4.49/arg.c
lsof_4.49/lib/
lsof_4.49/lib/cvfs.c
lsof_4.49/lib/dvch.c
lsof_4.49/lib/fino.c
lsof_4.49/lib/isfn.c
lsof_4.49/lib/lkud.c
lsof_4.49/lib/prfp.c
lsof_4.49/lib/rdev.c
lsof_4.49/lib/rmnt.c
lsof_4.49/lib/rnam.c
lsof_4.49/lib/rnch.c
lsof_4.49/lib/pdvn.c
lsof_4.49/lib/Makefile.skel
lsof_4.49/lib/rnmh.c
lsof_4.49/lib/ckkv.c
lsof_4.49/lib/ptti.c
lsof_4.49/lsof.h
lsof_4.49/lsof_fields.h
lsof_4.49/main.c
lsof_4.49/misc.c
lsof_4.49/node.c
lsof_4.49/print.c
lsof_4.49/proc.c
lsof_4.49/proto.h
lsof_4.49/scripts/
lsof_4.49/scripts/idrlogin.perl5
lsof_4.49/scripts/list_fields.awk
lsof_4.49/scripts/idrlogin.perl
lsof_4.49/scripts/00README
lsof_4.49/scripts/count_pf.perl5
lsof_4.49/scripts/watch_a_file.perl
lsof_4.49/scripts/big_brother.perl5
lsof_4.49/scripts/00MANIFEST
lsof_4.49/scripts/list_NULf.perl5
lsof_4.49/scripts/list_fields.perl
lsof_4.49/scripts/count_pf.perl
lsof_4.49/scripts/xusers.awk
lsof_4.49/scripts/identd.perl5
lsof_4.49/scripts/shared.perl5
lsof_4.49/store.c
lsof_4.49/usage.c
lsof_4.49/version
lsof_4.49/lsof.8
lsof_4.49/lsof.man
javaservice:/usr/src/lsof# cd lsof_4.49
javaservice:/usr/src/lsof/lsof_4.49# ls

total 1080
   4 00.README.FIRST    36 00QUICKSTART     4 lib/             24 proc.c
   8 00CREDITS          56 00README        96 lsof.8           12 proto.h
  32 00DCACHE           20 00XCONFIG       20 lsof.h            4 scripts/
   4 00DIALECTS          8 AFSConfig*     112 lsof.man         16 store.c
  88 00DIST             92 Configure*       8 lsof_fields.h    16 usage.c
156 00FAQ              24 Customize*      24 main.c            4 version
   4 00LSOF-L            8 Inventory*      28 misc.c
   4 00MANIFEST         40 arg.c            8 node.c
  56 00PORTING           4 dialects/       60 print.c
javaservice:/usr/src/lsof/lsof_4.49# ./Configure
No target dialect was specified.
Usage: Configure <options> <target-dialect>
  <options>:  -clean        : clean up previous configuration
              -d|-dialects  : display a list of supported dialect versions
              -h|-help      : display help information
              -n            : avoid AFS, customization, and inventory checks
  <target-dialect> (****USE -d TO GET TESTED DIALECT VERSION NUMBERS****):
    aix|aixgcc              : IBM AIX xlc (aix) or gcc (aixgcc)
    bsdi                    : BSDI BSD/OS
    decosf                  : DEC OSF/1
    digital_unix|du         : Digital UNIX
    freebsd                 : FreeBSD
    hpux|hpuxgcc            : HP-UX cc (hpux) or gcc (hpuxgcc)
    linux                   : Linux
    netbsd                  : NetBSD
    nextstep|next|ns|nxt    : NEXTSTEP
    openbsd                 : OpenBSD
    openstep|os             : OpenStep
    osr|sco                 : SCO OpenServer, SCO devloper's compiler
    osrgcc|scogcc           : SCO OpenServer, gcc compiler
    pyramid|pyr             : Pyramid DC/OSx and Reliant UNIX
    ptx                     : Sequent PTX
    solaris|solariscc       : Solaris gcc (solaris) or cc (solariscc)
    sunos|sunoscc           : SunOS gcc (sunos) or cc (sunoscc)
    tru64                   : Tru64 UNIX
    ultrix                  : Ultrix
    unixware|uw             : SCO UnixWare
javaservice:/usr/src/lsof/lsof_4.49# ./Configure linux
Testing C library type with cc ... done
The C library type is glibc, version "-DGLIBCV=201".
Configuring /proc-based Linux lsof

This configuration step (the Inventory script) takes inventory of
the lsof distribution.  The script runs for a minute or two while
it checks that all the subdirectories, information files, scripts,
header files and source files that should be present really are.

It's not absolutely necessary that you take inventory, but it's a
good idea to do it right after the lsof distribution has been
unpacked.  Once the inventory has been taken, this script creates
the file ./.ck00MAN as a signal that the inventory step has been
done.

You can call the Inventory script directly at any time to take
inventory.  You can inhibit the inventory step permanently by
creating the file ./.neverInv, and you can tell the Configure script
to skip the inventory and customization steps with the -n option.

Do you want to take inventory (y|n) [y]?

Conducting an inventory of the lsof distribution; this will take a while.

Examining /usr/src/lsof/lsof_4.49: OK
Examining dialects: OK
Examining dialects/aix: OK
Examining dialects/bsdi: OK
Examining dialects/du: OK
Examining dialects/freebsd: OK
Examining dialects/freebsd/include: OK
Examining dialects/freebsd/include/procfs: OK
Examining dialects/hpux: OK
Examining dialects/hpux/kmem: OK
Examining dialects/hpux/kmem/hpux11: OK
Examining dialects/linux: OK
Examining dialects/linux/kmem: OK
Examining dialects/linux/kmem/patches: OK
Examining dialects/linux/proc: OK
Examining dialects/linux/proc/patches: OK
Examining dialects/n+obsd: OK
Examining dialects/n+os: OK
Examining dialects/osr: OK
Examining dialects/osr/include: OK
Examining dialects/osr/include/sys: OK
Examining dialects/ptx: OK
Examining dialects/pyramid: OK
Examining dialects/sun: OK
Examining dialects/sun/include: OK
Examining dialects/sun/include/sys: OK
Examining dialects/ultrix: OK
Examining dialects/uw: OK
Examining dialects/uw/uw21: OK
Examining dialects/uw/uw21/fs: OK
Examining dialects/uw/uw21/fs/proc: OK
Examining dialects/uw/uw21/fs/procfs: OK
Examining dialects/uw/uw21/sys: OK
Examining dialects/uw/uw21/sys/fs: OK
Examining dialects/uw/uw21/vm: OK
Examining dialects/uw/uw7: OK
Examining dialects/uw/uw7/fs: OK
Examining dialects/uw/uw7/fs/procfs: OK
Examining dialects/uw/uw7/sys: OK
Examining dialects/uw/uw7/sys/fs: OK
Examining dialects/uw/uw7/vm: OK
Examining lib: OK
Examining scripts: OK

This lsof distribution seems to be complete.

rm -f ddev.c dfile.c dlsof.h dmnt.c dnode*.c dproc.c dproto.h dsock.c dstore.c kerne
lbase.h machine.h machine.h.old new_machine.h __lseek.s Makefile
ln -s dialects/linux/proc/dfile.c dfile.c
ln -s dialects/linux/proc/dlsof.h dlsof.h
ln -s dialects/linux/proc/dmnt.c dmnt.c
ln -s dialects/linux/proc/dnode.c dnode.c
ln -s dialects/linux/proc/dproc.c dproc.c
ln -s dialects/linux/proc/dproto.h dproto.h
ln -s dialects/linux/proc/dsock.c dsock.c
ln -s dialects/linux/proc/dstore.c dstore.c
ln -s dialects/linux/proc/machine.h machine.h
Makefile and lib/Makefile created.

You may now customize the machine.h header file for this UNIX
dialect.  The customizations will take effect when you compile
lsof.  You may also choose to skip customization and proceed to
the compilation of lsof.

If you don't know if you need to customize or want to know more
about what you can customize, consult the 00DCACHE, 00FAQ, 00PORTING,
and 00README files of the lsof distribution.  You might also find
it helpful to examine the machine.h header file for the dialect
you're customizing.

You don't need to use this procedure to customize lsof; you can
edit the machine.h header file directly.  If you later decide you
want to use this procedure to customize machine.h, execute the
./Customize script.

Do you want to customize (y|n) [y]?

Customizing ...

=====================================================================

When HASSECURITY is enabled, only the root user may use lsof to
examine all open files; other users may examine only the files
belonging to the real user ID of their lsof process.

When HASSECURITY is disabled, anyone may use lsof to examine all
open files.

HASSECURITY is disabled.

Enable HASSECURITY (y|n) [n]?

HASSECURITY will not be changed.

=====================================================================

When WARNINGSTATE is enabled, lsof will will issue whatever warning
messages it finds necessary.  When WARNINGSTATE is disabled, lsof
will issue no warning messages.  For individual uses of lsof, -w
disables warning state and +w enables it.

WARNINGSTATE is enabled.

Disable WARNINGSTATE? (y|n) [n]?

WARNINGSTATE will not be changed.

=====================================================================

A new machine.h file has been created in "new_machine.h".

Do you want to rename machine.h to machine.h.old and replace it with
new_machine.h (y|n) [y]?

You may now run the make command -- e.g.,

        $ make

javaservice:/usr/src/lsof/lsof_4.49#
javaservice:/usr/src/lsof/lsof_4.49# make
(cd lib; make DEBUG="-O" CFGF="-DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR=\"2
.2.12-20kr\"")
make[1]: Entering directory `/usr/src/lsof/lsof_4.49/lib'
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR="2.2.12-20kr"  -O   -c ckkv.c
-o ckkv.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR="2.2.12-20kr"  -O   -c cvfs.c
-o cvfs.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR="2.2.12-20kr"  -O   -c dvch.c
-o dvch.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR="2.2.12-20kr"  -O   -c fino.c
-o fino.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR="2.2.12-20kr"  -O   -c isfn.c
-o isfn.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR="2.2.12-20kr"  -O   -c lkud.c
-o lkud.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR="2.2.12-20kr"  -O   -c pdvn.c
-o pdvn.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR="2.2.12-20kr"  -O   -c prfp.c
-o prfp.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR="2.2.12-20kr"  -O   -c ptti.c
-o ptti.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR="2.2.12-20kr"  -O   -c rdev.c
-o rdev.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR="2.2.12-20kr"  -O   -c rmnt.c
-o rmnt.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR="2.2.12-20kr"  -O   -c rnam.c
-o rnam.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR="2.2.12-20kr"  -O   -c rnch.c
-o rnch.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR="2.2.12-20kr"  -O   -c rnmh.c
-o rnmh.o
ar cr liblsof.a ckkv.o cvfs.o dvch.o fino.o isfn.o lkud.o pdvn.o prfp.o ptti.o rdev.
o rmnt.o rnam.o rnch.o rnmh.o
ranlib liblsof.a
make[1]: Leaving directory `/usr/src/lsof/lsof_4.49/lib'
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR=\"2.2.12-20kr\"    -O   -c dfi
le.c -o dfile.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR=\"2.2.12-20kr\"    -O   -c dmn
t.c -o dmnt.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR=\"2.2.12-20kr\"    -O   -c dno
de.c -o dnode.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR=\"2.2.12-20kr\"    -O   -c dpr
oc.c -o dproc.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR=\"2.2.12-20kr\"    -O   -c dso
ck.c -o dsock.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR=\"2.2.12-20kr\"    -O   -c dst
ore.c -o dstore.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR=\"2.2.12-20kr\"    -O   -c arg
.c -o arg.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR=\"2.2.12-20kr\"    -O   -c mai
n.c -o main.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR=\"2.2.12-20kr\"    -O   -c mis
c.c -o misc.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR=\"2.2.12-20kr\"    -O   -c nod
e.c -o node.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR=\"2.2.12-20kr\"    -O   -c pri
nt.c -o print.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR=\"2.2.12-20kr\"    -O   -c pro
c.c -o proc.o
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR=\"2.2.12-20kr\"    -O   -c sto
re.c -o store.o
Constructing version.h
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR=\"2.2.12-20kr\"    -O   -c usa
ge.c -o usage.o
cc -o lsof dfile.o dmnt.o dnode.o dproc.o dsock.o dstore.o arg.o main.o misc.o node.
o print.o proc.o store.o usage.o -L./lib -llsof
javaservice:/usr/src/lsof/lsof_4.49# make install
(cd lib; make DEBUG="-O" CFGF="-DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR=\"2
.2.12-20kr\"")
make[1]: Entering directory `/usr/src/lsof/lsof_4.49/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/lsof/lsof_4.49/lib'
Constructing version.h
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR=\"2.2.12-20kr\"    -O   -c usa
ge.c -o usage.o
cc -o lsof dfile.o dmnt.o dnode.o dproc.o dsock.o dstore.o arg.o main.o misc.o node.
o print.o proc.o store.o usage.o -L./lib -llsof

Please write your own install rule.  Lsof should be installed
setuid to root if you wish any lsof user to be able to examine
all open files.  Your install rule actions might look something
like this:

    install -m 4xxx -o root -g <group> ${PROG} ${BIN}
    install -m 444 ${MAN} ${DOC}

You will have to complete the 4xxx modes, the <group> value,
and the skeletons for the BIN and DOC strings, given at the
beginning of this Makefile, e.g.,

    BIN= ${DESTDIR}/usr/local/etc
    DOC= ${DESTDIR}/usr/man/man8
    GRP= sys

javaservice:/usr/src/lsof/lsof_4.49# ls
total 1364
   4 00.README.FIRST     8 Inventory*     0 dsock.c@          12 misc.o
   8 00CREDITS           4 Makefile      24 dsock.o            8 node.c
  32 00DCACHE           40 arg.c          0 dstore.c@          4 node.o
   4 00DIALECTS         16 arg.o          4 dstore.o          60 print.c
  88 00DIST              0 dfile.c@       4 lib/              20 print.o
156 00FAQ               4 dfile.o      104 lsof*             24 proc.c
   4 00LSOF-L            4 dialects/     96 lsof.8            12 proc.o
   4 00MANIFEST          0 dlsof.h@      20 lsof.h            12 proto.h
  56 00PORTING           0 dmnt.c@      112 lsof.man           4 scripts/
  36 00QUICKSTART        4 dmnt.o         8 lsof_fields.h     16 store.c
  56 00README            0 dnode.c@      16 machine.h          8 store.o
  20 00XCONFIG           8 dnode.o        0 machine.h.old@    16 usage.c
   8 AFSConfig*          0 dproc.c@      24 main.c            12 usage.o
  92 Configure*         12 dproc.o       16 main.o             4 version
  24 Customize*          0 dproto.h@     28 misc.c             4 version.h
javaservice:/usr/src/lsof/lsof_4.49# make install
(cd lib; make DEBUG="-O" CFGF="-DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR=\"2
.2.12-20kr\"")
make[1]: Entering directory `/usr/src/lsof/lsof_4.49/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/lsof/lsof_4.49/lib'
Constructing version.h
cc  -DLINUXV=22012 -DGLIBCV=201 -DHASIPv6 -DLSOF_VSTR=\"2.2.12-20kr\"    -O   -c usa
ge.c -o usage.o
cc -o lsof dfile.o dmnt.o dnode.o dproc.o dsock.o dstore.o arg.o main.o misc.o node.
o print.o proc.o store.o usage.o -L./lib -llsof

Please write your own install rule.  Lsof should be installed
setuid to root if you wish any lsof user to be able to examine
all open files.  Your install rule actions might look something
like this:

    install -m 4xxx -o root -g <group> ${PROG} ${BIN}
    install -m 444 ${MAN} ${DOC}

You will have to complete the 4xxx modes, the <group> value,
and the skeletons for the BIN and DOC strings, given at the
beginning of this Makefile, e.g.,

    BIN= ${DESTDIR}/usr/local/etc
    DOC= ${DESTDIR}/usr/man/man8
    GRP= sys

javaservice:/usr/src/lsof/lsof_4.49# install -m 4755 -o root -g root lsof /usr/local/bin
javaservice:/usr/src/lsof/lsof_4.49# mkdir /usr/local/man/man8
javaservice:/usr/src/lsof/lsof_4.49# cp lsof.8 /usr/local/man/man8/
javaservice:/usr/src/lsof/lsof_4.49#
javaservice:/usr/src/lsof/lsof_4.49#



PS: solaris 용 lsof 는 아래 문서를 참조하세요.
http://www.javaservice.net/~java/bbs/read.cgi?m=unix&b=unix&c=r_p&n=991922524

PS: AIX용 binary 파일 첨부합니다. (lsof_aix_binary.tar)
   그러나 가급적, 소스를(lsof_4.56_W.tar.gz) 다운받아 직접 컴파일하세요




:
Posted by 라면스프