⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 psmisc.html

📁 lfs3.1 从源代码构建linux。html版本。
💻 HTML
字号:
<HTML><HEAD><TITLE>Installing Psmisc-20.1</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.63"><LINKREL="HOME"TITLE="Linux From Scratch"HREF="../index.html"><LINKREL="UP"TITLE="Installing basic system software"HREF="../chapter06/chapter06.html"><LINKREL="PREVIOUS"TITLE="Installing Procps-2.0.7"HREF="../chapter06/procps.html"><LINKREL="NEXT"TITLE="Installing Reiserfsprogs-3.x.0j"HREF="../chapter06/reiserfs.html"></HEAD><BODYCLASS="sect1"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Linux From Scratch: Version 3.1</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="../chapter06/procps.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 6. Installing basic system software</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="../chapter06/reiserfs.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="sect1"><H1CLASS="sect1"><ANAME="ch06-psmisc">6.44. Installing Psmisc-20.1</A></H1><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen">Estimated build time:           1 minuteEstimated required disk space:  500 KB</PRE></FONT></TD></TR></TABLE><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN3265">6.44.1. Installation of Psmisc</A></H2><P>Install Psmisc by running the following commands:</P><P><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen"><TTCLASS="userinput"><B>./configure --prefix=/usr --exec-prefix=/ &#38;&#38;make &#38;&#38;make install</B></TT></PRE></FONT></TD></TR></TABLE></P><P>psmisc installs the<TTCLASS="filename">/usr/share/man/man1/pidof.1</TT> man page, but psmisc'spidof program isn't installed by default. Generally that isn't a problembecause we install the sysvinit package later on which provides us witha better pidof program.</P><P>It's up to you now to decide if you are going to use the sysvinit package which provides a pidof program, or not. If you are going to, you should remove psmisc's pidof man page by running:</P><P><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen"><TTCLASS="userinput"><B>rm /usr/share/man/man1/pidof.1</B></TT></PRE></FONT></TD></TR></TABLE></P><P>If you're not going to use sysvinit, you should complete thispackage's installation by creating the <TTCLASS="filename">/bin/pidof</TT>symlink by running:</P><P><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen"><TTCLASS="userinput"><B>cd /binln -s killall pidof</B></TT></PRE></FONT></TD></TR></TABLE></P></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN3282">6.44.2. Command explanations</A></H2><P><TTCLASS="userinput"><B>--exec-prefix=/:</B></TT> This will cause theprograms to be installed in <TTCLASS="filename">/bin</TT>rather than in <TTCLASS="filename">/usr/bin</TT>. Theprograms in this package are often used in bootscripts, so they shouldbe in the <TTCLASS="filename">/bin</TT> directory so theycan be used when the <TTCLASS="filename">/usr</TT>partition isn't mounted yet.</P></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN3290">6.44.3. Contents</A></H2><P>The Psmisc package contains the fuser, killall, pidof and pstree programs.</P></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN3293">6.44.4. Description</A></H2><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3295">6.44.4.1. fuser</A></H3><P>fuser displays the PIDs of processes using the specified files or file systems.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3298">6.44.4.2. killall</A></H3><P>killall sends a signal to all processes running any of the specified commands.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3301">6.44.4.3. pidof</A></H3><P>Pidof finds the process id's (pids) of the named programs andprints those id's on standard output.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3304">6.44.4.4. pstree</A></H3><P>pstree shows running processes as a tree.</P></DIV></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN3307">6.44.5. Dependencies</A></H2><P>Psmisc-20.1 needs the following to be installed:</P><PCLASS="literallayout"><br>sh&nbsp;from&nbsp;the&nbsp;bash&nbsp;package<br><br>as&nbsp;from&nbsp;the&nbsp;binutils&nbsp;package<br>ld&nbsp;from&nbsp;the&nbsp;binutils&nbsp;package<br><br>cmp&nbsp;from&nbsp;the&nbsp;diffutils&nbsp;package<br><br>chmod&nbsp;from&nbsp;the&nbsp;fileutils&nbsp;package<br>cp&nbsp;from&nbsp;the&nbsp;fileutils&nbsp;package<br>ls&nbsp;from&nbsp;the&nbsp;fileutils&nbsp;package<br>mv&nbsp;from&nbsp;the&nbsp;fileutils&nbsp;package<br>rm&nbsp;from&nbsp;the&nbsp;fileutils&nbsp;package<br><br>cc&nbsp;from&nbsp;the&nbsp;gcc&nbsp;package<br><br>egrep&nbsp;from&nbsp;the&nbsp;grep&nbsp;package<br>grep&nbsp;from&nbsp;the&nbsp;grep&nbsp;package<br><br>make&nbsp;from&nbsp;the&nbsp;make&nbsp;package<br><br>sed&nbsp;from&nbsp;the&nbsp;sed&nbsp;package<br><br>basename&nbsp;from&nbsp;the&nbsp;sh-utils&nbsp;package<br>expr&nbsp;from&nbsp;the&nbsp;sh-utils&nbsp;package<br>sleep&nbsp;from&nbsp;the&nbsp;sh-utils&nbsp;package<br>uname&nbsp;from&nbsp;the&nbsp;sh-utils&nbsp;package<br><br>cat&nbsp;from&nbsp;the&nbsp;textutils&nbsp;package<br>tr&nbsp;from&nbsp;the&nbsp;textutils&nbsp;package<br></P></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="../chapter06/procps.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../index.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="../chapter06/reiserfs.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Installing Procps-2.0.7</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../chapter06/chapter06.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Installing Reiserfsprogs-3.x.0j</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -