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