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 | <!-- <!ENTITY lsof-download-http "https://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_&lsof-version;.tar.bz2">
|
---|
8 | <!ENTITY lsof-download-ftp " "> -->
|
---|
9 |
|
---|
10 | <!-- URL is for a mirror. Change back to below if/when main site comes back. -->
|
---|
11 |
|
---|
12 | <!ENTITY lsof-download-http "https://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_&lsof-version;.tar.gz">
|
---|
13 | <!ENTITY lsof-download-ftp " ">
|
---|
14 | <!ENTITY lsof-md5sum "10e1353aa4bf2fd5bbed65db9ef6fd47">
|
---|
15 | <!ENTITY lsof-size "1.1 MB">
|
---|
16 | <!ENTITY lsof-buildsize "9.6 MB">
|
---|
17 | <!ENTITY lsof-time "less than 0.1 SBU">
|
---|
18 | ]>
|
---|
19 |
|
---|
20 | <sect1 id="lsof" xreflabel="lsof-&lsof-version;">
|
---|
21 | <?dbhtml filename="lsof.html"?>
|
---|
22 |
|
---|
23 | <sect1info>
|
---|
24 | <date>$Date$</date>
|
---|
25 | </sect1info>
|
---|
26 |
|
---|
27 | <title>lsof-&lsof-version;</title>
|
---|
28 |
|
---|
29 | <indexterm zone="lsof">
|
---|
30 | <primary sortas="a-lsof">lsof</primary>
|
---|
31 | </indexterm>
|
---|
32 |
|
---|
33 | <sect2 role="package">
|
---|
34 | <title>Introduction to lsof</title>
|
---|
35 |
|
---|
36 | <para>
|
---|
37 | The <application>lsof</application> package is useful to LiSt Open
|
---|
38 | Files for a given running application or process.
|
---|
39 | </para>
|
---|
40 |
|
---|
41 | &lfs110a_checked;
|
---|
42 |
|
---|
43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
44 | <itemizedlist spacing="compact">
|
---|
45 | <listitem>
|
---|
46 | <para>
|
---|
47 | Download (HTTP): <ulink url="&lsof-download-http;"/>
|
---|
48 | </para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>
|
---|
52 | Download (FTP): <ulink url="&lsof-download-ftp;"/>
|
---|
53 | </para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>
|
---|
57 | Download MD5 sum: &lsof-md5sum;
|
---|
58 | </para>
|
---|
59 | </listitem>
|
---|
60 | <listitem>
|
---|
61 | <para>
|
---|
62 | Download size: &lsof-size;
|
---|
63 | </para>
|
---|
64 | </listitem>
|
---|
65 | <listitem>
|
---|
66 | <para>
|
---|
67 | Estimated disk space required: &lsof-buildsize;
|
---|
68 | </para>
|
---|
69 | </listitem>
|
---|
70 | <listitem>
|
---|
71 | <para>
|
---|
72 | Estimated build time: &lsof-time;
|
---|
73 | </para>
|
---|
74 | </listitem>
|
---|
75 | </itemizedlist>
|
---|
76 |
|
---|
77 | <bridgehead renderas="sect3">lsof Dependencies</bridgehead>
|
---|
78 |
|
---|
79 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
80 | <para role="required">
|
---|
81 | <xref linkend="libtirpc"/>
|
---|
82 | </para>
|
---|
83 |
|
---|
84 | <para condition="html" role="usernotes">User Notes:
|
---|
85 | <ulink url="&blfs-wiki;/lsof"/></para>
|
---|
86 |
|
---|
87 | </sect2>
|
---|
88 |
|
---|
89 | <sect2 role="installation">
|
---|
90 | <title>Installation of lsof</title>
|
---|
91 |
|
---|
92 | <para>
|
---|
93 | The contents of the <application>lsof</application> tarball
|
---|
94 | include another tarball with the source code, which needs, in turn,
|
---|
95 | to be unpacked. Install <application>lsof</application> by running the
|
---|
96 | following commands:
|
---|
97 | </para>
|
---|
98 |
|
---|
99 | <screen><userinput>tar -xf lsof_&lsof-version;_src.tar &&
|
---|
100 | cd lsof_&lsof-version;_src &&
|
---|
101 | ./Configure -n linux &&
|
---|
102 | make CFGL="-L./lib -ltirpc"</userinput></screen>
|
---|
103 |
|
---|
104 | <para>
|
---|
105 | This package does not come with a working test suite.
|
---|
106 | </para>
|
---|
107 |
|
---|
108 | <para>
|
---|
109 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
110 | </para>
|
---|
111 |
|
---|
112 | <screen role="root"><userinput>install -v -m0755 -o root -g root lsof /usr/bin &&
|
---|
113 | install -v lsof.8 /usr/share/man/man8</userinput></screen>
|
---|
114 |
|
---|
115 | </sect2>
|
---|
116 |
|
---|
117 | <sect2 role="commands">
|
---|
118 | <title>Command Explanations</title>
|
---|
119 |
|
---|
120 | <para>
|
---|
121 | <command>./Configure -n linux</command>: Avoid AFS, customization, and
|
---|
122 | inventory checks, and use the linux dialect.
|
---|
123 | </para>
|
---|
124 |
|
---|
125 | <para>
|
---|
126 | <command>make CFGL="-L./lib -ltirpc"</command>: Add the libtirpc
|
---|
127 | libraries location to the <command>make</command> command.
|
---|
128 | </para>
|
---|
129 |
|
---|
130 | </sect2>
|
---|
131 |
|
---|
132 | <sect2 role="content">
|
---|
133 | <title>Contents</title>
|
---|
134 |
|
---|
135 | <segmentedlist>
|
---|
136 | <segtitle>Installed Program</segtitle>
|
---|
137 | <segtitle>Installed Libraries</segtitle>
|
---|
138 | <segtitle>Installed Directories</segtitle>
|
---|
139 |
|
---|
140 | <seglistitem>
|
---|
141 | <seg>lsof</seg>
|
---|
142 | <seg>None</seg>
|
---|
143 | <seg>None</seg>
|
---|
144 | </seglistitem>
|
---|
145 | </segmentedlist>
|
---|
146 |
|
---|
147 | <variablelist>
|
---|
148 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
149 | <?dbfo list-presentation="list"?>
|
---|
150 | <?dbhtml list-presentation="table"?>
|
---|
151 |
|
---|
152 | <varlistentry id="lsof-app">
|
---|
153 | <term><command>lsof</command></term>
|
---|
154 | <listitem>
|
---|
155 | <para>
|
---|
156 | lists open files for running processes
|
---|
157 | </para>
|
---|
158 | <indexterm zone="lsof lsof-app">
|
---|
159 | <primary sortas="b-lsof">lsof</primary>
|
---|
160 | </indexterm>
|
---|
161 | </listitem>
|
---|
162 | </varlistentry>
|
---|
163 |
|
---|
164 | </variablelist>
|
---|
165 |
|
---|
166 | </sect2>
|
---|
167 |
|
---|
168 | </sect1>
|
---|