[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 |
|
---|
[f0ca372c] | 7 | <!ENTITY lsof-download-http " ">
|
---|
| 8 | <!ENTITY lsof-download-ftp "ftp://sunsite.ualberta.ca/pub/Mirror/lsof/lsof_&lsof-version;.tar.bz2">
|
---|
[2920bc7] | 9 | <!ENTITY lsof-md5sum "1b29c10db4aa88afcaeeaabeef6790db">
|
---|
| 10 | <!ENTITY lsof-size "764 KB">
|
---|
| 11 | <!ENTITY lsof-buildsize "9.7 MB">
|
---|
[740597c] | 12 | <!ENTITY lsof-time "less than 0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="lsof" xreflabel="lsof-&lsof-version;">
|
---|
| 16 | <?dbhtml filename="lsof.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>lsof-&lsof-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="lsof">
|
---|
| 26 | <primary sortas="a-lsof">lsof</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to lsof</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>lsof</application> package is useful to LiSt Open
|
---|
| 33 | Files for a given running application or process.</para>
|
---|
| 34 |
|
---|
[7a2aeb5] | 35 | &lfs76_checked;
|
---|
[740597c] | 36 |
|
---|
| 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>Download (HTTP): <ulink url="&lsof-download-http;"/></para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (FTP): <ulink url="&lsof-download-ftp;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download MD5 sum: &lsof-md5sum;</para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download size: &lsof-size;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Estimated disk space required: &lsof-buildsize;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated build time: &lsof-time;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | </itemizedlist>
|
---|
| 58 |
|
---|
| 59 | <para condition="html" role="usernotes">User Notes:
|
---|
| 60 | <ulink url="&blfs-wiki;/lsof"/></para>
|
---|
| 61 |
|
---|
| 62 | </sect2>
|
---|
| 63 |
|
---|
| 64 | <sect2 role="installation">
|
---|
| 65 | <title>Installation of lsof</title>
|
---|
| 66 |
|
---|
[2eef4339] | 67 | <para>The <application>lsof</application> tarball includes several files,
|
---|
| 68 | between them, another tarball with the source code, which needs, in turn,
|
---|
| 69 | to be unpacked. Install <application>lsof</application> by running the
|
---|
| 70 | following commands:</para>
|
---|
[740597c] | 71 |
|
---|
[42191411] | 72 | <screen><userinput>tar -xf lsof_&lsof-version;_src.tar &&
|
---|
| 73 | cd lsof_&lsof-version;_src &&
|
---|
[c684b9d] | 74 | ./Configure -n linux &&
|
---|
[f0ca372c] | 75 | make</userinput></screen>
|
---|
[740597c] | 76 |
|
---|
| 77 | <para>This package does not come with a working test suite.</para>
|
---|
| 78 |
|
---|
| 79 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 80 |
|
---|
[f0ca372c] | 81 | <screen role="root"><userinput>install -v -m755 -o root -g root lsof /usr/bin &&
|
---|
[740597c] | 82 | install -v lsof.8 /usr/share/man/man8</userinput></screen>
|
---|
| 83 |
|
---|
| 84 | </sect2>
|
---|
| 85 |
|
---|
[2eef4339] | 86 | <sect2 role="commands">
|
---|
| 87 | <title>Command Explanations</title>
|
---|
| 88 |
|
---|
| 89 | <para>
|
---|
[c684b9d] | 90 | <command>./Configure -n linux</command>: Avoid AFS, customization, and
|
---|
| 91 | inventory checks, and use target-dialect Linux.
|
---|
[2eef4339] | 92 | </para>
|
---|
| 93 |
|
---|
| 94 | </sect2>
|
---|
| 95 |
|
---|
[740597c] | 96 | <sect2 role="content">
|
---|
| 97 | <title>Contents</title>
|
---|
| 98 |
|
---|
| 99 | <segmentedlist>
|
---|
[f0ca372c] | 100 | <segtitle>Installed Programs</segtitle>
|
---|
[740597c] | 101 | <segtitle>Installed Libraries</segtitle>
|
---|
| 102 | <segtitle>Installed Directories</segtitle>
|
---|
| 103 |
|
---|
| 104 | <seglistitem>
|
---|
| 105 | <seg>lsof</seg>
|
---|
| 106 | <seg>None</seg>
|
---|
| 107 | <seg>None</seg>
|
---|
| 108 | </seglistitem>
|
---|
| 109 | </segmentedlist>
|
---|
| 110 |
|
---|
| 111 | <variablelist>
|
---|
| 112 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 113 | <?dbfo list-presentation="list"?>
|
---|
| 114 | <?dbhtml list-presentation="table"?>
|
---|
| 115 |
|
---|
[f0ca372c] | 116 | <varlistentry id="lsof-prog">
|
---|
[740597c] | 117 | <term><command>lsof</command></term>
|
---|
| 118 | <listitem>
|
---|
| 119 | <para>lists open files for running processes.</para>
|
---|
[f0ca372c] | 120 | <indexterm zone="lsof lsof-prog">
|
---|
[740597c] | 121 | <primary sortas="b-lsof">lsof</primary>
|
---|
| 122 | </indexterm>
|
---|
| 123 | </listitem>
|
---|
| 124 | </varlistentry>
|
---|
| 125 |
|
---|
| 126 | </variablelist>
|
---|
| 127 |
|
---|
| 128 | </sect2>
|
---|
| 129 |
|
---|
| 130 | </sect1>
|
---|