source: chapter06/util-linux.xml@ 3b5cbe3

Last change on this file since 3b5cbe3 was 3b5cbe3, checked in by Jeremy Utley <jeremy@…>, 19 years ago

More package updates - see changelog for details

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

  • Property mode set to 100644
File size: 20.3 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" 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, and Zlib</seg></seglistitem>
27</segmentedlist>
28</sect2>
29
30<sect2 role="installation">
31<title>FHS compliance notes</title>
32
33<para>The FHS recommends using the <filename
34class="directory">/var/lib/hwclock</filename> directory instead of the
35usual <filename class="directory">/etc</filename> directory as the
36location for the <filename>adjtime</filename> file. To make the
37<command>hwclock</command> program FHS-compliant, run the
38following:</para>
39
40<screen><userinput>sed -i 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
41 hwclock/hwclock.c
42mkdir -p /var/lib/hwclock</userinput></screen>
43
44</sect2>
45
46<sect2 role="installation">
47<title>Installation of Util-linux</title>
48
49<para>Prepare Util-linux for compilation:</para>
50
51<screen><userinput>./configure</userinput></screen>
52
53<para>Compile the package:</para>
54
55<screen><userinput>make HAVE_KILL=yes HAVE_SLN=yes</userinput></screen>
56
57<beginpage/>
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 <command>sln</command> program (a
71statically linked version of <command>ln</command> already installed
72by Glibc) from being built and installed again.</para></listitem>
73</varlistentry>
74</variablelist>
75
76<para>This package does not come with a test suite.</para>
77
78<para>Install the package:</para>
79
80<screen><userinput>make HAVE_KILL=yes HAVE_SLN=yes install</userinput></screen>
81
82</sect2>
83
84<sect2 id="contents-utillinux" role="content"><title>Contents of Util-linux</title>
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, swapdev, swapoff (link to swapon), swapon, tunelp, ul, umount, vidmode (link to rdev),
95whereis, and write</seg></seglistitem>
96</segmentedlist>
97
98<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
99<?dbfo list-presentation="list"?>
100
101<varlistentry id="agetty">
102<term><command>agetty</command></term>
103<listitem>
104<para>Opens a tty port, prompts for a login name,
105and then invokes the <command>login</command> program</para>
106<indexterm zone="ch-system-util-linux agetty"><primary sortas="b-agetty">agetty</primary></indexterm>
107</listitem>
108</varlistentry>
109
110<varlistentry id="arch">
111<term><command>arch</command></term>
112<listitem>
113<para>Reports the machine's architecture</para>
114<indexterm zone="ch-system-util-linux arch"><primary sortas="b-arch">arch</primary></indexterm>
115</listitem>
116</varlistentry>
117
118<varlistentry id="blockdev">
119<term><command>blockdev</command></term>
120<listitem>
121<para>Allows users to call block device ioctls from the command line</para>
122<indexterm zone="ch-system-util-linux blockdev"><primary sortas="b-blockdev">blockdev</primary></indexterm>
123</listitem>
124</varlistentry>
125
126<varlistentry id="cal">
127<term><command>cal</command></term>
128<listitem>
129<para>Displays a simple calendar</para>
130<indexterm zone="ch-system-util-linux cal"><primary sortas="b-cal">cal</primary></indexterm>
131</listitem>
132</varlistentry>
133
134<varlistentry id="cfdisk">
135<term><command>cfdisk</command></term>
136<listitem>
137<para>Manipulates the partition table of the given device</para>
138<indexterm zone="ch-system-util-linux cfdisk"><primary sortas="b-cfdisk">cfdisk</primary></indexterm>
139</listitem>
140</varlistentry>
141
142<varlistentry id="chkdupexe">
143<term><command>chkdupexe</command></term>
144<listitem>
145<para>Finds duplicate executables</para>
146<indexterm zone="ch-system-util-linux chkdupexe"><primary sortas="b-chkdupexe">chkdupexe</primary></indexterm>
147</listitem>
148</varlistentry>
149
150<varlistentry id="col">
151<term><command>col</command></term>
152<listitem>
153<para>Filters out reverse line feeds</para>
154<indexterm zone="ch-system-util-linux col"><primary sortas="b-col">col</primary></indexterm>
155</listitem>
156</varlistentry>
157
158<varlistentry id="colcrt">
159<term><command>colcrt</command></term>
160<listitem>
161<para>Filters <command>nroff</command> output for terminals
162that lack some capabilities, such as overstriking and half-lines</para>
163<indexterm zone="ch-system-util-linux colcrt"><primary sortas="b-colcrt">colcrt</primary></indexterm>
164</listitem>
165</varlistentry>
166
167<varlistentry id="colrm">
168<term><command>colrm</command></term>
169<listitem>
170<para>Filters out the given columns</para>
171<indexterm zone="ch-system-util-linux colrm"><primary sortas="b-colrm">colrm</primary></indexterm>
172</listitem>
173</varlistentry>
174
175<varlistentry id="column">
176<term><command>column</command></term>
177<listitem>
178<para>Formats a given file into multiple columns</para>
179<indexterm zone="ch-system-util-linux column"><primary sortas="b-column">column</primary></indexterm>
180</listitem>
181</varlistentry>
182
183<varlistentry id="ctrlaltdel">
184<term><command>ctrlaltdel</command></term>
185<listitem>
186<para>Sets the function of the Ctrl+Alt+Del key combination to a hard or a
187soft reset</para>
188<indexterm zone="ch-system-util-linux ctrlaltdel"><primary sortas="b-ctrlaltdel">ctrlaltdel</primary></indexterm>
189</listitem>
190</varlistentry>
191
192<varlistentry id="cytune">
193<term><command>cytune</command></term>
194<listitem>
195<para>Tunes the parameters of the serial line drivers for
196Cyclades cards</para>
197<indexterm zone="ch-system-util-linux cytune"><primary sortas="b-cytune">cytune</primary></indexterm>
198</listitem>
199</varlistentry>
200
201<varlistentry id="ddate">
202<term><command>ddate</command></term>
203<listitem>
204<para>Gives the Discordian date or converts the given Gregorian date
205to a Discordian one</para>
206<indexterm zone="ch-system-util-linux ddate"><primary sortas="b-ddate">ddate</primary></indexterm>
207</listitem>
208</varlistentry>
209
210<varlistentry id="dmesg">
211<term><command>dmesg</command></term>
212<listitem>
213<para>Dumps the kernel boot messages</para>
214<indexterm zone="ch-system-util-linux dmesg"><primary sortas="b-dmesg">dmesg</primary></indexterm>
215</listitem>
216</varlistentry>
217
218<varlistentry id="elvtune">
219<term><command>elvtune</command></term>
220<listitem>
221<para>Tunes the performance and interactivity of a block
222device</para>
223<indexterm zone="ch-system-util-linux elvtune"><primary sortas="b-elvtune">elvtune</primary></indexterm>
224</listitem>
225</varlistentry>
226
227<varlistentry id="fdformat">
228<term><command>fdformat</command></term>
229<listitem>
230<para>Low-level formats a floppy disk</para>
231<indexterm zone="ch-system-util-linux fdformat"><primary sortas="b-fdformat">fdformat</primary></indexterm>
232</listitem>
233</varlistentry>
234
235<varlistentry id="fdisk">
236<term><command>fdisk</command></term>
237<listitem>
238<para>Manipulates the partition table of the given device</para>
239<indexterm zone="ch-system-util-linux fdisk"><primary sortas="b-fdisk">fdisk</primary></indexterm>
240</listitem>
241</varlistentry>
242
243<varlistentry id="fsck.cramfs">
244<term><command>fsck.cramfs</command></term>
245<listitem>
246<para>Performs a consistency check on the Cramfs file system on the
247given device</para>
248<indexterm zone="ch-system-util-linux fsck.cramfs"><primary sortas="b-fsck.cramfs">fsck.cramfs</primary></indexterm>
249</listitem>
250</varlistentry>
251
252<varlistentry id="fsck.minix">
253<term><command>fsck.minix</command></term>
254<listitem>
255<para>Performs a consistency check on the Minix file system on the
256given device</para>
257<indexterm zone="ch-system-util-linux fsck.minix"><primary sortas="b-fsck.minix">fsck.minix</primary></indexterm>
258</listitem>
259</varlistentry>
260
261<varlistentry id="getopt">
262<term><command>getopt</command></term>
263<listitem>
264<para>Parses options in the given command line</para>
265<indexterm zone="ch-system-util-linux getopt"><primary sortas="b-getopt">getopt</primary></indexterm>
266</listitem>
267</varlistentry>
268
269<varlistentry id="hexdump">
270<term><command>hexdump</command></term>
271<listitem>
272<para>Dumps the given file in hexadecimal or in another given format</para>
273<indexterm zone="ch-system-util-linux hexdump"><primary sortas="b-hexdump">hexdump</primary></indexterm>
274</listitem>
275</varlistentry>
276
277<varlistentry id="hwclock">
278<term><command>hwclock</command></term>
279<listitem>
280<para>Reads or sets the system's hardware clock, also called
281the Real-Time Clock (RTC)) or Basic Input-Output System (BIOS)
282clock</para>
283<indexterm zone="ch-system-util-linux hwclock"><primary sortas="b-hwclock">hwclock</primary></indexterm>
284</listitem>
285</varlistentry>
286
287<varlistentry id="ipcrm">
288<term><command>ipcrm</command></term>
289<listitem>
290<para>Removes the given Inter-Process Communication (IPC) resource</para>
291<indexterm zone="ch-system-util-linux ipcrm"><primary sortas="b-ipcrm">ipcrm</primary></indexterm>
292</listitem>
293</varlistentry>
294
295<varlistentry id="ipcs">
296<term><command>ipcs</command></term>
297<listitem>
298<para>Provides IPC status information</para>
299<indexterm zone="ch-system-util-linux ipcs"><primary sortas="b-ipcs">ipcs</primary></indexterm>
300</listitem>
301</varlistentry>
302
303<varlistentry id="isosize">
304<term><command>isosize</command></term>
305<listitem>
306<para>Reports the size of an iso9660 file system</para>
307<indexterm zone="ch-system-util-linux isosize"><primary sortas="b-isosize">isosize</primary></indexterm>
308</listitem>
309</varlistentry>
310
311<varlistentry id="line">
312<term><command>line</command></term>
313<listitem>
314<para>Copies a single line</para>
315<indexterm zone="ch-system-util-linux line"><primary sortas="b-line">line</primary></indexterm>
316</listitem>
317</varlistentry>
318
319<varlistentry id="logger">
320<term><command>logger</command></term>
321<listitem>
322<para>Enters the given message into the system log</para>
323<indexterm zone="ch-system-util-linux logger"><primary sortas="b-logger">logger</primary></indexterm>
324</listitem>
325</varlistentry>
326
327<varlistentry id="look">
328<term><command>look</command></term>
329<listitem>
330<para>Displays lines that begin with the given string</para>
331<indexterm zone="ch-system-util-linux look"><primary sortas="b-look">look</primary></indexterm>
332</listitem>
333</varlistentry>
334
335<varlistentry id="losetup">
336<term><command>losetup</command></term>
337<listitem>
338<para>Sets up and controls loop devices</para>
339<indexterm zone="ch-system-util-linux losetup"><primary sortas="b-losetup">losetup</primary></indexterm>
340</listitem>
341</varlistentry>
342
343<varlistentry id="mcookie">
344<term><command>mcookie</command></term>
345<listitem>
346<para>Generates magic cookies (128-bit random hexadecimal numbers) for
347<command>xauth</command></para>
348<indexterm zone="ch-system-util-linux mcookie"><primary sortas="b-mcookie">mcookie</primary></indexterm>
349</listitem>
350</varlistentry>
351
352<varlistentry id="mkfs">
353<term><command>mkfs</command></term>
354<listitem>
355<para>Builds a file system on a device (usually a hard disk
356partition)</para>
357<indexterm zone="ch-system-util-linux mkfs"><primary sortas="b-mkfs">mkfs</primary></indexterm>
358</listitem>
359</varlistentry>
360
361<varlistentry id="mkfs.bfs">
362<term><command>mkfs.bfs</command></term>
363<listitem>
364<para>Creates an Santa Cruz Operations (SCO) bfs file system</para>
365<indexterm zone="ch-system-util-linux mkfs.bfs"><primary sortas="b-mkfs.bfs">mkfs.bfs</primary></indexterm>
366</listitem>
367</varlistentry>
368
369<varlistentry id="mkfs.cramfs">
370<term><command>mkfs.cramfs</command></term>
371<listitem>
372<para>Creates a cramfs file system</para>
373<indexterm zone="ch-system-util-linux mkfs.cramfs"><primary sortas="b-mkfs.cramfs">mkfs.cramfs</primary></indexterm>
374</listitem>
375</varlistentry>
376
377<varlistentry id="mkfs.minix">
378<term><command>mkfs.minix</command></term>
379<listitem>
380<para>Creates a Minix file system</para>
381<indexterm zone="ch-system-util-linux mkfs.minix"><primary sortas="b-mkfs.minix">mkfs.minix</primary></indexterm>
382</listitem>
383</varlistentry>
384
385<varlistentry id="mkswap">
386<term><command>mkswap</command></term>
387<listitem>
388<para>Initializes the given device or file to be used as a swap area</para>
389<indexterm zone="ch-system-util-linux mkswap"><primary sortas="b-mkswap">mkswap</primary></indexterm>
390</listitem>
391</varlistentry>
392
393<varlistentry id="more">
394<term><command>more</command></term>
395<listitem>
396<para>A filter for paging through text one screen at a time</para>
397<indexterm zone="ch-system-util-linux more"><primary sortas="b-more">more</primary></indexterm>
398</listitem>
399</varlistentry>
400
401<varlistentry id="mount">
402<term><command>mount</command></term>
403<listitem>
404<para>Attaches the file system on the given device to a specified
405directory in the file-system tree</para>
406<indexterm zone="ch-system-util-linux mount"><primary sortas="b-mount">mount</primary></indexterm>
407</listitem>
408</varlistentry>
409
410<varlistentry id="namei">
411<term><command>namei</command></term>
412<listitem>
413<para>Shows the symbolic links in the given pathnames</para>
414<indexterm zone="ch-system-util-linux namei"><primary sortas="b-namei">namei</primary></indexterm>
415</listitem>
416</varlistentry>
417
418<varlistentry id="pg">
419<term><command>pg</command></term>
420<listitem>
421<para>Displays a text file one screen full at a time</para>
422<indexterm zone="ch-system-util-linux pg"><primary sortas="b-pg">pg</primary></indexterm>
423</listitem>
424</varlistentry>
425
426<varlistentry id="pivot_root">
427<term><command>pivot_root</command></term>
428<listitem>
429<para>Makes the given file system the new root file system of the
430current process</para>
431<indexterm zone="ch-system-util-linux pivot_root"><primary sortas="b-pivot_root">pivot_root</primary></indexterm>
432</listitem>
433</varlistentry>
434
435<varlistentry id="ramsize">
436<term><command>ramsize</command></term>
437<listitem>
438<para>Sets the size of the RAM disk in a bootable image</para>
439<indexterm zone="ch-system-util-linux ramsize"><primary sortas="b-ramsize">ramsize</primary></indexterm>
440</listitem>
441</varlistentry>
442
443<varlistentry id="raw">
444<term><command>raw</command></term>
445<listitem>
446<para>Used to bind a Linux raw character device to a block
447device</para>
448<indexterm zone="ch-system-util-linux raw"><primary sortas="b-raw">raw</primary></indexterm>
449</listitem>
450</varlistentry>
451
452<varlistentry id="rdev">
453<term><command>rdev</command></term>
454<listitem>
455<para>Queries and sets the root device, among other things, in a
456bootable image</para>
457<indexterm zone="ch-system-util-linux rdev"><primary sortas="b-rdev">rdev</primary></indexterm>
458</listitem>
459</varlistentry>
460
461<varlistentry id="readprofile">
462<term><command>readprofile</command></term>
463<listitem>
464<para>Reads kernel profiling information</para>
465<indexterm zone="ch-system-util-linux readprofile"><primary sortas="b-readprofile">readprofile</primary></indexterm>
466</listitem>
467</varlistentry>
468
469<varlistentry id="rename">
470<term><command>rename</command></term>
471<listitem>
472<para>Renames the given files, replacing a given string with another</para>
473<indexterm zone="ch-system-util-linux rename"><primary sortas="b-rename">rename</primary></indexterm>
474</listitem>
475</varlistentry>
476
477<varlistentry id="renice">
478<term><command>renice</command></term>
479<listitem>
480<para>Alters the priority of running processes</para>
481<indexterm zone="ch-system-util-linux renice"><primary sortas="b-renice">renice</primary></indexterm>
482</listitem>
483</varlistentry>
484
485<varlistentry id="rev">
486<term><command>rev</command></term>
487<listitem>
488<para>Reverses the lines of a given file</para>
489<indexterm zone="ch-system-util-linux rev"><primary sortas="b-rev">rev</primary></indexterm>
490</listitem>
491</varlistentry>
492
493<varlistentry id="rootflags">
494<term><command>rootflags</command></term>
495<listitem>
496<para>Sets the rootflags in a bootable image</para>
497<indexterm zone="ch-system-util-linux rootflags"><primary sortas="b-rootflags">rootflags</primary></indexterm>
498</listitem>
499</varlistentry>
500
501<varlistentry id="script">
502<term><command>script</command></term>
503<listitem>
504<para>Makes a typescript of a terminal session</para>
505<indexterm zone="ch-system-util-linux script"><primary sortas="b-script">script</primary></indexterm>
506</listitem>
507</varlistentry>
508
509<varlistentry id="setfdprm">
510<term><command>setfdprm</command></term>
511<listitem>
512<para>Sets user-provided floppy disk parameters</para>
513<indexterm zone="ch-system-util-linux setfdprm"><primary sortas="b-setfdprm">setfdprm</primary></indexterm>
514</listitem>
515</varlistentry>
516
517<varlistentry id="setsid">
518<term><command>setsid</command></term>
519<listitem>
520<para>Runs the given program in a new session</para>
521<indexterm zone="ch-system-util-linux setsid"><primary sortas="b-setsid">setsid</primary></indexterm>
522</listitem>
523</varlistentry>
524
525<varlistentry id="setterm">
526<term><command>setterm</command></term>
527<listitem>
528<para>Sets terminal attributes</para>
529<indexterm zone="ch-system-util-linux setterm"><primary sortas="b-setterm">setterm</primary></indexterm>
530</listitem>
531</varlistentry>
532
533<varlistentry id="sfdisk">
534<term><command>sfdisk</command></term>
535<listitem>
536<para>A disk partition table manipulator</para>
537<indexterm zone="ch-system-util-linux sfdisk"><primary sortas="b-sfdisk">sfdisk</primary></indexterm>
538</listitem>
539</varlistentry>
540
541<varlistentry id="swapdev">
542<term><command>swapdev</command></term>
543<listitem>
544<para>Sets the swap device in a bootable image</para>
545<indexterm zone="ch-system-util-linux swapdev"><primary sortas="b-swapdev">swapdev</primary></indexterm>
546</listitem>
547</varlistentry>
548
549<varlistentry id="swapoff">
550<term><command>swapoff</command></term>
551<listitem>
552<para>Disables devices and files for paging and swapping</para>
553<indexterm zone="ch-system-util-linux swapoff"><primary sortas="b-swapoff">swapoff</primary></indexterm>
554</listitem>
555</varlistentry>
556
557<varlistentry id="swapon">
558<term><command>swapon</command></term>
559<listitem>
560<para>Enables devices and files for paging and swapping</para>
561<indexterm zone="ch-system-util-linux swapon"><primary sortas="b-swapon">swapon</primary></indexterm>
562</listitem>
563</varlistentry>
564
565<varlistentry id="tunelp">
566<term><command>tunelp</command></term>
567<listitem>
568<para>Tunes the parameters of the line printer</para>
569<indexterm zone="ch-system-util-linux tunelp"><primary sortas="b-tunelp">tunelp</primary></indexterm>
570</listitem>
571</varlistentry>
572
573<varlistentry id="ul">
574<term><command>ul</command></term>
575<listitem>
576<para>A filter for translating underscores into
577escape sequences indicating underlining for the terminal in use</para>
578<indexterm zone="ch-system-util-linux ul"><primary sortas="b-ul">ul</primary></indexterm>
579</listitem>
580</varlistentry>
581
582<varlistentry id="umount">
583<term><command>umount</command></term>
584<listitem>
585<para>Disconnects a file system from the system's file tree</para>
586<indexterm zone="ch-system-util-linux umount"><primary sortas="b-umount">umount</primary></indexterm>
587</listitem>
588</varlistentry>
589
590<varlistentry id="vidmode">
591<term><command>vidmode</command></term>
592<listitem>
593<para>Sets the video mode in a bootable image</para>
594<indexterm zone="ch-system-util-linux vidmode"><primary sortas="b-vidmode">vidmode</primary></indexterm>
595</listitem>
596</varlistentry>
597
598<varlistentry id="whereis">
599<term><command>whereis</command></term>
600<listitem>
601<para>Reports the location of binary, the source, and the manual page
602for the given command</para>
603<indexterm zone="ch-system-util-linux whereis"><primary sortas="b-whereis">whereis</primary></indexterm>
604</listitem>
605</varlistentry>
606
607<varlistentry id="write">
608<term><command>write</command></term>
609<listitem>
610<para>Sends a message to the given user
611<emphasis>if</emphasis> that user has not disabled receipt of such messages</para>
612<indexterm zone="ch-system-util-linux write"><primary sortas="b-write">write</primary></indexterm>
613</listitem>
614</varlistentry>
615</variablelist>
616
617</sect2>
618
619</sect1>
620
Note: See TracBrowser for help on using the repository browser.