source: chapter06/util-linux.xml@ cdfb460

6.0
Last change on this file since cdfb460 was cdfb460, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Upgraded to autoconf-1.9.1, gawk-3.1.4, iproute2-2.6.8-040823, linux-2.6.8.1, m4-1.4.2, man-1.5o, procps-3.2.3, sed-4.1.2 and util-linux-2.12b.

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

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