source: general/genutils/lsof.xml@ d5b431ec

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since d5b431ec was 14891a90, checked in by Xi Ruoyao <xry111@…>, 12 months ago

treewide: More "User Notes" clean up

Remove links to pages w/o real contents.

  • Property mode set to 100644
File size: 5.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7
8<!ENTITY lsof-download-http "https://github.com/lsof-org/lsof/releases/download/&lsof-version;/lsof_&lsof-version;.linux.tar.bz2">
9<!ENTITY lsof-download-ftp " ">
10<!ENTITY lsof-md5sum "670010707104b1b1fc4cabae974465a6">
11<!ENTITY lsof-size "512 KB">
12<!ENTITY lsof-buildsize "3.3 MB (add 700 KB for tests)">
13<!ENTITY lsof-time "less than 0.1 SBU (add 0.5 SBU for tests)">
14]>
15
16<sect1 id="lsof" xreflabel="lsof-&lsof-version;">
17 <?dbhtml filename="lsof.html"?>
18
19
20 <title>lsof-&lsof-version;</title>
21
22 <indexterm zone="lsof">
23 <primary sortas="a-lsof">lsof</primary>
24 </indexterm>
25
26 <sect2 role="package">
27 <title>Introduction to lsof</title>
28
29 <para>
30 The <application>lsof</application> package is useful to LiSt Open
31 Files for a given running application or process.
32 </para>
33
34 &lfs113_checked;
35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&lsof-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&lsof-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &lsof-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &lsof-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &lsof-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &lsof-time;
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">lsof Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Required</bridgehead>
73 <para role="required">
74 <xref linkend="libtirpc"/>
75 </para>
76
77 <bridgehead renderas="sect4">Optional</bridgehead>
78 <para role="optional">
79 <xref linkend="nmap"/> (with a symbolic link <command>nc</command>
80 pointing to <command>ncat</command> in <filename class="directory">
81 /usr/bin</filename>; used in tests)
82 </para>
83
84 </sect2>
85
86 <sect2 role="kernel" id="lsof-kernel">
87 <title>Kernel Configuration</title>
88
89 <para>
90 To run the tests, the following option should be enabled in the kernel
91 configuration:
92 </para>
93
94<screen><literal>General setup ---&gt;
95 [*] POSIX Message Queues [CONFIG_POSIX_MQUEUE]</literal></screen>
96
97 </sect2>
98
99 <sect2 role="installation">
100 <title>Installation of lsof</title>
101
102 <para>
103 Install <application>lsof</application> by running the
104 following commands:
105 </para>
106
107<screen><userinput>./Configure -n linux &amp;&amp;
108make</userinput></screen>
109
110 <para>
111 The tests should be run as the <systemitem
112 class="username">root</systemitem> user. They require that the
113 POSIX message queues are enabled in the kernel, and that <xref
114 linkend="nmap"/> be installed with a symbolic link
115 <filename>/usr/bin/nc</filename> pointing to <command>ncat</command>.
116 </para>
117
118<screen role="root"
119 remap="test"><userinput>make check</userinput></screen>
120
121 <para>
122 One test, case-20-ux-socket-endpoint, is known to fail.
123 Other test may fail if the tests are run in a script.
124 </para>
125
126 <para>
127 Now, as the <systemitem class="username">root</systemitem> user:
128 </para>
129
130<screen role="root"><userinput>install -v -m4755 -o root -g root lsof /usr/bin &amp;&amp;
131install -v lsof.8 /usr/share/man/man8</userinput></screen>
132
133 </sect2>
134
135 <sect2 role="commands">
136 <title>Command Explanations</title>
137
138 <para>
139 <command>./Configure -n linux</command>: Avoid AFS, customization, and
140 inventory checks, and use the linux dialect.
141 </para>
142
143 <para>
144 <command>install -m4755 ...</command>: <command>lsof</command> should
145 be suid root to allow users to list all files. This may be a security
146 threat on some systems. In that case change to <option>-m755</option>
147 and use <command>sudo</command> to run the program.
148 </para>
149
150 </sect2>
151
152 <sect2 role="content">
153 <title>Contents</title>
154
155 <segmentedlist>
156 <segtitle>Installed Program</segtitle>
157 <segtitle>Installed Libraries</segtitle>
158 <segtitle>Installed Directories</segtitle>
159
160 <seglistitem>
161 <seg>lsof</seg>
162 <seg>None</seg>
163 <seg>None</seg>
164 </seglistitem>
165 </segmentedlist>
166
167 <variablelist>
168 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
169 <?dbfo list-presentation="list"?>
170 <?dbhtml list-presentation="table"?>
171
172 <varlistentry id="lsof-app">
173 <term><command>lsof</command></term>
174 <listitem>
175 <para>
176 lists open files for running processes
177 </para>
178 <indexterm zone="lsof lsof-app">
179 <primary sortas="b-lsof">lsof</primary>
180 </indexterm>
181 </listitem>
182 </varlistentry>
183
184 </variablelist>
185
186 </sect2>
187
188</sect1>
Note: See TracBrowser for help on using the repository browser.