Changeset 4bac71c for chapter06/util-linux.xml
- Timestamp:
- 01/22/2008 07:52:27 AM (16 years ago)
- Branches:
- 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.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
- Children:
- c6d52ce7
- Parents:
- 6e79b0d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/util-linux.xml
r6e79b0d r4bac71c 6 6 ]> 7 7 8 <sect1 id="ch-system-util-linux " role="wrap">9 <?dbhtml filename="util-linux .html"?>8 <sect1 id="ch-system-util-linux-ng" role="wrap"> 9 <?dbhtml filename="util-linux-ng.html"?> 10 10 11 11 <sect1info condition="script"> 12 <productname>util-linux </productname>13 <productnumber>&util-linux- version;</productnumber>14 <address>&util-linux- url;</address>12 <productname>util-linux-ng</productname> 13 <productnumber>&util-linux-ng-version;</productnumber> 14 <address>&util-linux-ng-url;</address> 15 15 </sect1info> 16 16 17 <title>Util-linux-&util-linux- version;</title>18 19 <indexterm zone="ch-system-util-linux ">20 <primary sortas="a-Util-linux ">Util-linux</primary>17 <title>Util-linux-&util-linux-ng-version;</title> 18 19 <indexterm zone="ch-system-util-linux-ng"> 20 <primary sortas="a-Util-linux-ng">Util-linux-ng</primary> 21 21 </indexterm> 22 22 … … 24 24 <title/> 25 25 26 <para>The Util-linux package contains miscellaneous utility programs. Among27 them are utilities for handling file systems, consoles, partitions, and28 messages.</para>26 <para>The Util-linux-ng package contains miscellaneous utility programs. 27 Among them are utilities for handling file systems, consoles, partitions, 28 and messages.</para> 29 29 30 30 <segmentedlist> … … 33 33 34 34 <seglistitem> 35 <seg>&util-linux- ch6-sbu;</seg>36 <seg>&util-linux- ch6-du;</seg>35 <seg>&util-linux-ng-ch6-sbu;</seg> 36 <seg>&util-linux-ng-ch6-du;</seg> 37 37 </seglistitem> 38 38 </segmentedlist> … … 59 59 <title>Installation of Util-linux</title> 60 60 61 <para>Util-linux fails to compile against newer versions of Linux kernel62 headers. The following patches properly fix the problems:</para>63 64 <screen><userinput remap="pre">patch -Np1 -i ../&util-linux-cramfs-patch;65 patch -Np1 -i ../&util-linux-lseek-patch;</userinput></screen>66 67 <para>Prepare Util-linux for compilation:</para>68 69 61 <screen><userinput remap="configure">./configure</userinput></screen> 70 62 71 63 <para>Compile the package:</para> 72 64 73 <screen><userinput remap="make">make HAVE_KILL=yes HAVE_SLN=yes</userinput></screen> 74 75 <variablelist> 76 <title>The meaning of the make parameters:</title> 77 78 <varlistentry> 79 <term><parameter>HAVE_KILL=yes</parameter></term> 80 <listitem> 81 <para>This prevents the <command>kill</command> program (already 82 installed by Procps) from being built and installed again.</para> 83 </listitem> 84 </varlistentry> 85 86 <varlistentry> 87 <term><parameter>HAVE_SLN=yes</parameter></term> 88 <listitem> 89 <para>This prevents the <command>sln</command> program (a 90 statically linked version of <command>ln</command> already installed 91 by Glibc) from being built and installed again.</para> 92 </listitem> 93 </varlistentry> 94 95 </variablelist> 96 97 <para>This package does not come with a test suite.</para> 98 99 <para>Install the package:</para> 100 101 <screen><userinput remap="install">make HAVE_KILL=yes HAVE_SLN=yes install</userinput></screen> 65 <screen><userinput remap="make">make</userinput></screen> 66 67 <screen><userinput remap="install">make install</userinput></screen> 102 68 103 69 </sect2> … … 132 98 <para>Opens a tty port, prompts for a login name, 133 99 and then invokes the <command>login</command> program</para> 134 <indexterm zone="ch-system-util-linux agetty">100 <indexterm zone="ch-system-util-linux-ng agetty"> 135 101 <primary sortas="b-agetty">agetty</primary> 136 102 </indexterm> … … 142 108 <listitem> 143 109 <para>Reports the machine's architecture</para> 144 <indexterm zone="ch-system-util-linux arch">110 <indexterm zone="ch-system-util-linux-ng arch"> 145 111 <primary sortas="b-arch">arch</primary> 146 112 </indexterm> … … 153 119 <para>Allows users to call block device ioctls from the command 154 120 line</para> 155 <indexterm zone="ch-system-util-linux blockdev">121 <indexterm zone="ch-system-util-linux-ng blockdev"> 156 122 <primary sortas="b-blockdev">blockdev</primary> 157 123 </indexterm> … … 163 129 <listitem> 164 130 <para>Displays a simple calendar</para> 165 <indexterm zone="ch-system-util-linux cal">131 <indexterm zone="ch-system-util-linux-ng cal"> 166 132 <primary sortas="b-cal">cal</primary> 167 133 </indexterm> … … 173 139 <listitem> 174 140 <para>Manipulates the partition table of the given device</para> 175 <indexterm zone="ch-system-util-linux cfdisk">141 <indexterm zone="ch-system-util-linux-ng cfdisk"> 176 142 <primary sortas="b-cfdisk">cfdisk</primary> 177 143 </indexterm> … … 183 149 <listitem> 184 150 <para>Finds duplicate executables</para> 185 <indexterm zone="ch-system-util-linux chkdupexe">151 <indexterm zone="ch-system-util-linux-ng chkdupexe"> 186 152 <primary sortas="b-chkdupexe">chkdupexe</primary> 187 153 </indexterm> … … 193 159 <listitem> 194 160 <para>Filters out reverse line feeds</para> 195 <indexterm zone="ch-system-util-linux col">161 <indexterm zone="ch-system-util-linux-ng col"> 196 162 <primary sortas="b-col">col</primary> 197 163 </indexterm> … … 204 170 <para>Filters <command>nroff</command> output for terminals 205 171 that lack some capabilities, such as overstriking and half-lines</para> 206 <indexterm zone="ch-system-util-linux colcrt">172 <indexterm zone="ch-system-util-linux-ng colcrt"> 207 173 <primary sortas="b-colcrt">colcrt</primary> 208 174 </indexterm> … … 214 180 <listitem> 215 181 <para>Filters out the given columns</para> 216 <indexterm zone="ch-system-util-linux colrm">182 <indexterm zone="ch-system-util-linux-ng colrm"> 217 183 <primary sortas="b-colrm">colrm</primary> 218 184 </indexterm> … … 224 190 <listitem> 225 191 <para>Formats a given file into multiple columns</para> 226 <indexterm zone="ch-system-util-linux column">192 <indexterm zone="ch-system-util-linux-ng column"> 227 193 <primary sortas="b-column">column</primary> 228 194 </indexterm> … … 235 201 <para>Sets the function of the Ctrl+Alt+Del key combination to a 236 202 hard or a soft reset</para> 237 <indexterm zone="ch-system-util-linux ctrlaltdel">203 <indexterm zone="ch-system-util-linux-ng ctrlaltdel"> 238 204 <primary sortas="b-ctrlaltdel">ctrlaltdel</primary> 239 205 </indexterm> … … 246 212 <para>Tunes the parameters of the serial line drivers for 247 213 Cyclades cards</para> 248 <indexterm zone="ch-system-util-linux cytune">214 <indexterm zone="ch-system-util-linux-ng cytune"> 249 215 <primary sortas="b-cytune">cytune</primary> 250 216 </indexterm> … … 257 223 <para>Gives the Discordian date or converts the given Gregorian date 258 224 to a Discordian one</para> 259 <indexterm zone="ch-system-util-linux ddate">225 <indexterm zone="ch-system-util-linux-ng ddate"> 260 226 <primary sortas="b-ddate">ddate</primary> 261 227 </indexterm> … … 267 233 <listitem> 268 234 <para>Dumps the kernel boot messages</para> 269 <indexterm zone="ch-system-util-linux dmesg">235 <indexterm zone="ch-system-util-linux-ng dmesg"> 270 236 <primary sortas="b-dmesg">dmesg</primary> 271 237 </indexterm> … … 278 244 <para>Tunes the performance and interactivity of a block 279 245 device</para> 280 <indexterm zone="ch-system-util-linux elvtune">246 <indexterm zone="ch-system-util-linux-ng elvtune"> 281 247 <primary sortas="b-elvtune">elvtune</primary> 282 248 </indexterm> … … 288 254 <listitem> 289 255 <para>Low-level formats a floppy disk</para> 290 <indexterm zone="ch-system-util-linux fdformat">256 <indexterm zone="ch-system-util-linux-ng fdformat"> 291 257 <primary sortas="b-fdformat">fdformat</primary> 292 258 </indexterm> … … 298 264 <listitem> 299 265 <para>Manipulates the paritition table of the given device</para> 300 <indexterm zone="ch-system-util-linux fdisk">266 <indexterm zone="ch-system-util-linux-ng fdisk"> 301 267 <primary sortas="b-fdisk">fdisk</primary> 302 268 </indexterm> … … 309 275 <para>Acquires a file lock and then executes a command with the lock 310 276 held</para> 311 <indexterm zone="ch-system-util-linux flock">277 <indexterm zone="ch-system-util-linux-ng flock"> 312 278 <primary sortas="b-flock">flock</primary> 313 279 </indexterm> … … 320 286 <para>Performs a consistency check on the Cramfs file system on the 321 287 given device</para> 322 <indexterm zone="ch-system-util-linux fsck.cramfs">288 <indexterm zone="ch-system-util-linux-ng fsck.cramfs"> 323 289 <primary sortas="b-fsck.cramfs">fsck.cramfs</primary> 324 290 </indexterm> … … 331 297 <para>Performs a consistency check on the Minix file system on the 332 298 given device</para> 333 <indexterm zone="ch-system-util-linux fsck.minix">299 <indexterm zone="ch-system-util-linux-ng fsck.minix"> 334 300 <primary sortas="b-fsck.minix">fsck.minix</primary> 335 301 </indexterm> … … 341 307 <listitem> 342 308 <para>Parses options in the given command line</para> 343 <indexterm zone="ch-system-util-linux getopt">309 <indexterm zone="ch-system-util-linux-ng getopt"> 344 310 <primary sortas="b-getopt">getopt</primary> 345 311 </indexterm> … … 352 318 <para>Dumps the given file in hexadecimal or in another given 353 319 format</para> 354 <indexterm zone="ch-system-util-linux hexdump">320 <indexterm zone="ch-system-util-linux-ng hexdump"> 355 321 <primary sortas="b-hexdump">hexdump</primary> 356 322 </indexterm> … … 364 330 the Real-Time Clock (RTC) or Basic Input-Output System (BIOS) 365 331 clock</para> 366 <indexterm zone="ch-system-util-linux hwclock">332 <indexterm zone="ch-system-util-linux-ng hwclock"> 367 333 <primary sortas="b-hwclock">hwclock</primary> 368 334 </indexterm> … … 374 340 <listitem> 375 341 <para>Removes the given Inter-Process Communication (IPC) resource</para> 376 <indexterm zone="ch-system-util-linux ipcrm">342 <indexterm zone="ch-system-util-linux-ng ipcrm"> 377 343 <primary sortas="b-ipcrm">ipcrm</primary> 378 344 </indexterm> … … 384 350 <listitem> 385 351 <para>Provides IPC status information</para> 386 <indexterm zone="ch-system-util-linux ipcs">352 <indexterm zone="ch-system-util-linux-ng ipcs"> 387 353 <primary sortas="b-ipcs">ipcs</primary> 388 354 </indexterm> … … 394 360 <listitem> 395 361 <para>Reports the size of an iso9660 file system</para> 396 <indexterm zone="ch-system-util-linux isosize">362 <indexterm zone="ch-system-util-linux-ng isosize"> 397 363 <primary sortas="b-isosize">isosize</primary> 398 364 </indexterm> … … 404 370 <listitem> 405 371 <para>Copies a single line</para> 406 <indexterm zone="ch-system-util-linux line">372 <indexterm zone="ch-system-util-linux-ng line"> 407 373 <primary sortas="b-line">line</primary> 408 374 </indexterm> … … 414 380 <listitem> 415 381 <para>Enters the given message into the system log</para> 416 <indexterm zone="ch-system-util-linux logger">382 <indexterm zone="ch-system-util-linux-ng logger"> 417 383 <primary sortas="b-logger">logger</primary> 418 384 </indexterm> … … 424 390 <listitem> 425 391 <para>Displays lines that begin with the given string</para> 426 <indexterm zone="ch-system-util-linux look">392 <indexterm zone="ch-system-util-linux-ng look"> 427 393 <primary sortas="b-look">look</primary> 428 394 </indexterm> … … 434 400 <listitem> 435 401 <para>Sets up and controls loop devices</para> 436 <indexterm zone="ch-system-util-linux losetup">402 <indexterm zone="ch-system-util-linux-ng losetup"> 437 403 <primary sortas="b-losetup">losetup</primary> 438 404 </indexterm> … … 445 411 <para>Generates magic cookies (128-bit random hexadecimal numbers) for 446 412 <command>xauth</command></para> 447 <indexterm zone="ch-system-util-linux mcookie">413 <indexterm zone="ch-system-util-linux-ng mcookie"> 448 414 <primary sortas="b-mcookie">mcookie</primary> 449 415 </indexterm> … … 456 422 <para>Builds a file system on a device (usually a hard disk 457 423 partition)</para> 458 <indexterm zone="ch-system-util-linux mkfs">424 <indexterm zone="ch-system-util-linux-ng mkfs"> 459 425 <primary sortas="b-mkfs">mkfs</primary> 460 426 </indexterm> … … 466 432 <listitem> 467 433 <para>Creates a Santa Cruz Operations (SCO) bfs file system</para> 468 <indexterm zone="ch-system-util-linux mkfs.bfs">434 <indexterm zone="ch-system-util-linux-ng mkfs.bfs"> 469 435 <primary sortas="b-mkfs.bfs">mkfs.bfs</primary> 470 436 </indexterm> … … 476 442 <listitem> 477 443 <para>Creates a cramfs file system</para> 478 <indexterm zone="ch-system-util-linux mkfs.cramfs">444 <indexterm zone="ch-system-util-linux-ng mkfs.cramfs"> 479 445 <primary sortas="b-mkfs.cramfs">mkfs.cramfs</primary> 480 446 </indexterm> … … 486 452 <listitem> 487 453 <para>Creates a Minix file system</para> 488 <indexterm zone="ch-system-util-linux mkfs.minix">454 <indexterm zone="ch-system-util-linux-ng mkfs.minix"> 489 455 <primary sortas="b-mkfs.minix">mkfs.minix</primary> 490 456 </indexterm> … … 497 463 <para>Initializes the given device or file to be used as a swap 498 464 area</para> 499 <indexterm zone="ch-system-util-linux mkswap">465 <indexterm zone="ch-system-util-linux-ng mkswap"> 500 466 <primary sortas="b-mkswap">mkswap</primary> 501 467 </indexterm> … … 507 473 <listitem> 508 474 <para>A filter for paging through text one screen at a time</para> 509 <indexterm zone="ch-system-util-linux more">475 <indexterm zone="ch-system-util-linux-ng more"> 510 476 <primary sortas="b-more">more</primary> 511 477 </indexterm> … … 518 484 <para>Attaches the file system on the given device to a specified 519 485 directory in the file-system tree</para> 520 <indexterm zone="ch-system-util-linux mount">486 <indexterm zone="ch-system-util-linux-ng mount"> 521 487 <primary sortas="b-mount">mount</primary> 522 488 </indexterm> … … 528 494 <listitem> 529 495 <para>Shows the symbolic links in the given pathnames</para> 530 <indexterm zone="ch-system-util-linux namei">496 <indexterm zone="ch-system-util-linux-ng namei"> 531 497 <primary sortas="b-namei">namei</primary> 532 498 </indexterm> … … 538 504 <listitem> 539 505 <para>Displays a text file one screen full at a time</para> 540 <indexterm zone="ch-system-util-linux pg">506 <indexterm zone="ch-system-util-linux-ng pg"> 541 507 <primary sortas="b-pg">pg</primary> 542 508 </indexterm> … … 549 515 <para>Makes the given file system the new root file system of the 550 516 current process</para> 551 <indexterm zone="ch-system-util-linux pivot_root">517 <indexterm zone="ch-system-util-linux-ng pivot_root"> 552 518 <primary sortas="b-pivot_root">pivot_root</primary> 553 519 </indexterm> … … 559 525 <listitem> 560 526 <para>Sets the size of the RAM disk in a bootable image</para> 561 <indexterm zone="ch-system-util-linux ramsize">527 <indexterm zone="ch-system-util-linux-ng ramsize"> 562 528 <primary sortas="b-ramsize">ramsize</primary> 563 529 </indexterm> … … 570 536 <para>Used to bind a Linux raw character device to a block 571 537 device</para> 572 <indexterm zone="ch-system-util-linux raw">538 <indexterm zone="ch-system-util-linux-ng raw"> 573 539 <primary sortas="b-raw">raw</primary> 574 540 </indexterm> … … 581 547 <para>Queries and sets the root device, among other things, in a 582 548 bootable image</para> 583 <indexterm zone="ch-system-util-linux rdev">549 <indexterm zone="ch-system-util-linux-ng rdev"> 584 550 <primary sortas="b-rdev">rdev</primary> 585 551 </indexterm> … … 591 557 <listitem> 592 558 <para>Reads kernel profiling information</para> 593 <indexterm zone="ch-system-util-linux readprofile">559 <indexterm zone="ch-system-util-linux-ng readprofile"> 594 560 <primary sortas="b-readprofile">readprofile</primary> 595 561 </indexterm> … … 602 568 <para>Renames the given files, replacing a given string with 603 569 another</para> 604 <indexterm zone="ch-system-util-linux rename">570 <indexterm zone="ch-system-util-linux-ng rename"> 605 571 <primary sortas="b-rename">rename</primary> 606 572 </indexterm> … … 612 578 <listitem> 613 579 <para>Alters the priority of running processes</para> 614 <indexterm zone="ch-system-util-linux renice">580 <indexterm zone="ch-system-util-linux-ng renice"> 615 581 <primary sortas="b-renice">renice</primary> 616 582 </indexterm> … … 622 588 <listitem> 623 589 <para>Reverses the lines of a given file</para> 624 <indexterm zone="ch-system-util-linux rev">590 <indexterm zone="ch-system-util-linux-ng rev"> 625 591 <primary sortas="b-rev">rev</primary> 626 592 </indexterm> … … 632 598 <listitem> 633 599 <para>Sets the rootflags in a bootable image</para> 634 <indexterm zone="ch-system-util-linux rootflags">600 <indexterm zone="ch-system-util-linux-ng rootflags"> 635 601 <primary sortas="b-rootflags">rootflags</primary> 636 602 </indexterm> … … 642 608 <listitem> 643 609 <para>Makes a typescript of a terminal session</para> 644 <indexterm zone="ch-system-util-linux script">610 <indexterm zone="ch-system-util-linux-ng script"> 645 611 <primary sortas="b-script">script</primary> 646 612 </indexterm> … … 652 618 <listitem> 653 619 <para>Sets user-provided floppy disk parameters</para> 654 <indexterm zone="ch-system-util-linux setfdprm">620 <indexterm zone="ch-system-util-linux-ng setfdprm"> 655 621 <primary sortas="b-setfdprm">setfdprm</primary> 656 622 </indexterm> … … 662 628 <listitem> 663 629 <para>Runs the given program in a new session</para> 664 <indexterm zone="ch-system-util-linux setsid">630 <indexterm zone="ch-system-util-linux-ng setsid"> 665 631 <primary sortas="b-setsid">setsid</primary> 666 632 </indexterm> … … 672 638 <listitem> 673 639 <para>Sets terminal attributes</para> 674 <indexterm zone="ch-system-util-linux setterm">640 <indexterm zone="ch-system-util-linux-ng setterm"> 675 641 <primary sortas="b-setterm">setterm</primary> 676 642 </indexterm> … … 682 648 <listitem> 683 649 <para>A disk partition table manipulator</para> 684 <indexterm zone="ch-system-util-linux sfdisk">650 <indexterm zone="ch-system-util-linux-ng sfdisk"> 685 651 <primary sortas="b-sfdisk">sfdisk</primary> 686 652 </indexterm> … … 692 658 <listitem> 693 659 <para>Disables devices and files for paging and swapping</para> 694 <indexterm zone="ch-system-util-linux swapoff">660 <indexterm zone="ch-system-util-linux-ng swapoff"> 695 661 <primary sortas="b-swapoff">swapoff</primary> 696 662 </indexterm> … … 703 669 <para>Enables devices and files for paging and swapping and 704 670 lists the devices and files currently in use</para> 705 <indexterm zone="ch-system-util-linux swapon">671 <indexterm zone="ch-system-util-linux-ng swapon"> 706 672 <primary sortas="b-swapon">swapon</primary> 707 673 </indexterm> … … 715 681 of a log file, then continues displaying any new entries in the 716 682 log file as they are created</para> 717 <indexterm zone="ch-system-util-linux tailf">683 <indexterm zone="ch-system-util-linux-ng tailf"> 718 684 <primary sortas="b-tailf">tailf</primary> 719 685 </indexterm> … … 725 691 <listitem> 726 692 <para>Tunes the parameters of the line printer</para> 727 <indexterm zone="ch-system-util-linux tunelp">693 <indexterm zone="ch-system-util-linux-ng tunelp"> 728 694 <primary sortas="b-tunelp">tunelp</primary> 729 695 </indexterm> … … 736 702 <para>A filter for translating underscores into escape sequences 737 703 indicating underlining for the terminal in use</para> 738 <indexterm zone="ch-system-util-linux ul">704 <indexterm zone="ch-system-util-linux-ng ul"> 739 705 <primary sortas="b-ul">ul</primary> 740 706 </indexterm> … … 746 712 <listitem> 747 713 <para>Disconnects a file system from the system's file tree</para> 748 <indexterm zone="ch-system-util-linux umount">714 <indexterm zone="ch-system-util-linux-ng umount"> 749 715 <primary sortas="b-umount">umount</primary> 750 716 </indexterm> … … 756 722 <listitem> 757 723 <para>Sets the video mode in a bootable image</para> 758 <indexterm zone="ch-system-util-linux vidmode">724 <indexterm zone="ch-system-util-linux-ng vidmode"> 759 725 <primary sortas="b-vidmode">vidmode</primary> 760 726 </indexterm> … … 767 733 <para>Reports the location of the binary, source, and man page 768 734 for the given command</para> 769 <indexterm zone="ch-system-util-linux whereis">735 <indexterm zone="ch-system-util-linux-ng whereis"> 770 736 <primary sortas="b-whereis">whereis</primary> 771 737 </indexterm> … … 778 744 <para>Sends a message to the given user <emphasis>if</emphasis> that 779 745 user has not disabled receipt of such messages</para> 780 <indexterm zone="ch-system-util-linux write">746 <indexterm zone="ch-system-util-linux-ng write"> 781 747 <primary sortas="b-write">write</primary> 782 748 </indexterm>
Note:
See TracChangeset
for help on using the changeset viewer.