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