[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 |
|
---|
[2a54f99] | 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 " ">
|
---|
[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 | <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 |
|
---|
[b7a85cd9] | 36 | <para>
|
---|
| 37 | The <application>lsof</application> package is useful to LiSt Open
|
---|
| 38 | Files for a given running application or process.
|
---|
| 39 | </para>
|
---|
[740597c] | 40 |
|
---|
[50a6bd6] | 41 | &lfs110_checked;
|
---|
[740597c] | 42 |
|
---|
| 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 44 | <itemizedlist spacing="compact">
|
---|
| 45 | <listitem>
|
---|
[b7a85cd9] | 46 | <para>
|
---|
| 47 | Download (HTTP): <ulink url="&lsof-download-http;"/>
|
---|
| 48 | </para>
|
---|
[740597c] | 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
[b7a85cd9] | 51 | <para>
|
---|
| 52 | Download (FTP): <ulink url="&lsof-download-ftp;"/>
|
---|
| 53 | </para>
|
---|
[740597c] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[b7a85cd9] | 56 | <para>
|
---|
| 57 | Download MD5 sum: &lsof-md5sum;
|
---|
| 58 | </para>
|
---|
[740597c] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[b7a85cd9] | 61 | <para>
|
---|
| 62 | Download size: &lsof-size;
|
---|
| 63 | </para>
|
---|
[740597c] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[b7a85cd9] | 66 | <para>
|
---|
| 67 | Estimated disk space required: &lsof-buildsize;
|
---|
| 68 | </para>
|
---|
[740597c] | 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
[b7a85cd9] | 71 | <para>
|
---|
| 72 | Estimated build time: &lsof-time;
|
---|
| 73 | </para>
|
---|
[740597c] | 74 | </listitem>
|
---|
| 75 | </itemizedlist>
|
---|
| 76 |
|
---|
[2eef4339] | 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 |
|
---|
[740597c] | 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 |
|
---|
[b7a85cd9] | 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>
|
---|
[740597c] | 98 |
|
---|
[42191411] | 99 | <screen><userinput>tar -xf lsof_&lsof-version;_src.tar &&
|
---|
| 100 | cd lsof_&lsof-version;_src &&
|
---|
[c684b9d] | 101 | ./Configure -n linux &&
|
---|
[740597c] | 102 | make CFGL="-L./lib -ltirpc"</userinput></screen>
|
---|
| 103 |
|
---|
[b7a85cd9] | 104 | <para>
|
---|
| 105 | This package does not come with a working test suite.
|
---|
| 106 | </para>
|
---|
[740597c] | 107 |
|
---|
[b7a85cd9] | 108 | <para>
|
---|
| 109 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 110 | </para>
|
---|
[740597c] | 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 |
|
---|
[2eef4339] | 117 | <sect2 role="commands">
|
---|
| 118 | <title>Command Explanations</title>
|
---|
| 119 |
|
---|
| 120 | <para>
|
---|
[c684b9d] | 121 | <command>./Configure -n linux</command>: Avoid AFS, customization, and
|
---|
[f3429309] | 122 | inventory checks, and use the linux dialect.
|
---|
[2eef4339] | 123 | </para>
|
---|
| 124 |
|
---|
| 125 | <para>
|
---|
[df9df07] | 126 | <command>make CFGL="-L./lib -ltirpc"</command>: Add the libtirpc
|
---|
| 127 | libraries location to the <command>make</command> command.
|
---|
[2eef4339] | 128 | </para>
|
---|
| 129 |
|
---|
| 130 | </sect2>
|
---|
| 131 |
|
---|
[740597c] | 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>
|
---|
[b7a85cd9] | 155 | <para>
|
---|
[4c24eb0a] | 156 | lists open files for running processes
|
---|
[b7a85cd9] | 157 | </para>
|
---|
[740597c] | 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>
|
---|