source: chapter06/psmisc.xml@ 3546862

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.0 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 3546862 was b8a819f, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Changed the id's location in the Short descriptions sections to fix a bug in the PDF generation.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3711 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 4.1 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[a001133]6<sect1 id="ch-system-psmisc" xreflabel="Psmisc" role="wrap">
[673b0d8]7<title>Psmisc-&psmisc-version;</title>
8<?dbhtml filename="psmisc.html"?>
9
10<indexterm zone="ch-system-psmisc"><primary sortas="a-Psmisc">Psmisc</primary></indexterm>
[6370fa6]11
[a001133]12<sect2 role="package"><title/>
[5888299]13<para>The Psmisc package contains programs for displaying information on
14processes.</para>
15
[a001133]16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.1 SBU</seg><seg>2.2 MB</seg></seglistitem>
20</segmentedlist>
[673b0d8]21
[a001133]22<segmentedlist>
23<segtitle>Psmisc installation depends on</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
25GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed</seg></seglistitem>
26</segmentedlist>
27</sect2>
[3554fa3a]28
[a001133]29<sect2 role="installation">
[73aedd1d]30<title>Installation of Psmisc</title>
31
32<para>Prepare Psmisc for compilation:</para>
33
[9dfc02f]34<screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
[73aedd1d]35
36<para>The meaning of the configure option:</para>
37
[df8334f]38<variablelist>
39<varlistentry>
40<term><userinput>--exec-prefix=""</userinput></term>
41<listitem><para>This causes the
[673b0d8]42binaries to be installed in <filename>/bin</filename> instead of
[73aedd1d]43<filename>/usr/bin</filename>. As the Psmisc programs are often used in
44bootscripts, they should be available also when the <filename>/usr</filename>
[ab3b93b]45file system isn't mounted.</para></listitem>
[df8334f]46</varlistentry>
47</variablelist>
[73aedd1d]48
49<para>Compile the package:</para>
50
51<screen><userinput>make</userinput></screen>
52
[673b0d8]53<para>Now install it:</para>
[73aedd1d]54
55<screen><userinput>make install</userinput></screen>
56
[10e1008]57<para>There is no reason for the <filename>pstree</filename> and
58<filename>pstree.x11</filename> programs to reside in
59<filename class="directory">/bin</filename>. We therefore move them to
60<filename class="directory">/usr/bin</filename>. Also, there is no need
61for <filename>pstree.x11</filename> to exist as a separate program. We
62therefore make it a symbolic link to <filename>pstree</filename>:</para>
63
64<screen><userinput>mv /bin/pstree* /usr/bin
65ln -sf pstree /usr/bin/pstree.x11</userinput></screen>
66
[90e3cb3]67<para>By default Psmisc's <command>pidof</command> program isn't installed.
[73aedd1d]68Generally, this isn't a problem because we later install the Sysvinit package,
[90e3cb3]69which provides a better <command>pidof</command> program. But if you're not
[73aedd1d]70going to use Sysvinit, you should complete the installation of Psmisc by
71creating the following symlink:</para>
72
73<screen><userinput>ln -s killall /bin/pidof</userinput></screen>
74
75</sect2>
[6370fa6]76
[5888299]77
[c6cb3aa]78<sect2 id="contents-psmisc" role="content"><title>Contents of Psmisc</title>
[673b0d8]79
[c6cb3aa]80<segmentedlist>
81<segtitle>Installed programs</segtitle>
82<seglistitem><seg>fuser, killall, pstree and pstree.x11 (link to pstree)</seg></seglistitem>
83</segmentedlist>
[673b0d8]84
[c6cb3aa]85<variablelist><title>Short descriptions</title>
[673b0d8]86
[b8a819f]87<varlistentry id="fuser">
88<term><command>fuser</command></term>
[c6cb3aa]89<listitem>
[673b0d8]90<indexterm zone="ch-system-psmisc fuser"><primary sortas="b-fuser">fuser</primary></indexterm>
[c6cb3aa]91<para>reports the PIDs of processes that use the given files or file systems.</para>
92</listitem>
93</varlistentry>
[73aedd1d]94
[b8a819f]95<varlistentry id="killall">
96<term><command>killall</command></term>
[c6cb3aa]97<listitem>
[673b0d8]98<indexterm zone="ch-system-psmisc killall"><primary sortas="b-killall">killall</primary></indexterm>
[c6cb3aa]99<para>kills processes by name. It sends a signal
[673b0d8]100to all processes running any of the given commands.</para>
[c6cb3aa]101</listitem>
102</varlistentry>
[673b0d8]103
[b8a819f]104<varlistentry id="pstree">
105<term><command>pstree</command></term>
[c6cb3aa]106<listitem>
[673b0d8]107<indexterm zone="ch-system-psmisc pstree"><primary sortas="b-pstree">pstree</primary></indexterm>
[c6cb3aa]108<para>displays running processes as a tree.</para>
109</listitem>
110</varlistentry>
[673b0d8]111
[b8a819f]112<varlistentry id="pstree.x11">
113<term><command>pstree.x11</command></term>
[c6cb3aa]114<listitem>
[673b0d8]115<indexterm zone="ch-system-psmisc pstree.x11"><primary sortas="b-pstree.x11">pstree.x11</primary></indexterm>
[c6cb3aa]116<para>same as pstree except that it waits for confirmation before exiting.</para>
117</listitem>
118</varlistentry>
119</variablelist>
[673b0d8]120
121</sect2>
122
123</sect1>
Note: See TracBrowser for help on using the repository browser.