2024-01-18 19:53:23 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2007-03-21 18:42:58 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2006-02-07 19:39:29 +00:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<sect1 id="ch-system-procps" role="wrap">
|
2013-01-22 23:27:01 +00:00
|
|
|
<?dbhtml filename="procps-ng.html"?>
|
2006-02-07 19:39:29 +00:00
|
|
|
|
2007-09-07 20:16:43 +01:00
|
|
|
<sect1info condition="script">
|
2013-01-22 23:27:01 +00:00
|
|
|
<productname>procps-ng</productname>
|
|
|
|
<productnumber>&procps-ng-version;</productnumber>
|
|
|
|
<address>&procps-ng-url;</address>
|
2007-09-07 20:16:43 +01:00
|
|
|
</sect1info>
|
|
|
|
|
2013-01-27 20:32:14 +00:00
|
|
|
<title>Procps-ng-&procps-ng-version;</title>
|
2006-02-07 19:39:29 +00:00
|
|
|
|
|
|
|
<indexterm zone="ch-system-procps">
|
2013-01-22 23:27:01 +00:00
|
|
|
<primary sortas="a-Procps">Procps-ng</primary>
|
2006-02-07 19:39:29 +00:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title/>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2013-01-22 23:27:01 +00:00
|
|
|
<para>The Procps-ng package contains programs for monitoring processes.</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<seglistitem>
|
2020-06-11 13:55:28 +01:00
|
|
|
<seg>&procps-ng-fin-sbu;</seg>
|
|
|
|
<seg>&procps-ng-fin-du;</seg>
|
2006-02-07 19:39:29 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
2013-01-22 23:27:01 +00:00
|
|
|
<title>Installation of Procps-ng</title>
|
2006-02-07 19:39:29 +00:00
|
|
|
|
2022-12-15 18:44:44 +00:00
|
|
|
<para>Prepare Procps-ng for compilation:</para>
|
2010-09-22 21:26:12 +01:00
|
|
|
|
2022-11-15 06:31:18 +00:00
|
|
|
<screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \
|
2013-01-25 17:56:26 +00:00
|
|
|
--docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
|
2022-11-15 06:31:18 +00:00
|
|
|
--disable-static \
|
2013-01-22 23:27:01 +00:00
|
|
|
--disable-kill</userinput></screen>
|
2010-09-22 21:26:12 +01:00
|
|
|
|
2022-11-15 06:31:18 +00:00
|
|
|
<screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \
|
2016-05-24 22:24:59 +01:00
|
|
|
--docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
|
2022-11-15 06:31:18 +00:00
|
|
|
--disable-static \
|
|
|
|
--disable-kill \
|
2016-05-24 22:24:59 +01:00
|
|
|
--with-systemd</userinput></screen>
|
|
|
|
|
2013-01-22 23:27:01 +00:00
|
|
|
<variablelist>
|
2020-06-12 05:40:07 +01:00
|
|
|
<title>The meaning of the configure option:</title>
|
2010-08-03 20:55:09 +01:00
|
|
|
|
2013-01-22 23:27:01 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>--disable-kill</parameter></term>
|
|
|
|
<listitem>
|
2014-08-07 10:39:32 +01:00
|
|
|
<para>This switch disables building the <command>kill</command>
|
2022-12-15 18:44:44 +00:00
|
|
|
command; it will be installed from the Util-linux package.</para>
|
2013-01-22 23:27:01 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2013-02-11 20:09:22 +00:00
|
|
|
|
2008-10-11 18:04:24 +01:00
|
|
|
<para>Compile the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2023-09-02 14:54:55 +01:00
|
|
|
<screen revision='sysv'><userinput remap="make">make</userinput></screen>
|
|
|
|
<screen revision='systemd'><userinput remap="make">make src_w_LDADD='$(LDADD) -lsystemd'</userinput></screen>
|
|
|
|
|
2020-08-04 21:14:32 +01:00
|
|
|
<para> To run the test suite, run:</para>
|
|
|
|
|
|
|
|
<screen><userinput remap="test">make check</userinput></screen>
|
2013-02-11 20:09:22 +00:00
|
|
|
|
2008-10-11 18:04:24 +01:00
|
|
|
<para>Install the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 id="contents-procps" role="content">
|
2013-01-22 23:27:01 +00:00
|
|
|
<title>Contents of Procps-ng</title>
|
2006-02-07 19:39:29 +00:00
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed programs</segtitle>
|
|
|
|
<segtitle>Installed library</segtitle>
|
2014-09-26 15:47:08 +01:00
|
|
|
<segtitle>Installed directories</segtitle>
|
2006-02-07 19:39:29 +00:00
|
|
|
|
|
|
|
<seglistitem>
|
2013-12-13 06:55:02 +00:00
|
|
|
<seg>free, pgrep, pidof, pkill, pmap, ps, pwdx, slabtop,
|
2014-09-26 15:47:08 +01:00
|
|
|
sysctl, tload, top, uptime, vmstat, w, and watch</seg>
|
2022-04-15 03:32:55 +01:00
|
|
|
<seg>libproc-2.so</seg>
|
|
|
|
<seg>/usr/include/procps and /usr/share/doc/procps-ng-&procps-ng-version;</seg>
|
2006-02-07 19:39:29 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="free">
|
|
|
|
<term><command>free</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Reports the amount of free and used memory (both physical and
|
|
|
|
swap memory) in the system</para>
|
|
|
|
<indexterm zone="ch-system-procps free">
|
|
|
|
<primary sortas="b-free">free</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="pgrep">
|
|
|
|
<term><command>pgrep</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Looks up processes based on their name and other attributes</para>
|
|
|
|
<indexterm zone="ch-system-procps pgrep">
|
|
|
|
<primary sortas="b-pgrep">pgrep</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-12-13 06:55:02 +00:00
|
|
|
<varlistentry id="pidof">
|
|
|
|
<term><command>pidof</command></term>
|
|
|
|
<listitem>
|
2014-07-21 10:08:33 +01:00
|
|
|
<para>Reports the PIDs of the given programs</para>
|
2013-12-13 06:55:02 +00:00
|
|
|
<indexterm zone="ch-system-procps pidof">
|
|
|
|
<primary sortas="b-pidof">pidof</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<varlistentry id="pkill">
|
|
|
|
<term><command>pkill</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Signals processes based on their name and other attributes</para>
|
|
|
|
<indexterm zone="ch-system-procps pkill">
|
|
|
|
<primary sortas="b-pkill">pkill</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="pmap">
|
|
|
|
<term><command>pmap</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Reports the memory map of the given process</para>
|
|
|
|
<indexterm zone="ch-system-procps pmap">
|
|
|
|
<primary sortas="b-pmap">pmap</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ps">
|
|
|
|
<term><command>ps</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Lists the current running processes</para>
|
|
|
|
<indexterm zone="ch-system-procps ps">
|
|
|
|
<primary sortas="b-ps">ps</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2022-12-15 18:44:44 +00:00
|
|
|
<!-- <varlistentry id="pwait">
|
2021-02-14 22:37:55 +00:00
|
|
|
<term><command>pwait</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Waits for a process to finish before executing.</para>
|
|
|
|
<indexterm zone="ch-system-procps pwait">
|
|
|
|
<primary sortas="b-pwait">pwait</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
2022-12-15 18:44:44 +00:00
|
|
|
</varlistentry> This program no longer exists;
|
|
|
|
it's already been removed from the Installed programs list. -->
|
2021-02-14 22:37:55 +00:00
|
|
|
|
2007-05-12 21:45:29 +01:00
|
|
|
<varlistentry id="pwdx">
|
|
|
|
<term><command>pwdx</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Reports the current working directory of a process</para>
|
|
|
|
<indexterm zone="ch-system-procps pwdx">
|
|
|
|
<primary sortas="b-pwdx">pwdx</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-06-10 16:46:30 +01:00
|
|
|
<varlistentry id="slabtop">
|
|
|
|
<term><command>slabtop</command></term>
|
|
|
|
<listitem>
|
2017-12-28 03:52:38 +00:00
|
|
|
<para>Displays detailed kernel slab cache information in real time</para>
|
2006-06-10 16:46:30 +01:00
|
|
|
<indexterm zone="ch-system-procps slabtop">
|
|
|
|
<primary sortas="b-slabtop">slabtop</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<varlistentry id="sysctl">
|
|
|
|
<term><command>sysctl</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Modifies kernel parameters at run time</para>
|
|
|
|
<indexterm zone="ch-system-procps sysctl">
|
|
|
|
<primary sortas="b-sysctl">sysctl</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="tload">
|
|
|
|
<term><command>tload</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Prints a graph of the current system load average</para>
|
|
|
|
<indexterm zone="ch-system-procps tload">
|
|
|
|
<primary sortas="b-tload">tload</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="top">
|
|
|
|
<term><command>top</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Displays a list of the most CPU intensive processes; it
|
|
|
|
provides an ongoing look at processor activity in real time</para>
|
|
|
|
<indexterm zone="ch-system-procps top">
|
|
|
|
<primary sortas="b-top">top</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="uptime">
|
|
|
|
<term><command>uptime</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Reports how long the system has been running, how many users are
|
|
|
|
logged on, and the system load averages</para>
|
|
|
|
<indexterm zone="ch-system-procps uptime">
|
|
|
|
<primary sortas="b-uptime">uptime</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="vmstat">
|
|
|
|
<term><command>vmstat</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Reports virtual memory statistics, giving information about
|
|
|
|
processes, memory, paging, block Input/Output (IO), traps, and CPU
|
|
|
|
activity</para>
|
|
|
|
<indexterm zone="ch-system-procps vmstat">
|
|
|
|
<primary sortas="b-vmstat">vmstat</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="w">
|
|
|
|
<term><command>w</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Shows which users are currently logged on, where, and since
|
|
|
|
when</para>
|
|
|
|
<indexterm zone="ch-system-procps w">
|
|
|
|
<primary sortas="b-w">w</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="watch">
|
|
|
|
<term><command>watch</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Runs a given command repeatedly, displaying the first
|
|
|
|
screen-full of its output; this allows a user to watch the output
|
|
|
|
change over time</para>
|
|
|
|
<indexterm zone="ch-system-procps watch">
|
|
|
|
<primary sortas="b-watch">watch</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2022-04-15 03:32:55 +01:00
|
|
|
<varlistentry id="libproc-2">
|
|
|
|
<term><filename class="libraryfile">libproc-2</filename></term>
|
2006-02-07 19:39:29 +00:00
|
|
|
<listitem>
|
|
|
|
<para>Contains the functions used by most programs in this
|
|
|
|
package</para>
|
2022-04-15 03:32:55 +01:00
|
|
|
<indexterm zone="ch-system-procps libproc-2">
|
|
|
|
<primary sortas="c-libproc-2">libproc-2</primary>
|
2006-02-07 19:39:29 +00:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
|
|
|
</sect1>
|