source: chapter06/psmisc.xml@ 0868461

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 0868461 was 9dfc02f, checked in by Zack Winkles <winkie@…>, 20 years ago

Current BE-LFS (but w/ GCC 3.3.3) merged -> 6.0 branch

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

  • Property mode set to 100644
File size: 3.5 KB
Line 
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]>
6<sect1 id="ch-system-psmisc" xreflabel="Psmisc">
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>
11
12<para>The Psmisc package contains programs for displaying information on
13processes.</para>
14
15<screen>&buildtime; 0.1 SBU
16&diskspace; 2.2 MB</screen>
17
18<para>Psmisc installation depends on: Bash, Binutils, Coreutils, Diffutils,
19GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed.</para>
20
21
22
23<sect2>
24<title>Installation of Psmisc</title>
25
26<para>Prepare Psmisc for compilation:</para>
27
28<screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
29
30<para>The meaning of the configure option:</para>
31
32<itemizedlist>
33<listitem><para><userinput>--exec-prefix=""</userinput>: This causes the
34binaries to be installed in <filename>/bin</filename> instead of
35<filename>/usr/bin</filename>. As the Psmisc programs are often used in
36bootscripts, they should be available also when the <filename>/usr</filename>
37file system isn't mounted.</para></listitem>
38</itemizedlist>
39
40<para>Compile the package:</para>
41
42<screen><userinput>make</userinput></screen>
43
44<para>Now install it:</para>
45
46<screen><userinput>make install</userinput></screen>
47
48<para>There is no reason for the <filename>pstree</filename> and
49<filename>pstree.x11</filename> programs to reside in
50<filename class="directory">/bin</filename>. We therefore move them to
51<filename class="directory">/usr/bin</filename>. Also, there is no need
52for <filename>pstree.x11</filename> to exist as a separate program. We
53therefore make it a symbolic link to <filename>pstree</filename>:</para>
54
55<screen><userinput>mv /bin/pstree* /usr/bin
56ln -sf pstree /usr/bin/pstree.x11</userinput></screen>
57
58<para>By default Psmisc's <command>pidof</command> program isn't installed.
59Generally, this isn't a problem because we later install the Sysvinit package,
60which provides a better <command>pidof</command> program. But if you're not
61going to use Sysvinit, you should complete the installation of Psmisc by
62creating the following symlink:</para>
63
64<screen><userinput>ln -s killall /bin/pidof</userinput></screen>
65
66</sect2>
67
68
69<sect2 id="contents-psmisc"><title>Contents of Psmisc</title>
70
71<para><emphasis>Installed programs</emphasis>: fuser, killall, pstree and
72pstree.x11 (link to pstree)</para>
73
74</sect2>
75
76
77<sect2><title>Short descriptions</title>
78
79<indexterm zone="ch-system-psmisc fuser"><primary sortas="b-fuser">fuser</primary></indexterm>
80<para id="fuser"><command>fuser</command> reports the PIDs of processes that use
81the given files or file systems.</para>
82
83<indexterm zone="ch-system-psmisc killall"><primary sortas="b-killall">killall</primary></indexterm>
84<para id="killall"><command>killall</command> kills processes by name. It sends a signal
85to all processes running any of the given commands.</para>
86
87<indexterm zone="ch-system-psmisc pstree"><primary sortas="b-pstree">pstree</primary></indexterm>
88<para id="pstree"><command>pstree</command> displays running processes as a tree.</para>
89
90<indexterm zone="ch-system-psmisc pstree.x11"><primary sortas="b-pstree.x11">pstree.x11</primary></indexterm>
91<para id="pstree.x11"><command>pstree.x11</command> same as pstree except that it waits for
92confirmation before exiting.</para>
93
94</sect2>
95
96
97
98</sect1>
Note: See TracBrowser for help on using the repository browser.