Debian Codegraph @

README

raw
1 [![Circle CI](https://circleci.com/gh/lsof-org/lsof.svg?style=svg)](https://circleci.com/gh/lsof-org/lsof)
2 [![Cirrus CI](https://img.shields.io/cirrus/github/lsof-org/lsof)](https://cirrus-ci.com/github/lsof-org/lsof)
3 [![builds.sr.ht status](https://builds.sr.ht/~jiegec/lsof.svg)](https://builds.sr.ht/~jiegec/lsof?)
4 [![Read the Docs](https://readthedocs.org/projects/lsof/badge/?version=latest)](https://lsof.readthedocs.io/en/latest/)
5
6 # lsof
7
8 [lsof](https://en.wikipedia.org/wiki/Lsof) is a command listing open files.
9
10 ## How it works:
11
12 ```
13 $ cat > /tmp/LOG &
14 cat > /tmp/LOG &
15 [1] 18083
16 $ lsof -p 18083
17 lsof -p 18083
18 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
19 cat 18083 yamato cwd DIR 0,44 1580 43460784 /tmp/lsof
20 cat 18083 yamato rtd DIR 253,2 4096 2 /
21 cat 18083 yamato txt REG 253,2 47432 678364 /usr/bin/cat
22 cat 18083 yamato mem REG 253,2 111950656 681778 /usr/lib/locale/locale-archive
23 cat 18083 yamato mem REG 253,2 2119256 679775 /usr/lib64/libc-2.27.so
24 cat 18083 yamato mem REG 253,2 187632 655943 /usr/lib64/ld-2.27.so
25 cat 18083 yamato mem REG 253,2 26370 662532 /usr/lib64/gconv/gconv-modules.cache
26 cat 18083 yamato mem REG 253,2 3316 1578981 /usr/lib/locale/en_US.utf8/LC_TIME
27 cat 18083 yamato 0u CHR 136,3 0t0 6 /dev/pts/3
28 cat 18083 yamato 1w REG 0,44 0 54550934 /tmp/LOG
29 cat 18083 yamato 2u CHR 136,3 0t0 6 /dev/pts/3
30 ```
31
32 Read the documentation at [lsof.readthedocs.io](https://lsof.readthedocs.io/)
33
34 # lsof-org at GitHub
35
36 The lsof-org team at GitHub takes over the maintainership of lsof originally
37 developed and maintained by Vic Abell. This repository is for maintaining the
38 final source tree of lsof inherited from Vic. "legacy" branch keeps the original
39 source tree. We will not introduce any changes to the "legacy" branch. This
40 branch is just for reference.
41
42 "master" branch is used for maintenance. Bug fixes and enhancements go to
43 "master" branch.
44
45 lsof had supported many OSes. A term "dialect" represents code for supporting
46 OSes. Because of limited resources, we will maintain the part of them. The
47 current status of maintenance is as follows:
48
49 <dl>
50 <dt>FreeBSD</dt>
51 <dd>fully maintained and tested on Cirrus CI</dd>
52 <dt>Linux</dt>
53 <dd>fully maintained, and tested on Circle CI</dd>
54 <dt>Darwin</dt>
55 <dd>fully maintained, and tested on Circle CI</dd>
56 <dt>NetBSD</dt>
57 <dd>fully maintained, and tested on SourceHut CI</dd>
58 <dt>OpenBSD</dt>
59 <dd>fully maintained, and tested on SourceHut CI</dd>
60 <dt>Solaris/OpenIndiana</dt>
61 <dd>fully maintained</dd>
62 </dl>
63
64 If you are interested in maintaining a dialect, let us know via the issue
65 tracker of GitHub (https://github.com/lsof-org/lsof/issues). If we cannot find a
66 volunteer for a dialect, we will remove the dialect.
67
68 Many texts in the source tree still refers purdue.edu as the home of lsof
69 development. It should be https://github.com/lsof-org/lsof, the new home. The
70 updating is in progress.
71
72 We ran another repository, lsof-org/"lsof-linux" derived from lsof-4.91 that was
73 also released by Vic. The repository is no more used; all the changes made in
74 the repository are now in lsof-org/"lsof" repository.
75
76 The lsof-org team at GitHub