source: chapter06/util-linux.xml@ a001133

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 a001133 was a001133, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

HEAD: Retaged the introductori packages sections in chapter0{6,7,8}

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

  • Property mode set to 100644
File size: 16.2 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-util-linux" xreflabel="Util-linux" role="wrap">
7<title>Util-linux-&util-linux-version;</title>
8<?dbhtml filename="util-linux.html"?>
9
10<indexterm zone="ch-system-util-linux"><primary sortas="a-Util-linux">Util-linux</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The Util-linux package contains miscellaneous utility programs. Among
14them are utilities for handling file systems, consoles, partitions, and
15messages.</para>
16
17<segmentedlist>
18<segtitle>&buildtime;</segtitle>
19<segtitle>&diskspace;</segtitle>
20<seglistitem><seg>0.2 SBU</seg><seg>16 MB</seg></seglistitem>
21</segmentedlist>
22
23<segmentedlist>
24<segtitle>Util-linux installation depends on</segtitle>
25<seglistitem><seg>Bash, Binutils, Coreutils,
26Diffutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed, Zlib</seg></seglistitem>
27</segmentedlist>
28</sect2>
29
30<sect2 role="installation">
31<title>FHS compliance notes</title>
32
33<para>The FHS recommends that we use <filename>/var/lib/hwclock</filename>,
34instead of the usual <filename>/etc</filename>, as the location for the
35<filename>adjtime</filename> file. To make the <command>hwclock</command>
36program FHS-compliant, run the following:</para>
37
38<screen><userinput>cp hwclock/hwclock.c{,.backup}
39sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \
40 hwclock/hwclock.c.backup &gt; hwclock/hwclock.c
41mkdir -p /var/lib/hwclock</userinput></screen>
42
43</sect2>
44
45<sect2>
46<title>Installation of Util-linux</title>
47
48<para>Util-linux has issues with the Linux 2.6 kernel series - fix these isues
49by applying the following patch:</para>
50
51<screen><userinput>patch -Np1 -i ../util-linux-&util-linux-version;-kernel-headers-1.patch</userinput></screen>
52
53<para>Prepare Util-linux for compilation:</para>
54
55<screen><userinput>./configure</userinput></screen>
56
57<para>Compile the package:</para>
58
59<screen><userinput>make HAVE_KILL=yes HAVE_SLN=yes</userinput></screen>
60
61<para>The meaning of the make parameters:</para>
62
63<itemizedlist>
64<listitem><para><userinput>HAVE_KILL=yes</userinput>: This prevents the
65<command>kill</command> program (already installed by Procps) from being
66built and installed again.</para></listitem>
67
68<listitem><para><userinput>HAVE_SLN=yes</userinput>: This prevents the
69<command>sln</command> program (a statically linked
70<command>ln</command> already installed by Glibc) from being built and
71installed again.</para></listitem>
72</itemizedlist>
73
74<para>Now install the package:</para>
75
76<screen><userinput>make HAVE_KILL=yes HAVE_SLN=yes install</userinput></screen>
77
78</sect2>
79
80
81<sect2 id="contents-utillinux"><title>Contents of Util-linux</title>
82
83<para><emphasis>Installed programs</emphasis>: agetty, arch, blockdev, cal,
84cfdisk, chkdupexe, col, colcrt, colrm, column, ctrlaltdel, cytune, ddate,
85dmesg, elvtune, fdformat, fdisk, fsck.cramfs, fsck.minix, getopt, hexdump,
86hwclock, ipcrm, ipcs, isosize, line, logger, look, losetup, mcookie, mkfs,
87mkfs.bfs, mkfs.cramfs, mkfs.minix, mkswap, more, mount, namei, pg, pivot_root,
88ramsize (link to rdev), raw, rdev, readprofile, rename, renice, rev, rootflags
89(link to rdev), script, setfdprm, setsid, setterm, sfdisk, swapoff (link to
90swapon), swapon, tunelp, ul, umount, vidmode (link to rdev), whereis and
91write</para>
92
93</sect2>
94
95<sect2><title>Short descriptions</title>
96
97<indexterm zone="ch-system-util-linux agetty"><primary sortas="b-agetty">agetty</primary></indexterm>
98<para id="agetty"><command>agetty</command> opens a tty port, prompts for a login name,
99and then invokes the login program.</para>
100
101<indexterm zone="ch-system-util-linux arch"><primary sortas="b-arch">arch</primary></indexterm>
102<para id="arch"><command>arch</command> reports the machine's architecture.</para>
103
104<indexterm zone="ch-system-util-linux blockdev"><primary sortas="b-blockdev">blockdev</primary></indexterm>
105<para id="blockdev"><command>blockdev</command> allows you to call block device ioctls
106from the command line.</para>
107
108<indexterm zone="ch-system-util-linux cal"><primary sortas="b-cal">cal</primary></indexterm>
109<para id="cal"><command>cal</command> displays a simple calendar.</para>
110
111<indexterm zone="ch-system-util-linux cfdisk"><primary sortas="b-cfdisk">cfdisk</primary></indexterm>
112<para id="cfdisk"><command>cfdisk</command> is used to manipulate the partition table
113of the given device.</para>
114
115<indexterm zone="ch-system-util-linux chkdupexe"><primary sortas="b-chkdupexe">chkdupexe</primary></indexterm>
116<para id="chkdupexe"><command>chkdupexe</command> finds duplicate executables.</para>
117
118<indexterm zone="ch-system-util-linux col"><primary sortas="b-col">col</primary></indexterm>
119<para id="col"><command>col</command> filters out reverse line feeds.</para>
120
121<indexterm zone="ch-system-util-linux colcrt"><primary sortas="b-colcrt">colcrt</primary></indexterm>
122<para id="colcrt"><command>colcrt</command> is used to filter nroff output for terminals
123that lack some capabilities such as overstriking and half-lines.</para>
124
125<indexterm zone="ch-system-util-linux colrm"><primary sortas="b-colrm">colrm</primary></indexterm>
126<para id="colrm"><command>colrm</command> filters out the given columns.</para>
127
128<indexterm zone="ch-system-util-linux column"><primary sortas="b-column">column</primary></indexterm>
129<para id="column"><command>column</command> formats a given file into multiple
130columns.</para>
131
132<indexterm zone="ch-system-util-linux ctrlaltdel"><primary sortas="b-ctrlaltdel">ctrlaltdel</primary></indexterm>
133<para id="ctrlaltdel"><command>ctrlaltdel</command> sets the function of the Ctrl+Alt+Del
134 key combination to a hard or a soft reset.</para>
135
136<indexterm zone="ch-system-util-linux cytune"><primary sortas="b-cytune">cytune</primary></indexterm>
137<para id="cytune"><command>cytune</command> was used to tune the parameters of the
138serial line drivers for Cyclades cards.</para>
139
140<indexterm zone="ch-system-util-linux ddate"><primary sortas="b-ddate">ddate</primary></indexterm>
141<para id="ddate"><command>ddate</command> gives the Discordian date, or converts the
142given Gregorian date to a Discordian one.</para>
143
144<indexterm zone="ch-system-util-linux dmesg"><primary sortas="b-dmesg">dmesg</primary></indexterm>
145<para id="dmesg"><command>dmesg</command> dumps the kernel boot messages.</para>
146
147<indexterm zone="ch-system-util-linux elvtune"><primary sortas="b-elvtune">elvtune</primary></indexterm>
148<para id="elvtune"><command>elvtune</command> can be used to tune the performance
149and interactivity of a block device.</para>
150
151<indexterm zone="ch-system-util-linux fdformat"><primary sortas="b-fdformat">fdformat</primary></indexterm>
152<para id="fdformat"><command>fdformat</command> low-level formats a floppy disk.</para>
153
154<indexterm zone="ch-system-util-linux fdisk"><primary sortas="b-fdisk">fdisk</primary></indexterm>
155<para id="fdisk"><command>fdisk</command> could be used to manipulate the partition
156table of the given device.</para>
157
158<indexterm zone="ch-system-util-linux fsck.cramfs"><primary sortas="b-fsck.cramfs">fsck.cramfs</primary></indexterm>
159<para id="fsck.cramfs"><command>fsck.cramfs</command> performs a consistency check on the
160Cramfs file system on the given device.</para>
161
162<indexterm zone="ch-system-util-linux fsck.minix"><primary sortas="b-fsck.minix">fsck.minix</primary></indexterm>
163<para id="fsck.minix"><command>fsck.minix</command> performs a consistency check on the
164Minix file system on the given device.</para>
165
166<indexterm zone="ch-system-util-linux getopt"><primary sortas="b-getopt">getopt</primary></indexterm>
167<para id="getopt"><command>getopt</command> parses options in the given command line.</para>
168
169<indexterm zone="ch-system-util-linux hexdump"><primary sortas="b-hexdump">hexdump</primary></indexterm>
170<para id="hexdump"><command>hexdump</command> dumps the given file in hexadecimal, or
171in another given format.</para>
172
173<indexterm zone="ch-system-util-linux hwclock"><primary sortas="b-hwclock">hwclock</primary></indexterm>
174<para id="hwclock"><command>hwclock</command> is used to read or set the system's
175hardware clock, also called the RTC (Real-Time Clock) or BIOS (Basic Input-Output System) clock.</para>
176
177<indexterm zone="ch-system-util-linux ipcrm"><primary sortas="b-ipcrm">ipcrm</primary></indexterm>
178<para id="ipcrm"><command>ipcrm</command> removes the given IPC resource.</para>
179
180<indexterm zone="ch-system-util-linux ipcs"><primary sortas="b-ipcs">ipcs</primary></indexterm>
181<para id="ipcs"><command>ipcs</command> provides IPC status information.</para>
182
183<indexterm zone="ch-system-util-linux isosize"><primary sortas="b-isosize">isosize</primary></indexterm>
184<para id="isosize"><command>isosize</command> reports the size of an iso9660
185file system.</para>
186
187<indexterm zone="ch-system-util-linux line"><primary sortas="b-line">line</primary></indexterm>
188<para id="line"><command>line</command> copies a single line.</para>
189
190<indexterm zone="ch-system-util-linux logger"><primary sortas="b-logger">logger</primary></indexterm>
191<para id="logger"><command>logger</command> enters the given message into the system
192log.</para>
193
194<indexterm zone="ch-system-util-linux look"><primary sortas="b-look">look</primary></indexterm>
195<para id="look"><command>look</command> displays lines that begin with the given
196string.</para>
197
198<indexterm zone="ch-system-util-linux losetup"><primary sortas="b-losetup">losetup</primary></indexterm>
199<para id="losetup"><command>losetup</command> is used to set up and control loop devices.</para>
200
201<indexterm zone="ch-system-util-linux mcookie"><primary sortas="b-mcookie">mcookie</primary></indexterm>
202<para id="mcookie"><command>mcookie</command> generates magic cookies, 128-bit random
203hexadecimal numbers, for xauth.</para>
204
205<indexterm zone="ch-system-util-linux mkfs"><primary sortas="b-mkfs">mkfs</primary></indexterm>
206<para id="mkfs"><command>mkfs</command> is used to build a file system on a device
207(usually a hard disk partition).</para>
208
209<indexterm zone="ch-system-util-linux mkfs.bfs"><primary sortas="b-mkfs.bfs">mkfs.bfs</primary></indexterm>
210<para id="mkfs.bfs"><command>mkfs.bfs</command> creates an SCO (Santa Cruz Operations) bfs file system.</para>
211
212<indexterm zone="ch-system-util-linux mkfs.cramfs"><primary sortas="b-mkfs.cramfs">mkfs.cramfs</primary></indexterm>
213<para id="mkfs.cramfs"><command>mkfs.cramfs</command> creates a cramfs file system.</para>
214
215<indexterm zone="ch-system-util-linux mkfs.minix"><primary sortas="b-mkfs.minix">mkfs.minix</primary></indexterm>
216<para id="mkfs.minix"><command>mkfs.minix</command> creates a Minix file system.</para>
217
218<indexterm zone="ch-system-util-linux mkswap"><primary sortas="b-mkswap">mkswap</primary></indexterm>
219<para id="mkswap"><command>mkswap</command> initializes the given device or file to be
220used as a swap area.</para>
221
222<indexterm zone="ch-system-util-linux more"><primary sortas="b-more">more</primary></indexterm>
223<para id="more"><command>more</command> is a filter for paging through text one
224screen full at a time. But less is much better.</para>
225
226<indexterm zone="ch-system-util-linux mount"><primary sortas="b-mount">mount</primary></indexterm>
227<para id="mount"><command>mount</command> attaches the file system on the given device
228to a specified directory (thus hiding the contents of that directory) in the file-system tree.</para>
229
230<indexterm zone="ch-system-util-linux namei"><primary sortas="b-namei">namei</primary></indexterm>
231<para id="namei"><command>namei</command> shows the symbolic links in the given
232pathnames.</para>
233
234<indexterm zone="ch-system-util-linux pg"><primary sortas="b-pg">pg</primary></indexterm>
235<para id="pg"><command>pg</command> displays a text file one screen full at a
236time.</para>
237
238<indexterm zone="ch-system-util-linux pivot_root"><primary sortas="b-pivot_root">pivot_root</primary></indexterm>
239<para id="pivot_root"><command>pivot_root</command> makes the given file system the new
240root file system of the current process.</para>
241
242<indexterm zone="ch-system-util-linux ramsize"><primary sortas="b-ramsize">ramsize</primary></indexterm>
243<para id="ramsize"><command>ramsize</command> is used to set the size of the
244RAM disk in a bootable image.</para>
245
246<indexterm zone="ch-system-util-linux rdev"><primary sortas="b-rdev">rdev</primary></indexterm>
247<para id="rdev"><command>rdev</command> is used to query and set the root
248device and other things in a bootable image.</para>
249
250<indexterm zone="ch-system-util-linux readprofile"><primary sortas="b-readprofile">readprofile</primary></indexterm>
251<para id="readprofile"><command>readprofile</command> reads kernel profiling information.</para>
252
253<indexterm zone="ch-system-util-linux rename"><primary sortas="b-rename">rename</primary></indexterm>
254<para id="rename"><command>rename</command> renames the given files, replacing a given
255string with another.</para>
256
257<indexterm zone="ch-system-util-linux renice"><primary sortas="b-renice">renice</primary></indexterm>
258<para id="renice"><command>renice</command> is used to alter the priority of running
259processes.</para>
260
261<indexterm zone="ch-system-util-linux rev"><primary sortas="b-rev">rev</primary></indexterm>
262<para id="rev"><command>rev</command> reverses the lines of a given file.</para>
263
264<indexterm zone="ch-system-util-linux rootflags"><primary sortas="b-rootflags">rootflags</primary></indexterm>
265<para id="rootflags"><command>rootflags</command> is used to set the rootflags
266in a bootable image.</para>
267
268<indexterm zone="ch-system-util-linux script"><primary sortas="b-script">script</primary></indexterm>
269<para id="script"><command>script</command> makes a typescript of a terminal
270session, of everything printed to the terminal.</para>
271
272<indexterm zone="ch-system-util-linux setfdprm"><primary sortas="b-setfdprm">setfdprm</primary></indexterm>
273<para id="setfdprm"><command>setfdprm</command> sets user-provided floppy disk
274parameters.</para>
275
276<indexterm zone="ch-system-util-linux setsid"><primary sortas="b-setsid">setsid</primary></indexterm>
277<para id="setsid"><command>setsid</command> runs the given program in a new session.</para>
278
279<indexterm zone="ch-system-util-linux setterm"><primary sortas="b-setterm">setterm</primary></indexterm>
280<para id="setterm"><command>setterm</command> is used to set terminal attributes.</para>
281
282<indexterm zone="ch-system-util-linux sfdisk"><primary sortas="b-sfdisk">sfdisk</primary></indexterm>
283<para id="sfdisk"><command>sfdisk</command> is a disk partition table manipulator.</para>
284
285<indexterm zone="ch-system-util-linux swapdev"><primary sortas="b-swapdev">swapdev</primary></indexterm>
286<para id="swapdev"><command>swapdev</command> is used to set the swap device
287in a bootable image.</para>
288
289<indexterm zone="ch-system-util-linux swapoff"><primary sortas="b-swapoff">swapoff</primary></indexterm>
290<para id="swapoff"><command>swapoff</command> disables devices and files for paging
291and swapping.</para>
292
293<indexterm zone="ch-system-util-linux swapon"><primary sortas="b-swapon">swapon</primary></indexterm>
294<para id="swapon"><command>swapon</command> enables devices and files for paging
295and swapping.</para>
296
297<indexterm zone="ch-system-util-linux tunelp"><primary sortas="b-tunelp">tunelp</primary></indexterm>
298<para id="tunelp"><command>tunelp</command> is used to tune the parameters of the
299line printer.</para>
300
301<indexterm zone="ch-system-util-linux ul"><primary sortas="b-ul">ul</primary></indexterm>
302<para id="ul"><command>ul</command> is a filter for translating underscores into
303escape sequences indicating underlining for the terminal in use.</para>
304
305<indexterm zone="ch-system-util-linux umount"><primary sortas="b-umount">umount</primary></indexterm>
306<para id="umount"><command>umount</command> disconnects a file system from the
307system's file tree.</para>
308
309<indexterm zone="ch-system-util-linux vidmode"><primary sortas="b-vidmode">vidmode</primary></indexterm>
310<para id="vidmode"><command>vidmode</command> could be used to set the video mode
311in a bootable image.</para>
312
313<indexterm zone="ch-system-util-linux whereis"><primary sortas="b-whereis">whereis</primary></indexterm>
314<para id="whereis"><command>whereis</command> reports the location of binary, the
315source, and the manual page for the given command.</para>
316
317<indexterm zone="ch-system-util-linux write"><primary sortas="b-write">write</primary></indexterm>
318<para id="write"><command>write</command> sends a message to the given user,
319<emphasis>if</emphasis> that user has not disabled such messages.</para>
320
321</sect2>
322
323
324
325</sect1>
Note: See TracBrowser for help on using the repository browser.