📄 procps.html
字号:
<HTML><HEAD><TITLE>Installing Procps-2.0.7</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 Procinfo-18"HREF="../chapter06/procinfo.html"><LINKREL="NEXT"TITLE="Installing Psmisc-20.1"HREF="../chapter06/psmisc.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/procinfo.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/psmisc.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="sect1"><H1CLASS="sect1"><ANAME="ch06-procps">6.43. Installing Procps-2.0.7</A></H1><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen">Estimated build time: 1 minuteEstimated required disk space: 2 MB</PRE></FONT></TD></TR></TABLE><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN3207">6.43.1. Installation of Procps</A></H2><P>Install Procps by running the following commands:</P><P><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen"><TTCLASS="userinput"><B>make &&make XSCPT='' install &&mv /usr/bin/kill /bin</B></TT></PRE></FONT></TD></TR></TABLE></P></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN3213">6.43.2. Command explanations</A></H2><P><TTCLASS="userinput"><B>make XSCPT='' install:</B></TT> This will set the Makefile variable XSCPT to an empty value so thatthe XConsole installation is disabled. Otherwise "Make install" tries tocopy the file XConsole to /usr/X11R6/lib/app-defaults. And that directory does not exist, because X is not installed.</P></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN3217">6.43.3. Contents</A></H2><P>The Procps package contains the free, kill, oldps, ps, skill, snice,sysctl, tload, top, uptime, vmstat, w and watch programs.</P></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN3220">6.43.4. Description</A></H2><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3222">6.43.4.1. free</A></H3><P>free displays the total amount of free and used physical and swap memory in the system, as well as the shared memory and buffers used by the kernel.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3225">6.43.4.2. kill</A></H3><P>kills sends signals to processes.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3228">6.43.4.3. oldps and ps</A></H3><P>ps gives a snapshot of the current processes.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3231">6.43.4.4. skill</A></H3><P>skill sends signals to process matching a criteria.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3234">6.43.4.5. snice</A></H3><P>snice changes the scheduling priority for process matching a criteria.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3237">6.43.4.6. sysctl</A></H3><P>sysctl modifies kernel parameters at runtime.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3240">6.43.4.7. tload</A></H3><P>tload prints a graph of the current system load average to the specified tty (or the tty of the tload process if none is specified).</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3243">6.43.4.8. top</A></H3><P>top provides an ongoing look at processor activity in real time.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3246">6.43.4.9. uptime</A></H3><P>uptime gives a one line display of the following information: the current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3249">6.43.4.10. vmstat</A></H3><P>vmstat reports information about processes, memory, paging, block IO, traps, and cpu activity.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3252">6.43.4.11. w</A></H3><P>w displays information about the users currently on the machine, and their processes.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3255">6.43.4.12. watch</A></H3><P>watch runs command repeatedly, displaying its output (the first screen full).</P></DIV></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN3258">6.43.5. Dependencies</A></H2><P>Procps-2.0.7 needs the following to be installed:</P><PCLASS="literallayout"><br>sh from the bash package<br><br>as from the binutils package<br>ld from the binutils package<br>strip from the binutils package<br><br>install from the fileutils package<br>ln from the fileutils package<br>mv from the fileutils package<br>rm from the fileutils package<br><br>gcc from the gcc package<br><br>grep from the grep package<br><br>make from the make package<br><br>sed from the sed package<br><br>basename from the sh-utils package<br>pwd from the sh-utils package<br><br>sort from the textutils package<br>tr from the textutils 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/procinfo.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../index.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="../chapter06/psmisc.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Installing Procinfo-18</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../chapter06/chapter06.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Installing Psmisc-20.1</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -