📄 psmisc.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content= "application/xhtml+xml; charset=iso-8859-1" /> <title> 10.47. Psmisc-22.2 </title> <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="stylesheet" href="../stylesheets/lfs-print.css" type= "text/css" media="print" /> </head> <body id="lfs" class="CLFS-SVN-20060417-MIPS"> <div class="navheader"> <div class="headertitles"> <h4> Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS </h4> <h3> Chapter 10. Installing Basic System Software </h3> </div> <ul class="headerlinks"> <li class="prev"> <a accesskey="p" href="patch.html" title="Patch-2.5.9">Prev</a> <p> Patch-2.5.9 </p> </li> <li class="next"> <a accesskey="n" href="shadow.html" title="Shadow-4.0.15">Next</a> <p> Shadow-4.0.15 </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 10. Installing Basic System Software">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS"> Home</a> </li> </ul> </div> <div class="wrap" lang="en" xml:lang="en"> <div class="titlepage"> <h1 class="sect1"> 10.47. Psmisc-22.2 </h1> </div> <div class="package" lang="en" xml:lang="en"> <p> The Psmisc package contains programs for displaying information about running processes. </p> <div class="segmentedlist"> <div class="seglistitem"> <div class="seg"> <strong><span class="segtitle">Installation depends on:</span></strong> <span class="seg">Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, and Sed</span> </div> </div> </div> </div> <div class="installation" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="sect2"> 10.47.1. Installation of Psmisc </h2> </div> <p> Prepare Psmisc for compilation: </p> <pre class="userinput"><kbd class="command">./configure --prefix=/usr --exec-prefix=""</kbd></pre> <div class="variablelist"> <p class="title"> <b>The meaning of the configure option:</b> </p> <dl> <dt> <span class="term"><em class= "parameter"><tt>--exec-prefix=""</tt></em></span> </dt> <dd> <p> This ensures that the Psmisc binaries will install into <tt class="filename">/bin</tt> instead of <tt class= "filename">/usr/bin</tt>. This is the correct location according to the FHS, because some of the Psmisc binaries are used by the LFS-Bootscripts package. </p> </dd> </dl> </div> <p> Compile the package: </p> <pre class="userinput"><kbd class="command">make</kbd></pre> <p> This package does not come with a test suite. </p> <p> Install the package: </p> <pre class="userinput"><kbd class="command">make install</kbd></pre> <p> There is no reason for the <span><strong class= "command">pstree</strong></span> and <span><strong class= "command">pstree.x11</strong></span> programs to reside in <tt class="filename">/bin</tt>. Therefore, move them to <tt class= "filename">/usr/bin</tt>: </p> <pre class="userinput"><kbd class="command">mv -v /bin/pstree* /usr/bin</kbd></pre> <p> By default, Psmisc's <span><strong class= "command">pidof</strong></span> program is not installed. This usually is not a problem because it is installed later in the Sysvinit package, which provides a better <span><strong class= "command">pidof</strong></span> program. If Sysvinit will not be used for a particular system, complete the installation of Psmisc by creating the following symlink: </p> <pre class="userinput"><kbd class="command">ln -sv killall /bin/pidof</kbd></pre> </div> <div class="content" lang="en" xml:lang="en"> <div class="titlepage"> <a id="contents-psmisc" name="contents-psmisc"></a> <h2 class="sect2"> 10.47.2. Contents of Psmisc </h2> </div> <div class="segmentedlist"> <div class="seglistitem"> <div class="seg"> <strong><span class="segtitle">Installed programs:</span></strong> <span class="seg">fuser, killall, pstree, and pstree.x11 (link to pstree)</span> </div> </div> </div> <div class="variablelist"> <h3> <a id="id3685980" name="id3685980"></a>Short Descriptions </h3> <table border="0"> <col align="left" valign="top" /> <tbody> <tr> <td> <a id="fuser" name="fuser"></a><span class= "term"><span><strong class= "command">fuser</strong></span></span> </td> <td> <p> Reports the Process IDs (PIDs) of processes that use the given files or file systems </p> </td> </tr> <tr> <td> <a id="killall" name="killall"></a><span class= "term"><span><strong class= "command">killall</strong></span></span> </td> <td> <p> Kills processes by name; it sends a signal to all processes running any of the given commands </p> </td> </tr> <tr> <td> <a id="pstree" name="pstree"></a><span class= "term"><span><strong class= "command">pstree</strong></span></span> </td> <td> <p> Displays running processes as a tree </p> </td> </tr> <tr> <td> <a id="pstree.x11" name="pstree.x11"></a><span class= "term"><span><strong class= "command">pstree.x11</strong></span></span> </td> <td> <p> Same as <span><strong class= "command">pstree</strong></span>, except that it waits for confirmation before exiting </p> </td> </tr> </tbody> </table> </div> </div> </div> <div class="navfooter"> <ul> <li class="prev"> <a accesskey="p" href="patch.html" title="Patch-2.5.9">Prev</a> <p> Patch-2.5.9 </p> </li> <li class="next"> <a accesskey="n" href="shadow.html" title="Shadow-4.0.15">Next</a> <p> Shadow-4.0.15 </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 10. Installing Basic System Software">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS"> Home</a>. </li> </ul> </div> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -