source: chapter06/util-linux.xml@ 9c9d585

Last change on this file since 9c9d585 was 1fe35e1, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • (chapter06/*.xml) RELAX NG validation fixes

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

  • Property mode set to 100644
File size: 20.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE section [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-system-util-linux" xreflabel="Util-linux" role="wrap">
8<info><title>Util-linux-&util-linux-version;</title></info>
9<?dbhtml filename="util-linux.html"?>
10
11<indexterm zone="ch-system-util-linux"><primary sortas="a-Util-linux">Util-linux</primary></indexterm>
12
13<section role="package"><info><title/></info>
14<para>The Util-linux package contains miscellaneous utility programs. Among
15them are utilities for handling file systems, consoles, partitions, and
16messages.</para>
17
18<segmentedlist>
19<segtitle>&buildtime;</segtitle>
20<segtitle>&diskspace;</segtitle>
21<seglistitem><seg>0.2 SBU</seg><seg>16 MB</seg></seglistitem>
22</segmentedlist>
23
24<segmentedlist>
25<segtitle>Util-linux installation depends on</segtitle>
26<seglistitem><seg>Bash, Binutils, Coreutils,
27Diffutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed, Zlib</seg></seglistitem>
28</segmentedlist>
29</section>
30
31<section role="installation">
32<info><title>FHS compliance notes</title></info>
33
34<para>The FHS recommends that we use <filename class="directory">/var/lib/hwclock</filename>,
35instead of the usual <filename class="directory">/etc</filename>, as the location for the
36<filename>adjtime</filename> file. To make the <command>hwclock</command>
37program FHS-compliant, run the following:</para>
38
39<screen><userinput>sed -i 's@etc/adjtime@var/lib/hwclock/adjtime@g' hwclock/hwclock.c
40mkdir -p /var/lib/hwclock</userinput></screen>
41
42</section>
43
44<section role="installation">
45<info><title>Installation of Util-linux</title></info>
46
47<para>Util-Linux has a coding problem that causes mis-compilation of the sfdisk
48program. This patch fixes the problem:</para>
49
50<para>Prepare Util-linux for compilation:</para>
51
52<screen><userinput>./configure</userinput></screen>
53
54<para>Compile the package:</para>
55
56<screen><userinput>make HAVE_KILL=yes HAVE_SLN=yes</userinput></screen>
57
58<para>The meaning of the make parameters:</para>
59
60<variablelist>
61<varlistentry>
62<term><parameter>HAVE_KILL=yes</parameter></term>
63<listitem><para>This prevents the
64<command>kill</command> program (already installed by Procps) from being
65built and installed again.</para></listitem>
66</varlistentry>
67
68<varlistentry>
69<term><parameter>HAVE_SLN=yes</parameter></term>
70<listitem><para>This prevents the
71<command>sln</command> program (a statically linked
72<command>ln</command> already installed by Glibc) from being built and
73installed again.</para></listitem>
74</varlistentry>
75</variablelist>
76
77<para>Now install the package:</para>
78
79<screen><userinput>make HAVE_KILL=yes HAVE_SLN=yes install</userinput></screen>
80
81</section>
82
83
84<section xml:id="contents-utillinux" role="content"><info><title>Contents of Util-linux</title></info>
85
86<segmentedlist>
87<segtitle>Installed programs</segtitle>
88<seglistitem><seg>agetty, arch, blockdev, cal, cfdisk, chkdupexe, col, colcrt,
89colrm, column, ctrlaltdel, cytune, ddate, dmesg, elvtune, fdformat, fdisk,
90fsck.cramfs, fsck.minix, getopt, hexdump, hwclock, ipcrm, ipcs, isosize, line,
91logger, look, losetup, mcookie, mkfs, mkfs.bfs, mkfs.cramfs, mkfs.minix, mkswap,
92more, mount, namei, pg, pivot_root, ramsize (link to rdev), raw, rdev, readprofile,
93rename, renice, rev, rootflags (link to rdev), script, setfdprm, setsid, setterm,
94sfdisk, swapoff (link to swapon), swapon, tunelp, ul, umount, vidmode (link to rdev),
95whereis and write</seg></seglistitem>
96</segmentedlist>
97
98<variablelist><title>Short descriptions</title>
99
100<varlistentry xml:id="agetty">
101<term><command>agetty</command></term>
102<listitem>
103<indexterm zone="ch-system-util-linux agetty"><primary sortas="b-agetty">agetty</primary></indexterm>
104<para>opens a tty port, prompts for a login name,
105and then invokes the <command>login</command> program.</para>
106</listitem>
107</varlistentry>
108
109<varlistentry xml:id="arch">
110<term><command>arch</command></term>
111<listitem>
112<indexterm zone="ch-system-util-linux arch"><primary sortas="b-arch">arch</primary></indexterm>
113<para>reports the machine's architecture.</para>
114</listitem>
115</varlistentry>
116
117<varlistentry xml:id="blockdev">
118<term><command>blockdev</command></term>
119<listitem>
120<indexterm zone="ch-system-util-linux blockdev"><primary sortas="b-blockdev">blockdev</primary></indexterm>
121<para>allows you to call block device ioctls from the command line.</para>
122</listitem>
123</varlistentry>
124
125<varlistentry xml:id="cal">
126<term><command>cal</command></term>
127<listitem>
128<indexterm zone="ch-system-util-linux cal"><primary sortas="b-cal">cal</primary></indexterm>
129<para>displays a simple calendar.</para>
130</listitem>
131</varlistentry>
132
133<varlistentry xml:id="cfdisk">
134<term><command>cfdisk</command></term>
135<listitem>
136<indexterm zone="ch-system-util-linux cfdisk"><primary sortas="b-cfdisk">cfdisk</primary></indexterm>
137<para>is used to manipulate the partition table of the given device.</para>
138</listitem>
139</varlistentry>
140
141<varlistentry xml:id="chkdupexe">
142<term><command>chkdupexe</command></term>
143<listitem>
144<indexterm zone="ch-system-util-linux chkdupexe"><primary sortas="b-chkdupexe">chkdupexe</primary></indexterm>
145<para>finds duplicate executables.</para>
146</listitem>
147</varlistentry>
148
149<varlistentry xml:id="col">
150<term><command>col</command></term>
151<listitem>
152<indexterm zone="ch-system-util-linux col"><primary sortas="b-col">col</primary></indexterm>
153<para>filters out reverse line feeds.</para>
154</listitem>
155</varlistentry>
156
157<varlistentry xml:id="colcrt">
158<term><command>colcrt</command></term>
159<listitem>
160<indexterm zone="ch-system-util-linux colcrt"><primary sortas="b-colcrt">colcrt</primary></indexterm>
161<para>is used to filter nroff output for terminals
162that lack some capabilities such as overstriking and half-lines.</para>
163</listitem>
164</varlistentry>
165
166<varlistentry xml:id="colrm">
167<term><command>colrm</command></term>
168<listitem>
169<indexterm zone="ch-system-util-linux colrm"><primary sortas="b-colrm">colrm</primary></indexterm>
170<para>filters out the given columns.</para>
171</listitem>
172</varlistentry>
173
174<varlistentry xml:id="column">
175<term><command>column</command></term>
176<listitem>
177<indexterm zone="ch-system-util-linux column"><primary sortas="b-column">column</primary></indexterm>
178<para>formats a given file into multiple columns.</para>
179</listitem>
180</varlistentry>
181
182<varlistentry xml:id="ctrlaltdel">
183<term><command>ctrlaltdel</command></term>
184<listitem>
185<indexterm zone="ch-system-util-linux ctrlaltdel"><primary sortas="b-ctrlaltdel">ctrlaltdel</primary></indexterm>
186<para>sets the function of the Ctrl+Alt+Del key combination to a hard or a
187soft reset.</para>
188</listitem>
189</varlistentry>
190
191<varlistentry xml:id="cytune">
192<term><command>cytune</command></term>
193<listitem>
194<indexterm zone="ch-system-util-linux cytune"><primary sortas="b-cytune">cytune</primary></indexterm>
195<para>was used to tune the parameters of the
196serial line drivers for Cyclades cards.</para>
197</listitem>
198</varlistentry>
199
200<varlistentry xml:id="ddate">
201<term><command>ddate</command></term>
202<listitem>
203<indexterm zone="ch-system-util-linux ddate"><primary sortas="b-ddate">ddate</primary></indexterm>
204<para>gives the Discordian date, or converts the
205given Gregorian date to a Discordian one.</para>
206</listitem>
207</varlistentry>
208
209<varlistentry xml:id="dmesg">
210<term><command>dmesg</command></term>
211<listitem>
212<indexterm zone="ch-system-util-linux dmesg"><primary sortas="b-dmesg">dmesg</primary></indexterm>
213<para>dumps the kernel boot messages.</para>
214</listitem>
215</varlistentry>
216
217<varlistentry xml:id="elvtune">
218<term><command>elvtune</command></term>
219<listitem>
220<indexterm zone="ch-system-util-linux elvtune"><primary sortas="b-elvtune">elvtune</primary></indexterm>
221<para>can be used to tune the performance
222and interactivity of a block device.</para>
223</listitem>
224</varlistentry>
225
226<varlistentry xml:id="fdformat">
227<term><command>fdformat</command></term>
228<listitem>
229<indexterm zone="ch-system-util-linux fdformat"><primary sortas="b-fdformat">fdformat</primary></indexterm>
230<para>low-level formats a floppy disk.</para>
231</listitem>
232</varlistentry>
233
234<varlistentry xml:id="fdisk">
235<term><command>fdisk</command></term>
236<listitem>
237<indexterm zone="ch-system-util-linux fdisk"><primary sortas="b-fdisk">fdisk</primary></indexterm>
238<para>could be used to manipulate the partition table of the given device.</para>
239</listitem>
240</varlistentry>
241
242<varlistentry xml:id="fsck.cramfs">
243<term><command>fsck.cramfs</command></term>
244<listitem>
245<indexterm zone="ch-system-util-linux fsck.cramfs"><primary sortas="b-fsck.cramfs">fsck.cramfs</primary></indexterm>
246<para>performs a consistency check on the
247Cramfs file system on the given device.</para>
248</listitem>
249</varlistentry>
250
251<varlistentry xml:id="fsck.minix">
252<term><command>fsck.minix</command></term>
253<listitem>
254<indexterm zone="ch-system-util-linux fsck.minix"><primary sortas="b-fsck.minix">fsck.minix</primary></indexterm>
255<para>performs a consistency check on the
256Minix file system on the given device.</para>
257</listitem>
258</varlistentry>
259
260<varlistentry xml:id="getopt">
261<term><command>getopt</command></term>
262<listitem>
263<indexterm zone="ch-system-util-linux getopt"><primary sortas="b-getopt">getopt</primary></indexterm>
264<para>parses options in the given command line.</para>
265</listitem>
266</varlistentry>
267
268<varlistentry xml:id="hexdump">
269<term><command>hexdump</command></term>
270<listitem>
271<indexterm zone="ch-system-util-linux hexdump"><primary sortas="b-hexdump">hexdump</primary></indexterm>
272<para>dumps the given file in hexadecimal, or in another given format.</para>
273</listitem>
274</varlistentry>
275
276<varlistentry xml:id="hwclock">
277<term><command>hwclock</command></term>
278<listitem>
279<indexterm zone="ch-system-util-linux hwclock"><primary sortas="b-hwclock">hwclock</primary></indexterm>
280<para>is used to read or set the system's hardware clock, also called the RTC
281(Real-Time Clock) or BIOS (Basic Input-Output System) clock.</para>
282</listitem>
283</varlistentry>
284
285<varlistentry xml:id="ipcrm">
286<term><command>ipcrm</command></term>
287<listitem>
288<indexterm zone="ch-system-util-linux ipcrm"><primary sortas="b-ipcrm">ipcrm</primary></indexterm>
289<para>removes the given IPC resource.</para>
290</listitem>
291</varlistentry>
292
293<varlistentry xml:id="ipcs">
294<term><command>ipcs</command></term>
295<listitem>
296<indexterm zone="ch-system-util-linux ipcs"><primary sortas="b-ipcs">ipcs</primary></indexterm>
297<para>provides IPC status information.</para>
298</listitem>
299</varlistentry>
300
301<varlistentry xml:id="isosize">
302<term><command>isosize</command></term>
303<listitem>
304<indexterm zone="ch-system-util-linux isosize"><primary sortas="b-isosize">isosize</primary></indexterm>
305<para>reports the size of an iso9660 file system.</para>
306</listitem>
307</varlistentry>
308
309<varlistentry xml:id="line">
310<term><command>line</command></term>
311<listitem>
312<indexterm zone="ch-system-util-linux line"><primary sortas="b-line">line</primary></indexterm>
313<para>copies a single line.</para>
314</listitem>
315</varlistentry>
316
317<varlistentry xml:id="logger">
318<term><command>logger</command></term>
319<listitem>
320<indexterm zone="ch-system-util-linux logger"><primary sortas="b-logger">logger</primary></indexterm>
321<para>enters the given message into the system log.</para>
322</listitem>
323</varlistentry>
324
325<varlistentry xml:id="look">
326<term><command>look</command></term>
327<listitem>
328<indexterm zone="ch-system-util-linux look"><primary sortas="b-look">look</primary></indexterm>
329<para>displays lines that begin with the given string.</para>
330</listitem>
331</varlistentry>
332
333<varlistentry xml:id="losetup">
334<term><command>losetup</command></term>
335<listitem>
336<indexterm zone="ch-system-util-linux losetup"><primary sortas="b-losetup">losetup</primary></indexterm>
337<para>is used to set up and control loop devices.</para>
338</listitem>
339</varlistentry>
340
341<varlistentry xml:id="mcookie">
342<term><command>mcookie</command></term>
343<listitem>
344<indexterm zone="ch-system-util-linux mcookie"><primary sortas="b-mcookie">mcookie</primary></indexterm>
345<para>generates magic cookies, 128-bit random hexadecimal numbers,
346for <command>xauth</command>.</para>
347</listitem>
348</varlistentry>
349
350<varlistentry xml:id="mkfs">
351<term><command>mkfs</command></term>
352<listitem>
353<indexterm zone="ch-system-util-linux mkfs"><primary sortas="b-mkfs">mkfs</primary></indexterm>
354<para>is used to build a file system on a device
355(usually a hard disk partition).</para>
356</listitem>
357</varlistentry>
358
359<varlistentry xml:id="mkfs.bfs">
360<term><command>mkfs.bfs</command></term>
361<listitem>
362<indexterm zone="ch-system-util-linux mkfs.bfs"><primary sortas="b-mkfs.bfs">mkfs.bfs</primary></indexterm>
363<para>creates an SCO (Santa Cruz Operations) bfs file system.</para>
364</listitem>
365</varlistentry>
366
367<varlistentry xml:id="mkfs.cramfs">
368<term><command>mkfs.cramfs</command></term>
369<listitem>
370<indexterm zone="ch-system-util-linux mkfs.cramfs"><primary sortas="b-mkfs.cramfs">mkfs.cramfs</primary></indexterm>
371<para>creates a cramfs file system.</para>
372</listitem>
373</varlistentry>
374
375<varlistentry xml:id="mkfs.minix">
376<term><command>mkfs.minix</command></term>
377<listitem>
378<indexterm zone="ch-system-util-linux mkfs.minix"><primary sortas="b-mkfs.minix">mkfs.minix</primary></indexterm>
379<para>creates a Minix file system.</para>
380</listitem>
381</varlistentry>
382
383<varlistentry xml:id="mkswap">
384<term><command>mkswap</command></term>
385<listitem>
386<indexterm zone="ch-system-util-linux mkswap"><primary sortas="b-mkswap">mkswap</primary></indexterm>
387<para>initializes the given device or file to be used as a swap area.</para>
388</listitem>
389</varlistentry>
390
391<varlistentry xml:id="more">
392<term><command>more</command></term>
393<listitem>
394<indexterm zone="ch-system-util-linux more"><primary sortas="b-more">more</primary></indexterm>
395<para>is a filter for paging through text one
396screen full at a time. But <command>less</command> is much better.</para>
397</listitem>
398</varlistentry>
399
400<varlistentry xml:id="mount">
401<term><command>mount</command></term>
402<listitem>
403<indexterm zone="ch-system-util-linux mount"><primary sortas="b-mount">mount</primary></indexterm>
404<para>attaches the file system on the given device to a specified directory (thus
405hiding the contents of that directory) in the file-system tree.</para>
406</listitem>
407</varlistentry>
408
409<varlistentry xml:id="namei">
410<term><command>namei</command></term>
411<listitem>
412<indexterm zone="ch-system-util-linux namei"><primary sortas="b-namei">namei</primary></indexterm>
413<para>shows the symbolic links in the given pathnames.</para>
414</listitem>
415</varlistentry>
416
417<varlistentry xml:id="pg">
418<term><command>pg</command></term>
419<listitem>
420<indexterm zone="ch-system-util-linux pg"><primary sortas="b-pg">pg</primary></indexterm>
421<para>displays a text file one screen full at a time.</para>
422</listitem>
423</varlistentry>
424
425<varlistentry xml:id="pivot_root">
426<term><command>pivot_root</command></term>
427<listitem>
428<indexterm zone="ch-system-util-linux pivot_root"><primary sortas="b-pivot_root">pivot_root</primary></indexterm>
429<para>makes the given file system the new
430root file system of the current process.</para>
431</listitem>
432</varlistentry>
433
434<varlistentry xml:id="ramsize">
435<term><command>ramsize</command></term>
436<listitem>
437<indexterm zone="ch-system-util-linux ramsize"><primary sortas="b-ramsize">ramsize</primary></indexterm>
438<para>is used to set the size of the RAM disk in a bootable image.</para>
439</listitem>
440</varlistentry>
441
442<varlistentry xml:id="rdev">
443<term><command>rdev</command></term>
444<listitem>
445<indexterm zone="ch-system-util-linux rdev"><primary sortas="b-rdev">rdev</primary></indexterm>
446<para>is used to query and set the root
447device and other things in a bootable image.</para>
448</listitem>
449</varlistentry>
450
451<varlistentry xml:id="readprofile">
452<term><command>readprofile</command></term>
453<listitem>
454<indexterm zone="ch-system-util-linux readprofile"><primary sortas="b-readprofile">readprofile</primary></indexterm>
455<para>reads kernel profiling information.</para>
456</listitem>
457</varlistentry>
458
459<varlistentry xml:id="rename">
460<term><command>rename</command></term>
461<listitem>
462<indexterm zone="ch-system-util-linux rename"><primary sortas="b-rename">rename</primary></indexterm>
463<para>renames the given files, replacing a given string with another.</para>
464</listitem>
465</varlistentry>
466
467<varlistentry xml:id="renice">
468<term><command>renice</command></term>
469<listitem>
470<indexterm zone="ch-system-util-linux renice"><primary sortas="b-renice">renice</primary></indexterm>
471<para>is used to alter the priority of running processes.</para>
472</listitem>
473</varlistentry>
474
475<varlistentry xml:id="rev">
476<term><command>rev</command></term>
477<listitem>
478<indexterm zone="ch-system-util-linux rev"><primary sortas="b-rev">rev</primary></indexterm>
479<para>reverses the lines of a given file.</para>
480</listitem>
481</varlistentry>
482
483<varlistentry xml:id="rootflags">
484<term><command>rootflags</command></term>
485<listitem>
486<indexterm zone="ch-system-util-linux rootflags"><primary sortas="b-rootflags">rootflags</primary></indexterm>
487<para>is used to set the rootflags in a bootable image.</para>
488</listitem>
489</varlistentry>
490
491<varlistentry xml:id="script">
492<term><command>script</command></term>
493<listitem>
494<indexterm zone="ch-system-util-linux script"><primary sortas="b-script">script</primary></indexterm>
495<para>makes a typescript of a terminal session, of everything printed to
496the terminal.</para>
497</listitem>
498</varlistentry>
499
500<varlistentry xml:id="setfdprm">
501<term><command>setfdprm</command></term>
502<listitem>
503<indexterm zone="ch-system-util-linux setfdprm"><primary sortas="b-setfdprm">setfdprm</primary></indexterm>
504<para>sets user-provided floppy disk parameters.</para>
505</listitem>
506</varlistentry>
507
508<varlistentry xml:id="setsid">
509<term><command>setsid</command></term>
510<listitem>
511<indexterm zone="ch-system-util-linux setsid"><primary sortas="b-setsid">setsid</primary></indexterm>
512<para>runs the given program in a new session.</para>
513</listitem>
514</varlistentry>
515
516<varlistentry xml:id="setterm">
517<term><command>setterm</command></term>
518<listitem>
519<indexterm zone="ch-system-util-linux setterm"><primary sortas="b-setterm">setterm</primary></indexterm>
520<para>is used to set terminal attributes.</para>
521</listitem>
522</varlistentry>
523
524<varlistentry xml:id="sfdisk">
525<term><command>sfdisk</command></term>
526<listitem>
527<indexterm zone="ch-system-util-linux sfdisk"><primary sortas="b-sfdisk">sfdisk</primary></indexterm>
528<para>is a disk partition table manipulator.</para>
529</listitem>
530</varlistentry>
531
532<varlistentry xml:id="swapdev">
533<term><command>swapdev</command></term>
534<listitem>
535<indexterm zone="ch-system-util-linux swapdev"><primary sortas="b-swapdev">swapdev</primary></indexterm>
536<para>is used to set the swap device in a bootable image.</para>
537</listitem>
538</varlistentry>
539
540<varlistentry xml:id="swapoff">
541<term><command>swapoff</command></term>
542<listitem>
543<indexterm zone="ch-system-util-linux swapoff"><primary sortas="b-swapoff">swapoff</primary></indexterm>
544<para>disables devices and files for paging and swapping.</para>
545</listitem>
546</varlistentry>
547
548<varlistentry xml:id="swapon">
549<term><command>swapon</command></term>
550<listitem>
551<indexterm zone="ch-system-util-linux swapon"><primary sortas="b-swapon">swapon</primary></indexterm>
552<para>enables devices and files for paging and swapping.</para>
553</listitem>
554</varlistentry>
555
556<varlistentry xml:id="tunelp">
557<term><command>tunelp</command></term>
558<listitem>
559<indexterm zone="ch-system-util-linux tunelp"><primary sortas="b-tunelp">tunelp</primary></indexterm>
560<para>is used to tune the parameters of the line printer.</para>
561</listitem>
562</varlistentry>
563
564<varlistentry xml:id="ul">
565<term><command>ul</command></term>
566<listitem>
567<indexterm zone="ch-system-util-linux ul"><primary sortas="b-ul">ul</primary></indexterm>
568<para>is a filter for translating underscores into
569escape sequences indicating underlining for the terminal in use.</para>
570</listitem>
571</varlistentry>
572
573<varlistentry xml:id="umount">
574<term><command>umount</command></term>
575<listitem>
576<indexterm zone="ch-system-util-linux umount"><primary sortas="b-umount">umount</primary></indexterm>
577<para>disconnects a file system from the system's file tree.</para>
578</listitem>
579</varlistentry>
580
581<varlistentry xml:id="vidmode">
582<term><command>vidmode</command></term>
583<listitem>
584<indexterm zone="ch-system-util-linux vidmode"><primary sortas="b-vidmode">vidmode</primary></indexterm>
585<para>could be used to set the video mode in a bootable image.</para>
586</listitem>
587</varlistentry>
588
589<varlistentry xml:id="whereis">
590<term><command>whereis</command></term>
591<listitem>
592<indexterm zone="ch-system-util-linux whereis"><primary sortas="b-whereis">whereis</primary></indexterm>
593<para>reports the location of binary, the
594source, and the manual page for the given command.</para>
595</listitem>
596</varlistentry>
597
598<varlistentry xml:id="write">
599<term><command>write</command></term>
600<listitem>
601<indexterm zone="ch-system-util-linux write"><primary sortas="b-write">write</primary></indexterm>
602<para>sends a message to the given user,
603<emphasis>if</emphasis> that user has not disabled such messages.</para>
604</listitem>
605</varlistentry>
606</variablelist>
607
608</section>
609
610</section>
Note: See TracBrowser for help on using the repository browser.