- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/util-linux.xml
r686839b r9fedd70f 33 33 <command>hwclock</command> program FHS-compliant, run the following:</para> 34 34 35 <screen><userinput>sed -i -e's@etc/adjtime@var/lib/hwclock/adjtime@g' \36 $(grep -rl '/etc/adjtime' .)35 <screen><userinput>sed -i 's@etc/adjtime@var/lib/hwclock/adjtime@g' \ 36 hwclock/hwclock.c 37 37 mkdir -pv /var/lib/hwclock</userinput></screen> 38 38 … … 44 44 <para os="a">Prepare Util-linux for compilation:</para> 45 45 46 <screen os="b"><userinput>./configure --enable-write</userinput></screen> 46 <screen os="b"><userinput>./configure --enable-arch \ 47 --enable-partx --enable-write --disable-wall</userinput></screen> 47 48 48 49 <variablelist os="c"> … … 50 51 51 52 <varlistentry> 53 <term><parameter>--enable-arch</parameter></term> 54 <listitem> 55 <para>This option allows the <command>arch</command> program to be 56 installed.</para> 57 </listitem> 58 </varlistentry> 59 60 <varlistentry> 61 <term><parameter>--enable-partx</parameter></term> 62 <listitem> 63 <para>Enables building the <command>addpart</command>, <command>delpart</command>, 64 <command>partx</command> programs.</para> 65 </listitem> 66 </varlistentry> 67 68 <varlistentry> 52 69 <term><parameter>--enable-write</parameter></term> 53 70 <listitem> … … 57 74 </varlistentry> 58 75 76 <varlistentry> 77 <term><parameter>--disable-wall</parameter></term> 78 <listitem> 79 <para>Disables building the <command>wall</command> program, 80 as the Sysvinit package installs its own version.</para> 81 </listitem> 82 </varlistentry> 83 59 84 </variablelist> 60 85 … … 63 88 <screen os="e"><userinput>make</userinput></screen> 64 89 65 <para os="dummy1">Create two <systemitem class="groupname">dummy</systemitem> groups and a <systemitem class="username">dummy</systemitem> user to be used during Util-linux and Coreutils test suites:</para> 66 67 <screen os="dummy2"><userinput remap="test">echo "dummy1:x:1000:" >> /etc/group 68 echo "dummy2:x:1001:dummy" >> /etc/group 69 echo "dummy:x:1000:1000::/root:/bin/bash" >> /etc/passwd</userinput></screen> 70 71 <para os="f">To test the results, issue:</para> 72 73 <screen os="f2"><userinput remap="test">chown -Rv dummy . && 74 su dummy -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen> 90 <para os="f">This package does not come with a test suite.</para> 75 91 76 92 <para os="g">Install the package:</para> … … 95 111 96 112 <seglistitem> 97 <seg>addpart, agetty, blkdiscard, blkid, blockdev, cal, cfdisk, chcpu, 98 chrt, col, colcrt, colrm, column, ctrlaltdel, cytune, delpart, 99 dmesg, eject, fallocate, fdformat, fdisk, findfs, findmnt, flock, 100 fsck, fsck.cramfs, fsck.minix, fsfreeze, fstrim, getopt, hexdump, 101 hwclock, ionice, ipcmk, ipcrm, ipcs, isosize, kill, last, lastb (link 102 to last), ldattach, logger, look, losetup, lsblk, lscpu, lslocks, 103 mcookie, mesg, mkfs, mkfs.bfs, mkfs.cramfs, mkfs.minix, mkswap, more, 104 mount, mountpoint, namei, nologin, nsenter, partx, pg, pivot_root, prlimit, 105 raw, readprofile, rename, renice, resizepart, rev, rtcwake, script, 106 scriptreplay, setarch, setsid, setterm, sfdisk, sulogin, swaplabel, 107 swapoff, swapon, switch_root, tailf, taskset, ul, umount, unshare, 108 utmpdump, uuidd, uuidgen, wall, wdctl, whereis, wipefs, and write</seg> 109 <seg>libblkid.[a,so], libmount.[a,so], and libuuid.[a,so]</seg> 110 <seg>/usr/include/blkid, /usr/include/libmount, /usr/include/uuid, 111 /usr/share/doc/util-linux/getopt, /var/lib/hwclock</seg> 113 <seg>addpart, agetty, arch, blkid, blockdev, cal, cfdisk, chkdupexe, 114 chrt, col, colcrt, colrm, column, ctrlaltdel, cytune, ddate, delpart, 115 dmesg, fdformat, fdisk, findfs, flock, fsck, fsck.cramfs, fsck.minix, 116 getopt, hexdump, hwclock, ionice, ipcmk, ipcrm, ipcs, isosize, 117 ldattach, line, logger, look, losetup, lscpu, mcookie, mkfs, mkfs.bfs, 118 mkfs.cramfs, mkfs.minix, mkswap, more, mount, namei, partx, pg, 119 pivot_root, readprofile, rename, renice, rev, rtcwake, script, 120 scriptreplay, setarch, setsid, setterm, sfdisk, swapoff (link to 121 swapon), swapon, switch_root, tailf, taskset, tunelp, ul, umount, 122 uuidd, uuidgen, whereis, and write</seg> 123 <seg>libblkid.[a,so] and libuuid.[a,so]</seg> 124 <seg>/usr/include/blkid, /usr/include/uuid, /usr/share/getopt, 125 /var/lib/hwclock</seg> 112 126 </seglistitem> 113 127 </segmentedlist> … … 139 153 </varlistentry> 140 154 141 <varlistentry id=" blkdiscard">142 <term><command> blkdiscard</command></term>143 <listitem> 144 <para> Discards sectors on a device</para>145 <indexterm zone="ch-system-util-linux blkdiscard">146 <primary sortas="b- blkdiscard">blkdiscard</primary>155 <varlistentry id="arch"> 156 <term><command>arch</command></term> 157 <listitem> 158 <para>Reports the machine's architecture</para> 159 <indexterm zone="ch-system-util-linux arch"> 160 <primary sortas="b-arch">arch</primary> 147 161 </indexterm> 148 162 </listitem> … … 191 205 </varlistentry> 192 206 193 <varlistentry id="ch cpu">194 <term><command>ch cpu</command></term>195 <listitem> 196 <para> Utility to configure CPUs</para>197 <indexterm zone="ch-system-util-linux ch cpu">198 <primary sortas="b-ch cpu">chcpu</primary>207 <varlistentry id="chkdupexe"> 208 <term><command>chkdupexe</command></term> 209 <listitem> 210 <para>Finds duplicate executables</para> 211 <indexterm zone="ch-system-util-linux chkdupexe"> 212 <primary sortas="b-chkdupexe">chkdupexe</primary> 199 213 </indexterm> 200 214 </listitem> … … 305 319 </varlistentry> 306 320 307 <varlistentry id="eject">308 <term><command>eject</command></term>309 <listitem>310 <para>Eject removable media</para>311 <indexterm zone="ch-system-util-linux eject">312 <primary sortas="b-dmesg">eject</primary>313 </indexterm>314 </listitem>315 </varlistentry>316 317 <varlistentry id="fallocate">318 <term><command>fallocate</command></term>319 <listitem>320 <para>Preallocates space to a file</para>321 <indexterm zone="ch-system-util-linux fallocate">322 <primary sortas="b-fallocate">fallocate</primary>323 </indexterm>324 </listitem>325 </varlistentry>326 327 321 <varlistentry id="fdformat"> 328 322 <term><command>fdformat</command></term> … … 356 350 </varlistentry> 357 351 358 <varlistentry id="findmnt">359 <term><command>findmnt</command></term>360 <listitem>361 <para>Lists mounted filesystems or searches for a filesystem</para>362 <indexterm zone="ch-system-util-linux findmnt">363 <primary sortas="b-findmnt">findmnt</primary>364 </indexterm>365 </listitem>366 </varlistentry>367 368 352 <varlistentry id="flock"> 369 353 <term><command>flock</command></term> … … 405 389 <indexterm zone="ch-system-util-linux fsck.minix"> 406 390 <primary sortas="b-fsck.minix">fsck.minix</primary> 407 </indexterm>408 </listitem>409 </varlistentry>410 411 <varlistentry id="fsfreeze">412 <term><command>fsfreeze</command></term>413 <listitem>414 <para>Suspends and resumes access to a filesystem</para>415 <indexterm zone="ch-system-util-linux fsfreeze">416 <primary sortas="b-fsfreeze">fsfreeze</primary>417 </indexterm>418 </listitem>419 </varlistentry>420 421 <varlistentry id="fstrim">422 <term><command>fstrim</command></term>423 <listitem>424 <para>Discards unused blocks on a mounted filesystem</para>425 <indexterm zone="ch-system-util-linux fstrim">426 <primary sortas="b-fstrim">fstrim</primary>427 391 </indexterm> 428 392 </listitem> … … 512 476 </varlistentry> 513 477 514 <varlistentry id="kill">515 <term><command>kill</command></term>516 <listitem>517 <para>Send a signal to a process</para>518 <indexterm zone="ch-system-util-linux kill">519 <primary sortas="b-kill">kill</primary>520 </indexterm>521 </listitem>522 </varlistentry>523 524 <varlistentry id="last">525 <term><command>last</command></term>526 <listitem>527 <para>Shows which users last logged in (and out), searching back528 through the <filename>/var/log/wtmp</filename> file; it also shows529 system boots, shutdowns, and run-level changes</para>530 <indexterm zone="ch-system-util-linux last">531 <primary sortas="b-last">last</primary>532 </indexterm>533 </listitem>534 </varlistentry>535 536 <varlistentry id="lastb">537 <term><command>lastb</command></term>538 <listitem>539 <para>Shows the failed login attempts, as logged in540 <filename>/var/log/btmp</filename></para>541 <indexterm zone="ch-system-util-linux lastb">542 <primary sortas="b-lastb">lastb</primary>543 </indexterm>544 </listitem>545 </varlistentry>546 547 478 <varlistentry id="ldattach"> 548 479 <term><command>ldattach</command></term> … … 555 486 </varlistentry> 556 487 488 <varlistentry id="line"> 489 <term><command>line</command></term> 490 <listitem> 491 <para>Copies a single line</para> 492 <indexterm zone="ch-system-util-linux line"> 493 <primary sortas="b-line">line</primary> 494 </indexterm> 495 </listitem> 496 </varlistentry> 497 557 498 <varlistentry id="logger"> 558 499 <term><command>logger</command></term> … … 585 526 </varlistentry> 586 527 587 <varlistentry id="lsblk">588 <term><command>lsblk</command></term>589 <listitem>590 <para>Prints information about block devices</para>591 <indexterm zone="ch-system-util-linux lsblk">592 <primary sortas="b-lsblk">lsblk</primary>593 </indexterm>594 </listitem>595 </varlistentry>596 597 528 <varlistentry id="lscpu"> 598 529 <term><command>lscpu</command></term> … … 601 532 <indexterm zone="ch-system-util-linux lscpu"> 602 533 <primary sortas="b-lscpu">lscpu</primary> 603 </indexterm>604 </listitem>605 </varlistentry>606 607 <varlistentry id="lslocks">608 <term><command>lslocks</command></term>609 <listitem>610 <para>Lists local system locks</para>611 <indexterm zone="ch-system-util-linux lslocks">612 <primary sortas="b-lslocks">lslocks</primary>613 534 </indexterm> 614 535 </listitem> … … 626 547 </varlistentry> 627 548 628 <varlistentry id="mesg">629 <term><command>mesg</command></term>630 <listitem>631 <para>Controls whether other users can send messages to the current632 user's terminal</para>633 <indexterm zone="ch-system-util-linux mesg">634 <primary sortas="b-mesg">mesg</primary>635 </indexterm>636 </listitem>637 </varlistentry>638 639 549 <varlistentry id="mkfs"> 640 550 <term><command>mkfs</command></term> … … 710 620 </varlistentry> 711 621 712 <varlistentry id="mountpoint">713 <term><command>mountpoint</command></term>714 <listitem>715 <para>Tells you whether or not a directory is a mount point.</para>716 <indexterm zone="ch-system-util-linux mountpoint">717 <primary sortas="b-mountpoint">mountpoint</primary>718 </indexterm>719 </listitem>720 </varlistentry>721 722 622 <varlistentry id="namei"> 723 623 <term><command>namei</command></term> … … 726 626 <indexterm zone="ch-system-util-linux namei"> 727 627 <primary sortas="b-namei">namei</primary> 728 </indexterm>729 </listitem>730 </varlistentry>731 732 <varlistentry id="nologin">733 <term><command>nologin</command></term>734 <listitem>735 <para>Displays a message that an account is not available. Designed736 to be used as the default shell for accounts that have been737 disabled</para>738 <indexterm zone="ch-system-util-linux nologin">739 <primary sortas="b-nologin">nologin</primary>740 </indexterm>741 </listitem>742 </varlistentry>743 744 <varlistentry id="nsenter">745 <term><command>nsenter</command></term>746 <listitem>747 <para>Runs a program with namespaces of other processes</para>748 <indexterm zone="ch-system-util-linux nsenter">749 <primary sortas="b-nsenter">nsenter</primary>750 628 </indexterm> 751 629 </listitem> … … 784 662 </varlistentry> 785 663 786 <varlistentry id="prlimit">787 <term><command>prlimit</command></term>788 <listitem>789 <para>Gets and sets a process' resource limits</para>790 <indexterm zone="ch-system-util-linux prlimit">791 <primary sortas="b-prlimit">prlimit</primary>792 </indexterm>793 </listitem>794 </varlistentry>795 796 <varlistentry id="raw">797 <term><command>raw</command></term>798 <listitem>799 <para>Binds a Linux raw character device to a block device</para>800 <indexterm zone="ch-system-util-linux raw">801 <primary sortas="b-raw">raw</primary>802 </indexterm>803 </listitem>804 </varlistentry>805 806 664 <varlistentry id="readprofile"> 807 665 <term><command>readprofile</command></term> … … 835 693 </varlistentry> 836 694 837 <varlistentry id="resizepart">838 <term><command>resizepart</command></term>839 <listitem>840 <para>Asks the Linux kernel to resize a partition</para>841 <indexterm zone="ch-system-util-linux resizepart">842 <primary sortas="b-resizepart">resizepart</primary>843 </indexterm>844 </listitem>845 </varlistentry>846 847 695 <varlistentry id="rev"> 848 696 <term><command>rev</command></term> … … 922 770 <indexterm zone="ch-system-util-linux sfdisk"> 923 771 <primary sortas="b-sfdisk">sfdisk</primary> 924 </indexterm>925 </listitem>926 </varlistentry>927 928 <varlistentry id="sulogin">929 <term><command>sulogin</command></term>930 <listitem>931 <para>Allows <emphasis>root</emphasis> to log in; it is normally932 invoked by <command>init</command> when the system goes into single933 user mode</para>934 <indexterm zone="ch-system-util-linux sulogin">935 <primary sortas="b-sulogin">sulogin</primary>936 </indexterm>937 </listitem>938 </varlistentry>939 940 <varlistentry id="swaplabel">941 <term><command>swaplabel</command></term>942 <listitem>943 <para>Prints or changes the label or UUID of a swap area</para>944 <indexterm zone="ch-system-util-linux swaplabel">945 <primary sortas="b-swaplabel">swaplabel</primary>946 772 </indexterm> 947 773 </listitem> … … 1001 827 </varlistentry> 1002 828 829 <varlistentry id="tunelp"> 830 <term><command>tunelp</command></term> 831 <listitem> 832 <para>Tunes the parameters of the line printer</para> 833 <indexterm zone="ch-system-util-linux tunelp"> 834 <primary sortas="b-tunelp">tunelp</primary> 835 </indexterm> 836 </listitem> 837 </varlistentry> 838 1003 839 <varlistentry id="ul"> 1004 840 <term><command>ul</command></term> … … 1018 854 <indexterm zone="ch-system-util-linux umount"> 1019 855 <primary sortas="b-umount">umount</primary> 1020 </indexterm>1021 </listitem>1022 </varlistentry>1023 1024 <varlistentry id="unshare">1025 <term><command>unshare</command></term>1026 <listitem>1027 <para>Runs a program with some namespaces unshared from parent</para>1028 <indexterm zone="ch-system-util-linux unshare">1029 <primary sortas="b-unshare">unshare</primary>1030 </indexterm>1031 </listitem>1032 </varlistentry>1033 1034 <varlistentry id="utmpdump">1035 <term><command>utmpdump</command></term>1036 <listitem>1037 <para>Displays the content of the given login file in a more1038 user-friendly format</para>1039 <indexterm zone="ch-system-util-linux utmpdump">1040 <primary sortas="b-utmpdump">utmpdump</primary>1041 856 </indexterm> 1042 857 </listitem> … … 1066 881 </varlistentry> 1067 882 1068 <varlistentry id="wall">1069 <term><command>wall</command></term>1070 <listitem>1071 <para>Writes a message to all logged-in users</para>1072 <indexterm zone="ch-system-util-linux wall">1073 <primary sortas="b-wall">wall</primary>1074 </indexterm>1075 </listitem>1076 </varlistentry>1077 1078 <varlistentry id="wdctl">1079 <term><command>wdctl</command></term>1080 <listitem>1081 <para>Show hardware watchdog status</para>1082 <indexterm zone="ch-system-util-linux wdctl">1083 <primary sortas="b-uuidgen">wdctl</primary>1084 </indexterm>1085 </listitem>1086 </varlistentry>1087 1088 883 <varlistentry id="whereis"> 1089 884 <term><command>whereis</command></term> … … 1097 892 </varlistentry> 1098 893 1099 <varlistentry id="wipefs">1100 <term><command>wipefs</command></term>1101 <listitem>1102 <para>Wipes a filesystem signature from a device</para>1103 <indexterm zone="ch-system-util-linux wipefs">1104 <primary sortas="b-wipefs">wipefs</primary>1105 </indexterm>1106 </listitem>1107 </varlistentry>1108 1109 894 <varlistentry id="write"> 1110 895 <term><command>write</command></term> … … 1129 914 </varlistentry> 1130 915 1131 <varlistentry id="libmount">1132 <term><filename class="libraryfile">libmount</filename></term>1133 <listitem>1134 <para>Contains routines for parsing the1135 <filename>/etc/fstab</filename>, <filename>/etc/mtab</filename>,1136 and <filename>/proc/self/mountinfo</filename> files, managing1137 <filename>/etc/mtab</filename>, and configuring various mount1138 options</para>1139 <indexterm zone="ch-system-util-linux libmount">1140 <primary sortas="c-libmount">libmount</primary>1141 </indexterm>1142 </listitem>1143 </varlistentry>1144 1145 916 <varlistentry id="libuuid"> 1146 917 <term><filename class="libraryfile">libuuid</filename></term>
Note:
See TracChangeset
for help on using the changeset viewer.