source: chapter08/util-linux.xml@ 176404f

11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 arm ml-11.0 multilib trunk xry111/clfs-ng xry111/glibc-2.34 xry111/lfs-next xry111/tester-nohack
Last change on this file since 176404f was 176404f, checked in by Bruce Dubbs <bdubbs@…>, 12 months ago

Work around a util-linux that can hang the tests.

If CONFIG_USER_NS or CONFIG_PID_NS are not set in the kernel, the tests will
hang forever. To work around the problem, delete one test.

  • Property mode set to 100644
File size: 46.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-util-linux" role="wrap">
9 <?dbhtml filename="util-linux.html"?>
10
11 <sect1info condition="script">
12 <productname>util-linux</productname>
13 <productnumber>&util-linux-version;</productnumber>
14 <address>&util-linux-url;</address>
15 </sect1info>
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>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Util-linux package contains miscellaneous utility programs.
27 Among them are utilities for handling file systems, consoles, partitions,
28 and messages.</para>
29
30 <segmentedlist>
31 <segtitle>&buildtime;</segtitle>
32 <segtitle>&diskspace;</segtitle>
33
34 <seglistitem>
35 <seg>&util-linux-fin-sbu;</seg>
36 <seg>&util-linux-fin-du;</seg>
37 </seglistitem>
38 </segmentedlist>
39
40 </sect2>
41
42 <sect2 role="installation">
43 <title>Installation of Util-linux</title>
44
45 <para>Prepare Util-linux for compilation:</para>
46
47<screen revision="sysv"><userinput remap="configure">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
48 --libdir=/usr/lib \
49 --docdir=/usr/share/doc/util-linux-&util-linux-version; \
50 --disable-chfn-chsh \
51 --disable-login \
52 --disable-nologin \
53 --disable-su \
54 --disable-setpriv \
55 --disable-runuser \
56 --disable-pylibmount \
57 --disable-static \
58 --without-python \
59 --without-systemd \
60 --without-systemdsystemunitdir \
61 runstatedir=/run</userinput></screen>
62
63<screen revision="systemd"><userinput remap="configure">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
64 --libdir=/usr/lib \
65 --docdir=/usr/share/doc/util-linux-&util-linux-version; \
66 --disable-chfn-chsh \
67 --disable-login \
68 --disable-nologin \
69 --disable-su \
70 --disable-setpriv \
71 --disable-runuser \
72 --disable-pylibmount \
73 --disable-static \
74 --without-python \
75 runstatedir=/run</userinput></screen>
76
77 <para>The --disable and --without options prevent warnings about
78 building components that require packages not in LFS or are
79 inconsistent with programs installed by other packages.</para>
80
81 <para>Compile the package:</para>
82
83<screen><userinput remap="make">make</userinput></screen>
84
85 <para>If desired, run the test suite as a non-root user:</para>
86
87 <warning><para>Running the test suite as the
88 <systemitem class="username">root</systemitem> user can be harmful to
89 your system. To run it, the CONFIG_SCSI_DEBUG option for the kernel must
90 be available in the currently running system and must be built as a
91 module. Building it into the kernel will prevent booting. For complete
92 coverage, other BLFS packages must be installed. If desired, this test can
93 be run after rebooting into the completed LFS system and running:</para>
94
95<screen role="nodump"><userinput>bash tests/run.sh --srcdir=$PWD --builddir=$PWD</userinput></screen>
96 </warning>
97
98 <note><para>There is one test that depends on the configuration of the kernel.
99 If CONFIG_USER_NS or CONFIG_PID_NS are not set, the tests will hang forever.
100 To work around the problem, delete one test:</para>
101
102 <screen><userinput remap="test">rm tests/ts/lsns/ioctl_ns</userinput></screen>
103 </note>
104
105<screen><userinput remap="test">chown -Rv tester .
106su tester -c "make -k check"</userinput></screen>
107
108 <para>Install the package:</para>
109
110<screen><userinput remap="install">make install</userinput></screen>
111
112 <para>Finally, install the man pages:</para>
113
114<screen><userinput remap="install">tar -xf ../util-linux-man-pages-&util-linux-version;.tar.xz --directory /usr/share/man --strip-components=1</userinput></screen>
115
116 </sect2>
117
118 <sect2 id="contents-utillinux" role="content">
119 <title>Contents of Util-linux</title>
120
121 <segmentedlist>
122 <segtitle>Installed programs</segtitle>
123 <segtitle>Installed libraries</segtitle>
124 <segtitle>Installed directories</segtitle>
125
126 <seglistitem>
127 <seg>addpart, agetty, blkdiscard, blkid, blkzone, blockdev, cal, cfdisk, chcpu,
128 chmem, choom, chrt, col, colcrt, colrm, column, ctrlaltdel, delpart, dmesg,
129 eject, fallocate, fdformat, fdisk, fincore, findfs, findmnt, flock, fsck,
130 fsck.cramfs, fsck.minix, fsfreeze, fstrim, getopt, hexdump, hwclock,
131 i386, ionice, ipcmk, ipcrm, ipcs, isosize, kill, last, lastb (link to
132 last), ldattach, linux32, linux64, logger, look, losetup, lsblk, lscpu,
133 lsipc, lslocks, lslogins, lsmem, lsns, mcookie, mesg, mkfs, mkfs.bfs, mkfs.cramfs, mkfs.minix, mkswap,
134 more, mount, mountpoint, namei, nsenter, partx, pivot_root, prlimit, raw,
135 readprofile, rename, renice, resizepart, rev, rfkill, rtcwake, script,
136 scriptreplay, setarch, setsid, setterm, sfdisk, sulogin, swaplabel,
137 swapoff (link to swapon), swapon, switch_root, taskset, ul,
138 umount, uname26, unshare, utmpdump, uuidd, uuidgen, uuidparse, wall, wdctl, whereis,
139 wipefs, x86_64, and zramctl</seg>
140 <seg>libblkid.so, libfdisk.so, libmount.so,
141 libsmartcols.so, and libuuid.so</seg>
142 <seg>/usr/include/blkid,
143 /usr/include/libfdisk,
144 /usr/include/libmount,
145 /usr/include/libsmartcols,
146 /usr/include/uuid,
147 /usr/share/doc/util-linux-&util-linux-version;,
148 and /var/lib/hwclock</seg>
149 </seglistitem>
150 </segmentedlist>
151
152 <variablelist>
153 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
154 <?dbfo list-presentation="list"?>
155 <?dbhtml list-presentation="table"?>
156
157 <varlistentry id="addpart">
158 <term><command>addpart</command></term>
159 <listitem>
160 <para>Informs the Linux kernel of new partitions</para>
161 <indexterm zone="ch-system-util-linux addpart">
162 <primary sortas="b-addpart">addpart</primary>
163 </indexterm>
164 </listitem>
165 </varlistentry>
166
167 <varlistentry id="agetty">
168 <term><command>agetty</command></term>
169 <listitem>
170 <para>Opens a tty port, prompts for a login name,
171 and then invokes the <command>login</command> program</para>
172 <indexterm zone="ch-system-util-linux agetty">
173 <primary sortas="b-agetty">agetty</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177
178 <varlistentry id="blkdiscard">
179 <term><command>blkdiscard</command></term>
180 <listitem>
181 <para>Discards sectors on a device</para>
182 <indexterm zone="ch-system-util-linux blkdiscard">
183 <primary sortas="b-blkdiscard">blkdiscard</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
188 <varlistentry id="blkid">
189 <term><command>blkid</command></term>
190 <listitem>
191 <para>A command line utility to locate and print block device
192 attributes</para>
193 <indexterm zone="ch-system-util-linux blkid">
194 <primary sortas="b-blkid">blkid</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="blkzone">
200 <term><command>blkzone</command></term>
201 <listitem>
202 <para>Runs zone command on the given block device</para>
203 <indexterm zone="ch-system-util-linux blkzone">
204 <primary sortas="b-blkzone">blkzone</primary>
205 </indexterm>
206 </listitem>
207 </varlistentry>
208
209 <varlistentry id="blockdev">
210 <term><command>blockdev</command></term>
211 <listitem>
212 <para>Allows users to call block device ioctls from the command
213 line</para>
214 <indexterm zone="ch-system-util-linux blockdev">
215 <primary sortas="b-blockdev">blockdev</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
219
220 <varlistentry id="cal">
221 <term><command>cal</command></term>
222 <listitem>
223 <para>Displays a simple calendar</para>
224 <indexterm zone="ch-system-util-linux cal">
225 <primary sortas="b-cal">cal</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 <varlistentry id="cfdisk">
231 <term><command>cfdisk</command></term>
232 <listitem>
233 <para>Manipulates the partition table of the given device</para>
234 <indexterm zone="ch-system-util-linux cfdisk">
235 <primary sortas="b-cfdisk">cfdisk</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="chcpu">
241 <term><command>chcpu</command></term>
242 <listitem>
243 <para>Modifies the state of CPUs</para>
244 <indexterm zone="ch-system-util-linux chcpu">
245 <primary sortas="b-chcpu">chcpu</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry id="chmem">
251 <term><command>chmem</command></term>
252 <listitem>
253 <para>Configures memory</para>
254 <indexterm zone="ch-system-util-linux chmem">
255 <primary sortas="b-chmem">chmem</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
260 <varlistentry id="choom">
261 <term><command>choom</command></term>
262 <listitem>
263 <para>Displays and adjusts OOM-killer score</para>
264 <indexterm zone="ch-system-util-linux choom">
265 <primary sortas="b-choom">choom</primary>
266 </indexterm>
267 </listitem>
268 </varlistentry>
269
270 <varlistentry id="chrt">
271 <term><command>chrt</command></term>
272 <listitem>
273 <para>Manipulates real-time attributes of a process</para>
274 <indexterm zone="ch-system-util-linux chrt">
275 <primary sortas="b-chrt">chrt</primary>
276 </indexterm>
277 </listitem>
278 </varlistentry>
279
280 <varlistentry id="col">
281 <term><command>col</command></term>
282 <listitem>
283 <para>Filters out reverse line feeds</para>
284 <indexterm zone="ch-system-util-linux col">
285 <primary sortas="b-col">col</primary>
286 </indexterm>
287 </listitem>
288 </varlistentry>
289
290 <varlistentry id="colcrt">
291 <term><command>colcrt</command></term>
292 <listitem>
293 <para>Filters <command>nroff</command> output for terminals
294 that lack some capabilities, such as overstriking and half-lines</para>
295 <indexterm zone="ch-system-util-linux colcrt">
296 <primary sortas="b-colcrt">colcrt</primary>
297 </indexterm>
298 </listitem>
299 </varlistentry>
300
301 <varlistentry id="colrm">
302 <term><command>colrm</command></term>
303 <listitem>
304 <para>Filters out the given columns</para>
305 <indexterm zone="ch-system-util-linux colrm">
306 <primary sortas="b-colrm">colrm</primary>
307 </indexterm>
308 </listitem>
309 </varlistentry>
310
311 <varlistentry id="column">
312 <term><command>column</command></term>
313 <listitem>
314 <para>Formats a given file into multiple columns</para>
315 <indexterm zone="ch-system-util-linux column">
316 <primary sortas="b-column">column</primary>
317 </indexterm>
318 </listitem>
319 </varlistentry>
320
321 <varlistentry id="ctrlaltdel">
322 <term><command>ctrlaltdel</command></term>
323 <listitem>
324 <para>Sets the function of the Ctrl+Alt+Del key combination to a
325 hard or a soft reset</para>
326 <indexterm zone="ch-system-util-linux ctrlaltdel">
327 <primary sortas="b-ctrlaltdel">ctrlaltdel</primary>
328 </indexterm>
329 </listitem>
330 </varlistentry>
331
332 <varlistentry id="delpart">
333 <term><command>delpart</command></term>
334 <listitem>
335 <para>Asks the Linux kernel to remove a partition</para>
336 <indexterm zone="ch-system-util-linux delpart">
337 <primary sortas="b-delpart">delpart</primary>
338 </indexterm>
339 </listitem>
340 </varlistentry>
341
342 <varlistentry id="dmesg">
343 <term><command>dmesg</command></term>
344 <listitem>
345 <para>Dumps the kernel boot messages</para>
346 <indexterm zone="ch-system-util-linux dmesg">
347 <primary sortas="b-dmesg">dmesg</primary>
348 </indexterm>
349 </listitem>
350 </varlistentry>
351
352 <varlistentry id="eject">
353 <term><command>eject</command></term>
354 <listitem>
355 <para>Ejects removable media</para>
356 <indexterm zone="ch-system-util-linux eject">
357 <primary sortas="b-eject">eject</primary>
358 </indexterm>
359 </listitem>
360 </varlistentry>
361
362 <varlistentry id="fallocate">
363 <term><command>fallocate</command></term>
364 <listitem>
365 <para>Preallocates space to a file</para>
366 <indexterm zone="ch-system-util-linux fallocate">
367 <primary sortas="b-fallocate">fallocate</primary>
368 </indexterm>
369 </listitem>
370 </varlistentry>
371
372 <varlistentry id="fdformat">
373 <term><command>fdformat</command></term>
374 <listitem>
375 <para>Low-level formats a floppy disk</para>
376 <indexterm zone="ch-system-util-linux fdformat">
377 <primary sortas="b-fdformat">fdformat</primary>
378 </indexterm>
379 </listitem>
380 </varlistentry>
381
382 <varlistentry id="fdisk">
383 <term><command>fdisk</command></term>
384 <listitem>
385 <para>Manipulates the partition table of the given device</para>
386 <indexterm zone="ch-system-util-linux fdisk">
387 <primary sortas="b-fdisk">fdisk</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
392 <varlistentry id="fincore">
393 <term><command>fincore</command></term>
394 <listitem>
395 <para>Counts pages of file contents in core</para>
396 <indexterm zone="ch-system-util-linux fincore">
397 <primary sortas="b-fincore">fincore</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401
402 <varlistentry id="findfs">
403 <term><command>findfs</command></term>
404 <listitem>
405 <para>Finds a file system by label or Universally Unique Identifier
406 (UUID)</para>
407 <indexterm zone="ch-system-util-linux findfs">
408 <primary sortas="b-findfs">findfs</primary>
409 </indexterm>
410 </listitem>
411 </varlistentry>
412
413 <varlistentry id="findmnt">
414 <term><command>findmnt</command></term>
415 <listitem>
416 <para>Is a command line interface to the libmount library
417 for work with mountinfo, fstab and mtab files</para>
418 <indexterm zone="ch-system-util-linux findmnt">
419 <primary sortas="b-findmnt">findmnt</primary>
420 </indexterm>
421 </listitem>
422 </varlistentry>
423
424 <varlistentry id="flock">
425 <term><command>flock</command></term>
426 <listitem>
427 <para>Acquires a file lock and then executes a command with the lock
428 held</para>
429 <indexterm zone="ch-system-util-linux flock">
430 <primary sortas="b-flock">flock</primary>
431 </indexterm>
432 </listitem>
433 </varlistentry>
434
435 <varlistentry id="fsck">
436 <term><command>fsck</command></term>
437 <listitem>
438 <para>Is used to check, and optionally repair, file systems</para>
439 <indexterm zone="ch-system-util-linux fsck">
440 <primary sortas="b-fsck">fsck</primary>
441 </indexterm>
442 </listitem>
443 </varlistentry>
444
445 <varlistentry id="fsck.cramfs">
446 <term><command>fsck.cramfs</command></term>
447 <listitem>
448 <para>Performs a consistency check on the Cramfs file system on the
449 given device</para>
450 <indexterm zone="ch-system-util-linux fsck.cramfs">
451 <primary sortas="b-fsck.cramfs">fsck.cramfs</primary>
452 </indexterm>
453 </listitem>
454 </varlistentry>
455
456 <varlistentry id="fsck.minix">
457 <term><command>fsck.minix</command></term>
458 <listitem>
459 <para>Performs a consistency check on the Minix file system on the
460 given device</para>
461 <indexterm zone="ch-system-util-linux fsck.minix">
462 <primary sortas="b-fsck.minix">fsck.minix</primary>
463 </indexterm>
464 </listitem>
465 </varlistentry>
466
467 <varlistentry id="fsfreeze">
468 <term><command>fsfreeze</command></term>
469 <listitem>
470 <para>Is a very simple wrapper around FIFREEZE/FITHAW ioctl
471 kernel driver operations</para>
472 <indexterm zone="ch-system-util-linux fsfreeze">
473 <primary sortas="b-fsfreeze">fsfreeze</primary>
474 </indexterm>
475 </listitem>
476 </varlistentry>
477
478 <varlistentry id="fstrim">
479 <term><command>fstrim</command></term>
480 <listitem>
481 <para>Discards unused blocks on a mounted filesystem</para>
482 <indexterm zone="ch-system-util-linux fstrim">
483 <primary sortas="b-fstrim">fstrim</primary>
484 </indexterm>
485 </listitem>
486 </varlistentry>
487
488 <varlistentry id="getopt">
489 <term><command>getopt</command></term>
490 <listitem>
491 <para>Parses options in the given command line</para>
492 <indexterm zone="ch-system-util-linux getopt">
493 <primary sortas="b-getopt">getopt</primary>
494 </indexterm>
495 </listitem>
496 </varlistentry>
497
498 <varlistentry id="hexdump">
499 <term><command>hexdump</command></term>
500 <listitem>
501 <para>Dumps the given file in hexadecimal or in another given
502 format</para>
503 <indexterm zone="ch-system-util-linux hexdump">
504 <primary sortas="b-hexdump">hexdump</primary>
505 </indexterm>
506 </listitem>
507 </varlistentry>
508
509 <varlistentry id="hwclock">
510 <term><command>hwclock</command></term>
511 <listitem>
512 <para>Reads or sets the system's hardware clock, also called
513 the Real-Time Clock (RTC) or Basic Input-Output System (BIOS)
514 clock</para>
515 <indexterm zone="ch-system-util-linux hwclock">
516 <primary sortas="b-hwclock">hwclock</primary>
517 </indexterm>
518 </listitem>
519 </varlistentry>
520
521 <varlistentry id="i386">
522 <term><command>i386</command></term>
523 <listitem>
524 <para>A symbolic link to setarch</para>
525 <indexterm zone="ch-system-util-linux i386">
526 <primary sortas="b-i386">i386</primary>
527 </indexterm>
528 </listitem>
529 </varlistentry>
530
531 <varlistentry id="ionice">
532 <term><command>ionice</command></term>
533 <listitem>
534 <para>Gets or sets the io scheduling class and priority for a program</para>
535 <indexterm zone="ch-system-util-linux ionice">
536 <primary sortas="b-ionice">ionice</primary>
537 </indexterm>
538 </listitem>
539 </varlistentry>
540
541 <varlistentry id="ipcmk">
542 <term><command>ipcmk</command></term>
543 <listitem>
544 <para>Creates various IPC resources</para>
545 <indexterm zone="ch-system-util-linux ipcmk">
546 <primary sortas="b-ipcmk">ipcmk</primary>
547 </indexterm>
548 </listitem>
549 </varlistentry>
550
551 <varlistentry id="ipcrm">
552 <term><command>ipcrm</command></term>
553 <listitem>
554 <para>Removes the given Inter-Process Communication (IPC) resource</para>
555 <indexterm zone="ch-system-util-linux ipcrm">
556 <primary sortas="b-ipcrm">ipcrm</primary>
557 </indexterm>
558 </listitem>
559 </varlistentry>
560
561 <varlistentry id="ipcs">
562 <term><command>ipcs</command></term>
563 <listitem>
564 <para>Provides IPC status information</para>
565 <indexterm zone="ch-system-util-linux ipcs">
566 <primary sortas="b-ipcs">ipcs</primary>
567 </indexterm>
568 </listitem>
569 </varlistentry>
570
571 <varlistentry id="isosize">
572 <term><command>isosize</command></term>
573 <listitem>
574 <para>Reports the size of an iso9660 file system</para>
575 <indexterm zone="ch-system-util-linux isosize">
576 <primary sortas="b-isosize">isosize</primary>
577 </indexterm>
578 </listitem>
579 </varlistentry>
580
581 <varlistentry id="kill">
582 <term><command>kill</command></term>
583 <listitem>
584 <para>Sends signals to processes</para>
585 <indexterm zone="ch-system-util-linux kill">
586 <primary sortas="b-kill">kill</primary>
587 </indexterm>
588 </listitem>
589 </varlistentry>
590
591 <varlistentry id="last">
592 <term><command>last</command></term>
593 <listitem>
594 <para>Shows which users last logged in (and out), searching back
595 through the <filename>/var/log/wtmp</filename> file; it also shows
596 system boots, shutdowns, and run-level changes</para>
597 <indexterm zone="ch-system-util-linux last">
598 <primary sortas="b-last">last</primary>
599 </indexterm>
600 </listitem>
601 </varlistentry>
602
603 <varlistentry id="lastb">
604 <term><command>lastb</command></term>
605 <listitem>
606 <para>Shows the failed login attempts, as logged in
607 <filename>/var/log/btmp</filename></para>
608 <indexterm zone="ch-system-util-linux lastb">
609 <primary sortas="b-lastb">lastb</primary>
610 </indexterm>
611 </listitem>
612 </varlistentry>
613
614 <varlistentry id="ldattach">
615 <term><command>ldattach</command></term>
616 <listitem>
617 <para>Attaches a line discipline to a serial line</para>
618 <indexterm zone="ch-system-util-linux ldattach">
619 <primary sortas="b-ldattach">ldattach</primary>
620 </indexterm>
621 </listitem>
622 </varlistentry>
623
624 <varlistentry id="linux32">
625 <term><command>linux32</command></term>
626 <listitem>
627 <para>A symbolic link to setarch</para>
628 <indexterm zone="ch-system-util-linux linux32">
629 <primary sortas="b-linux32">linux32</primary>
630 </indexterm>
631 </listitem>
632 </varlistentry>
633
634 <varlistentry id="linux64">
635 <term><command>linux64</command></term>
636 <listitem>
637 <para>A symbolic link to setarch</para>
638 <indexterm zone="ch-system-util-linux linux64">
639 <primary sortas="b-linux64">linux64</primary>
640 </indexterm>
641 </listitem>
642 </varlistentry>
643
644 <varlistentry id="logger">
645 <term><command>logger</command></term>
646 <listitem>
647 <para>Enters the given message into the system log</para>
648 <indexterm zone="ch-system-util-linux logger">
649 <primary sortas="b-logger">logger</primary>
650 </indexterm>
651 </listitem>
652 </varlistentry>
653
654 <varlistentry id="look">
655 <term><command>look</command></term>
656 <listitem>
657 <para>Displays lines that begin with the given string</para>
658 <indexterm zone="ch-system-util-linux look">
659 <primary sortas="b-look">look</primary>
660 </indexterm>
661 </listitem>
662 </varlistentry>
663
664 <varlistentry id="losetup">
665 <term><command>losetup</command></term>
666 <listitem>
667 <para>Sets up and controls loop devices</para>
668 <indexterm zone="ch-system-util-linux losetup">
669 <primary sortas="b-losetup">losetup</primary>
670 </indexterm>
671 </listitem>
672 </varlistentry>
673
674 <varlistentry id="lsblk">
675 <term><command>lsblk</command></term>
676 <listitem>
677 <para>Lists information about all or selected block devices in
678 a tree-like format</para>
679 <indexterm zone="ch-system-util-linux lsblk">
680 <primary sortas="b-lsblk">lsblk</primary>
681 </indexterm>
682 </listitem>
683 </varlistentry>
684
685 <varlistentry id="lscpu">
686 <term><command>lscpu</command></term>
687 <listitem>
688 <para>Prints CPU architecture information</para>
689 <indexterm zone="ch-system-util-linux lscpu">
690 <primary sortas="b-lscpu">lscpu</primary>
691 </indexterm>
692 </listitem>
693 </varlistentry>
694
695 <varlistentry id="lsipc">
696 <term><command>lsipc</command></term>
697 <listitem>
698 <para>Prints information on IPC facilities currently employed
699 in the system</para>
700 <indexterm zone="ch-system-util-linux lsipc">
701 <primary sortas="b-lsipc">lsipc</primary>
702 </indexterm>
703 </listitem>
704 </varlistentry>
705
706 <varlistentry id="lslocks">
707 <term><command>lslocks</command></term>
708 <listitem>
709 <para>Lists local system locks</para>
710 <indexterm zone="ch-system-util-linux lslocks">
711 <primary sortas="b-lslocks">lslocks</primary>
712 </indexterm>
713 </listitem>
714 </varlistentry>
715
716 <varlistentry id="lslogins">
717 <term><command>lslogins</command></term>
718 <listitem>
719 <para>Lists information about users, groups and system accounts</para>
720 <indexterm zone="ch-system-util-linux lslogins">
721 <primary sortas="b-lslogins">lslogins</primary>
722 </indexterm>
723 </listitem>
724 </varlistentry>
725
726 <varlistentry id="lsmem">
727 <term><command>lsmem</command></term>
728 <listitem>
729 <para>Lists the ranges of available memory with their online
730 status</para>
731 <indexterm zone="ch-system-util-linux lsmem">
732 <primary sortas="b-lsmem">lsmem</primary>
733 </indexterm>
734 </listitem>
735 </varlistentry>
736
737 <varlistentry id="lsns">
738 <term><command>lsns</command></term>
739 <listitem>
740 <para>Lists namespaces</para>
741 <indexterm zone="ch-system-util-linux lsns">
742 <primary sortas="b-lsns">lsns</primary>
743 </indexterm>
744 </listitem>
745 </varlistentry>
746
747 <varlistentry id="mcookie">
748 <term><command>mcookie</command></term>
749 <listitem>
750 <para>Generates magic cookies (128-bit random hexadecimal numbers) for
751 <command>xauth</command></para>
752 <indexterm zone="ch-system-util-linux mcookie">
753 <primary sortas="b-mcookie">mcookie</primary>
754 </indexterm>
755 </listitem>
756 </varlistentry>
757
758 <varlistentry id="mesg">
759 <term><command>mesg</command></term>
760 <listitem>
761 <para>Controls whether other users can send messages to the current
762 user's terminal</para>
763 <indexterm zone="ch-system-util-linux mesg">
764 <primary sortas="b-mesg">mesg</primary>
765 </indexterm>
766 </listitem>
767 </varlistentry>
768
769 <varlistentry id="mkfs">
770 <term><command>mkfs</command></term>
771 <listitem>
772 <para>Builds a file system on a device (usually a hard disk
773 partition)</para>
774 <indexterm zone="ch-system-util-linux mkfs">
775 <primary sortas="b-mkfs">mkfs</primary>
776 </indexterm>
777 </listitem>
778 </varlistentry>
779
780 <varlistentry id="mkfs.bfs">
781 <term><command>mkfs.bfs</command></term>
782 <listitem>
783 <para>Creates a Santa Cruz Operations (SCO) bfs file system</para>
784 <indexterm zone="ch-system-util-linux mkfs.bfs">
785 <primary sortas="b-mkfs.bfs">mkfs.bfs</primary>
786 </indexterm>
787 </listitem>
788 </varlistentry>
789
790 <varlistentry id="mkfs.cramfs">
791 <term><command>mkfs.cramfs</command></term>
792 <listitem>
793 <para>Creates a cramfs file system</para>
794 <indexterm zone="ch-system-util-linux mkfs.cramfs">
795 <primary sortas="b-mkfs.cramfs">mkfs.cramfs</primary>
796 </indexterm>
797 </listitem>
798 </varlistentry>
799
800 <varlistentry id="mkfs.minix">
801 <term><command>mkfs.minix</command></term>
802 <listitem>
803 <para>Creates a Minix file system</para>
804 <indexterm zone="ch-system-util-linux mkfs.minix">
805 <primary sortas="b-mkfs.minix">mkfs.minix</primary>
806 </indexterm>
807 </listitem>
808 </varlistentry>
809
810 <varlistentry id="mkswap">
811 <term><command>mkswap</command></term>
812 <listitem>
813 <para>Initializes the given device or file to be used as a swap
814 area</para>
815 <indexterm zone="ch-system-util-linux mkswap">
816 <primary sortas="b-mkswap">mkswap</primary>
817 </indexterm>
818 </listitem>
819 </varlistentry>
820
821 <varlistentry id="more">
822 <term><command>more</command></term>
823 <listitem>
824 <para>A filter for paging through text one screen at a time</para>
825 <indexterm zone="ch-system-util-linux more">
826 <primary sortas="b-more">more</primary>
827 </indexterm>
828 </listitem>
829 </varlistentry>
830
831 <varlistentry id="mount">
832 <term><command>mount</command></term>
833 <listitem>
834 <para>Attaches the file system on the given device to a specified
835 directory in the file-system tree</para>
836 <indexterm zone="ch-system-util-linux mount">
837 <primary sortas="b-mount">mount</primary>
838 </indexterm>
839 </listitem>
840 </varlistentry>
841
842 <varlistentry id="mountpoint">
843 <term><command>mountpoint</command></term>
844 <listitem>
845 <para>Checks if the directory is a mountpoint</para>
846 <indexterm zone="ch-system-util-linux mountpoint">
847 <primary sortas="b-mountpoint">mountpoint</primary>
848 </indexterm>
849 </listitem>
850 </varlistentry>
851
852 <varlistentry id="namei">
853 <term><command>namei</command></term>
854 <listitem>
855 <para>Shows the symbolic links in the given pathnames</para>
856 <indexterm zone="ch-system-util-linux namei">
857 <primary sortas="b-namei">namei</primary>
858 </indexterm>
859 </listitem>
860 </varlistentry>
861
862 <varlistentry id="nsenter">
863 <term><command>nsenter</command></term>
864 <listitem>
865 <para>Runs a program with namespaces of other processes</para>
866 <indexterm zone="ch-system-util-linux nsenter">
867 <primary sortas="b-nsenter">nsenter</primary>
868 </indexterm>
869 </listitem>
870 </varlistentry>
871
872 <varlistentry id="partx">
873 <term><command>partx</command></term>
874 <listitem>
875 <para>Tells the kernel about the presence and numbering of on-disk
876 partitions</para>
877 <indexterm zone="ch-system-util-linux partx">
878 <primary sortas="b-partx">partx</primary>
879 </indexterm>
880 </listitem>
881 </varlistentry>
882
883 <varlistentry id="pivot_root">
884 <term><command>pivot_root</command></term>
885 <listitem>
886 <para>Makes the given file system the new root file system of the
887 current process</para>
888 <indexterm zone="ch-system-util-linux pivot_root">
889 <primary sortas="b-pivot_root">pivot_root</primary>
890 </indexterm>
891 </listitem>
892 </varlistentry>
893
894 <varlistentry id="prlimit">
895 <term><command>prlimit</command></term>
896 <listitem>
897 <para>Get and set a process' resource limits</para>
898 <indexterm zone="ch-system-util-linux prlimit">
899 <primary sortas="b-prlimit">prlimit</primary>
900 </indexterm>
901 </listitem>
902 </varlistentry>
903
904 <varlistentry id="raw">
905 <term><command>raw</command></term>
906 <listitem>
907 <para>Bind a Linux raw character device to a block device</para>
908 <indexterm zone="ch-system-util-linux raw">
909 <primary sortas="b-raw">raw</primary>
910 </indexterm>
911 </listitem>
912 </varlistentry>
913
914 <varlistentry id="readprofile">
915 <term><command>readprofile</command></term>
916 <listitem>
917 <para>Reads kernel profiling information</para>
918 <indexterm zone="ch-system-util-linux readprofile">
919 <primary sortas="b-readprofile">readprofile</primary>
920 </indexterm>
921 </listitem>
922 </varlistentry>
923
924 <varlistentry id="rename">
925 <term><command>rename</command></term>
926 <listitem>
927 <para>Renames the given files, replacing a given string with
928 another</para>
929 <indexterm zone="ch-system-util-linux rename">
930 <primary sortas="b-rename">rename</primary>
931 </indexterm>
932 </listitem>
933 </varlistentry>
934
935 <varlistentry id="renice">
936 <term><command>renice</command></term>
937 <listitem>
938 <para>Alters the priority of running processes</para>
939 <indexterm zone="ch-system-util-linux renice">
940 <primary sortas="b-renice">renice</primary>
941 </indexterm>
942 </listitem>
943 </varlistentry>
944
945 <varlistentry id="resizepart">
946 <term><command>resizepart</command></term>
947 <listitem>
948 <para>Asks the Linux kernel to resize a partition</para>
949 <indexterm zone="ch-system-util-linux resizepart">
950 <primary sortas="b-resizepart">resizepart</primary>
951 </indexterm>
952 </listitem>
953 </varlistentry>
954
955 <varlistentry id="rev">
956 <term><command>rev</command></term>
957 <listitem>
958 <para>Reverses the lines of a given file</para>
959 <indexterm zone="ch-system-util-linux rev">
960 <primary sortas="b-rev">rev</primary>
961 </indexterm>
962 </listitem>
963 </varlistentry>
964
965 <varlistentry id="rkfill">
966 <term><command>rkfill</command></term>
967 <listitem>
968 <para>Tool for enabling and disabling wireless devices</para>
969 <indexterm zone="ch-system-util-linux rkfill">
970 <primary sortas="b-rkfill">rkfill</primary>
971 </indexterm>
972 </listitem>
973 </varlistentry>
974
975 <varlistentry id="rtcwake">
976 <term><command>rtcwake</command></term>
977 <listitem>
978 <para>Used to enter a system sleep state until specified wakeup
979 time</para>
980 <indexterm zone="ch-system-util-linux rtcwake">
981 <primary sortas="b-rtcwake">rtcwake</primary>
982 </indexterm>
983 </listitem>
984 </varlistentry>
985
986 <varlistentry id="script">
987 <term><command>script</command></term>
988 <listitem>
989 <para>Makes a typescript of a terminal session</para>
990 <indexterm zone="ch-system-util-linux script">
991 <primary sortas="b-script">script</primary>
992 </indexterm>
993 </listitem>
994 </varlistentry>
995
996 <varlistentry id="scriptreplay">
997 <term><command>scriptreplay</command></term>
998 <listitem>
999 <para>Plays back typescripts using timing information</para>
1000 <indexterm zone="ch-system-util-linux scriptreplay">
1001 <primary sortas="b-scriptreplay">scriptreplay</primary>
1002 </indexterm>
1003 </listitem>
1004 </varlistentry>
1005
1006 <varlistentry id="setarch">
1007 <term><command>setarch</command></term>
1008 <listitem>
1009 <para>Changes reported architecture in a new program environment and
1010 sets personality flags</para>
1011 <indexterm zone="ch-system-util-linux setarch">
1012 <primary sortas="b-setarch">setarch</primary>
1013 </indexterm>
1014 </listitem>
1015 </varlistentry>
1016
1017 <varlistentry id="setsid">
1018 <term><command>setsid</command></term>
1019 <listitem>
1020 <para>Runs the given program in a new session</para>
1021 <indexterm zone="ch-system-util-linux setsid">
1022 <primary sortas="b-setsid">setsid</primary>
1023 </indexterm>
1024 </listitem>
1025 </varlistentry>
1026
1027 <varlistentry id="setterm">
1028 <term><command>setterm</command></term>
1029 <listitem>
1030 <para>Sets terminal attributes</para>
1031 <indexterm zone="ch-system-util-linux setterm">
1032 <primary sortas="b-setterm">setterm</primary>
1033 </indexterm>
1034 </listitem>
1035 </varlistentry>
1036
1037 <varlistentry id="sfdisk">
1038 <term><command>sfdisk</command></term>
1039 <listitem>
1040 <para>A disk partition table manipulator</para>
1041 <indexterm zone="ch-system-util-linux sfdisk">
1042 <primary sortas="b-sfdisk">sfdisk</primary>
1043 </indexterm>
1044 </listitem>
1045 </varlistentry>
1046
1047 <varlistentry id="sulogin">
1048 <term><command>sulogin</command></term>
1049 <listitem>
1050 <para>Allows <systemitem class="username">root</systemitem> to log in;
1051 it is normally invoked by <command>init</command> when the system goes
1052 into single user mode</para>
1053 <indexterm zone="ch-system-util-linux sulogin">
1054 <primary sortas="b-sulogin">sulogin</primary>
1055 </indexterm>
1056 </listitem>
1057 </varlistentry>
1058
1059 <varlistentry id="swaplabel">
1060 <term><command>swaplabel</command></term>
1061 <listitem>
1062 <para>Allows to change swaparea UUID and label</para>
1063 <indexterm zone="ch-system-util-linux swaplabel">
1064 <primary sortas="b-swaplabel">swaplabel</primary>
1065 </indexterm>
1066 </listitem>
1067 </varlistentry>
1068
1069 <varlistentry id="swapoff">
1070 <term><command>swapoff</command></term>
1071 <listitem>
1072 <para>Disables devices and files for paging and swapping</para>
1073 <indexterm zone="ch-system-util-linux swapoff">
1074 <primary sortas="b-swapoff">swapoff</primary>
1075 </indexterm>
1076 </listitem>
1077 </varlistentry>
1078
1079 <varlistentry id="swapon">
1080 <term><command>swapon</command></term>
1081 <listitem>
1082 <para>Enables devices and files for paging and swapping and
1083 lists the devices and files currently in use</para>
1084 <indexterm zone="ch-system-util-linux swapon">
1085 <primary sortas="b-swapon">swapon</primary>
1086 </indexterm>
1087 </listitem>
1088 </varlistentry>
1089
1090 <varlistentry id="switch_root">
1091 <term><command>switch_root</command></term>
1092 <listitem>
1093 <para>Switches to another filesystem as the root of the mount tree</para>
1094 <indexterm zone="ch-system-util-linux switch_root">
1095 <primary sortas="b-switch_root">switch_root</primary>
1096 </indexterm>
1097 </listitem>
1098 </varlistentry>
1099
1100 <varlistentry id="tailf">
1101 <term><command>tailf</command></term>
1102 <listitem>
1103 <para>Tracks the growth of a log file; displays the last 10 lines
1104 of a log file, then continues displaying any new entries in the
1105 log file as they are created</para>
1106 <indexterm zone="ch-system-util-linux tailf">
1107 <primary sortas="b-tailf">tailf</primary>
1108 </indexterm>
1109 </listitem>
1110 </varlistentry>
1111
1112 <varlistentry id="taskset">
1113 <term><command>taskset</command></term>
1114 <listitem>
1115 <para>Retrieves or sets a process' CPU affinity</para>
1116 <indexterm zone="ch-system-util-linux taskset">
1117 <primary sortas="b-taskset">taskset</primary>
1118 </indexterm>
1119 </listitem>
1120 </varlistentry>
1121
1122 <varlistentry id="ul">
1123 <term><command>ul</command></term>
1124 <listitem>
1125 <para>A filter for translating underscores into escape sequences
1126 indicating underlining for the terminal in use</para>
1127 <indexterm zone="ch-system-util-linux ul">
1128 <primary sortas="b-ul">ul</primary>
1129 </indexterm>
1130 </listitem>
1131 </varlistentry>
1132
1133 <varlistentry id="umount">
1134 <term><command>umount</command></term>
1135 <listitem>
1136 <para>Disconnects a file system from the system's file tree</para>
1137 <indexterm zone="ch-system-util-linux umount">
1138 <primary sortas="b-umount">umount</primary>
1139 </indexterm>
1140 </listitem>
1141 </varlistentry>
1142
1143 <varlistentry id="uname26">
1144 <term><command>uname26</command></term>
1145 <listitem>
1146 <para>A symbolic link to setarch</para>
1147 <indexterm zone="ch-system-util-linux uname26">
1148 <primary sortas="b-uname26">uname26</primary>
1149 </indexterm>
1150 </listitem>
1151 </varlistentry>
1152
1153 <varlistentry id="unshare">
1154 <term><command>unshare</command></term>
1155 <listitem>
1156 <para>Runs a program with some namespaces unshared from parent</para>
1157 <indexterm zone="ch-system-util-linux unshare">
1158 <primary sortas="b-unshare">unshare</primary>
1159 </indexterm>
1160 </listitem>
1161 </varlistentry>
1162
1163 <varlistentry id="utmpdump">
1164 <term><command>utmpdump</command></term>
1165 <listitem>
1166 <para>Displays the content of the given login file in a more
1167 user-friendly format</para>
1168 <indexterm zone="ch-system-util-linux utmpdump">
1169 <primary sortas="b-utmpdump">utmpdump</primary>
1170 </indexterm>
1171 </listitem>
1172 </varlistentry>
1173
1174 <varlistentry id="uuidd">
1175 <term><command>uuidd</command></term>
1176 <listitem>
1177 <para>A daemon used by the UUID library to generate time-based
1178 UUIDs in a secure and guaranteed-unique fashion</para>
1179 <indexterm zone="ch-system-util-linux uuidd">
1180 <primary sortas="b-uuidd">uuidd</primary>
1181 </indexterm>
1182 </listitem>
1183 </varlistentry>
1184
1185 <varlistentry id="uuidgen">
1186 <term><command>uuidgen</command></term>
1187 <listitem>
1188 <para>Creates new UUIDs. Each new UUID can reasonably be considered
1189 unique among all UUIDs created, on the local system and on other
1190 systems, in the past and in the future</para>
1191 <indexterm zone="ch-system-util-linux uuidgen">
1192 <primary sortas="b-uuidgen">uuidgen</primary>
1193 </indexterm>
1194 </listitem>
1195 </varlistentry>
1196
1197 <varlistentry id="uuidparse">
1198 <term><command>uuidparse</command></term>
1199 <listitem>
1200 <para>An utility to parse unique identifiers</para>
1201 <indexterm zone="ch-system-util-linux uuidparse">
1202 <primary sortas="b-uuidparse">uuidparse</primary>
1203 </indexterm>
1204 </listitem>
1205 </varlistentry>
1206
1207 <varlistentry id="wall">
1208 <term><command>wall</command></term>
1209 <listitem>
1210 <para>Displays the contents of a file or, by default, its standard
1211 input, on the terminals of all currently logged in users</para>
1212 <indexterm zone="ch-system-util-linux wall">
1213 <primary sortas="b-wall">wall</primary>
1214 </indexterm>
1215 </listitem>
1216 </varlistentry>
1217
1218 <varlistentry id="wdctl">
1219 <term><command>wdctl</command></term>
1220 <listitem>
1221 <para>Shows hardware watchdog status</para>
1222 <indexterm zone="ch-system-util-linux wdctl">
1223 <primary sortas="b-wdctl">wdctl</primary>
1224 </indexterm>
1225 </listitem>
1226 </varlistentry>
1227
1228 <varlistentry id="whereis">
1229 <term><command>whereis</command></term>
1230 <listitem>
1231 <para>Reports the location of the binary, source, and man page
1232 for the given command</para>
1233 <indexterm zone="ch-system-util-linux whereis">
1234 <primary sortas="b-whereis">whereis</primary>
1235 </indexterm>
1236 </listitem>
1237 </varlistentry>
1238
1239 <varlistentry id="wipefs">
1240 <term><command>wipefs</command></term>
1241 <listitem>
1242 <para>Wipes a filesystem signature from a device</para>
1243 <indexterm zone="ch-system-util-linux wipefs">
1244 <primary sortas="b-wipefs">wipefs</primary>
1245 </indexterm>
1246 </listitem>
1247 </varlistentry>
1248
1249 <varlistentry id="x86_64">
1250 <term><command>x86_64</command></term>
1251 <listitem>
1252 <para>A symbolic link to setarch</para>
1253 <indexterm zone="ch-system-util-linux x86_64">
1254 <primary sortas="b-x86_64">x86_64</primary>
1255 </indexterm>
1256 </listitem>
1257 </varlistentry>
1258
1259 <varlistentry id="zramctl">
1260 <term><command>zramctl</command></term>
1261 <listitem>
1262 <para>A program to set up and control zram (compressed ram disk)
1263 devices</para>
1264 <indexterm zone="ch-system-util-linux zramctl">
1265 <primary sortas="b-zramctl">zramctl</primary>
1266 </indexterm>
1267 </listitem>
1268 </varlistentry>
1269
1270 <varlistentry id="libblkid">
1271 <term><filename class="libraryfile">libblkid</filename></term>
1272 <listitem>
1273 <para>Contains routines for device identification and token
1274 extraction</para>
1275 <indexterm zone="ch-system-util-linux libblkid">
1276 <primary sortas="c-libblkid">libblkid</primary>
1277 </indexterm>
1278 </listitem>
1279 </varlistentry>
1280
1281 <varlistentry id="libfdisk">
1282 <term><filename class="libraryfile">libfdisk</filename></term>
1283 <listitem>
1284 <para>Contains routines for manipulating partition tables</para>
1285 <indexterm zone="ch-system-util-linux libfdisk">
1286 <primary sortas="c-libfdisk">libfdisk</primary>
1287 </indexterm>
1288 </listitem>
1289 </varlistentry>
1290
1291 <varlistentry id="libmount">
1292 <term><filename class="libraryfile">libmount</filename></term>
1293 <listitem>
1294 <para>Contains routines for block device mounting and
1295 unmounting</para>
1296 <indexterm zone="ch-system-util-linux libmount">
1297 <primary sortas="c-libmount">libmount</primary>
1298 </indexterm>
1299 </listitem>
1300 </varlistentry>
1301
1302 <varlistentry id="libsmartcols">
1303 <term><filename class="libraryfile">libsmartcols</filename></term>
1304 <listitem>
1305 <para>Contains routines for aiding screen output in tabular form</para>
1306 <indexterm zone="ch-system-util-linux libsmartcols">
1307 <primary sortas="c-libsmartcols">libsmartcols</primary>
1308 </indexterm>
1309 </listitem>
1310 </varlistentry>
1311
1312 <varlistentry id="libuuid">
1313 <term><filename class="libraryfile">libuuid</filename></term>
1314 <listitem>
1315 <para>Contains routines for generating unique identifiers for objects
1316 that may be accessible beyond the local system</para>
1317 <indexterm zone="ch-system-util-linux libuuid">
1318 <primary sortas="c-libuuid">libuuid</primary>
1319 </indexterm>
1320 </listitem>
1321 </varlistentry>
1322
1323 </variablelist>
1324
1325 </sect2>
1326
1327</sect1>
Note: See TracBrowser for help on using the repository browser.