source: chapter06/coreutils.xml@ 2002e60

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 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
Last change on this file since 2002e60 was 2002e60, checked in by Bruce Dubbs <bdubbs@…>, 13 years ago

Added a sed to fix an intermittent test failure in coreutils

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

  • Property mode set to 100644
File size: 41.8 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-coreutils" role="wrap">
9 <?dbhtml filename="coreutils.html"?>
10
11 <sect1info condition="script">
12 <productname>coreutils</productname>
13 <productnumber>&coreutils-version;</productnumber>
14 <address>&coreutils-url;</address>
15 </sect1info>
16
17 <title>Coreutils-&coreutils-version;</title>
18
19 <indexterm zone="ch-system-coreutils">
20 <primary sortas="a-Coreutils">Coreutils</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Coreutils package contains utilities for showing and setting the
27 basic system characteristics.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&coreutils-ch6-sbu;</seg>
35 <seg>&coreutils-ch6-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Coreutils</title>
43
44 <para>A known issue with the <command>uname</command> program from
45 this package is that the <parameter>-p</parameter> switch always
46 returns <computeroutput>unknown</computeroutput>. The following patch
47 fixes this behavior for Intel architectures:</para>
48
49<screen><userinput remap="pre">case `uname -m` in
50 i?86 | x86_64) patch -Np1 -i ../&coreutils-uname-patch; ;;
51esac</userinput></screen>
52
53 <para>POSIX requires that programs from Coreutils recognize character
54 boundaries correctly even in multibyte locales. The following patch
55 fixes this non-compliance and other internationalization-related bugs:</para>
56
57<screen><userinput remap="pre">patch -Np1 -i ../&coreutils-i18n-patch;</userinput></screen>
58
59 <note>
60 <para>In the past, many bugs were found in this patch. When reporting new
61 bugs to Coreutils maintainers, please check first if they are reproducible
62 without this patch.</para>
63 </note>
64
65 <para>Apply a patch to fix a known issue with the test suite:</para>
66
67<screen><userinput remap="pre">patch -Np1 -i ../&coreutils-sparse_fiemap-patch;</userinput></screen>
68
69 <para>And fix another test:</para>
70
71<screen><userinput remap="pre">sed -i 's/^cmp sparse copy/wait; cmp sparse copy/' tests/cp/sparse-to-pipe</userinput></screen>
72
73 <para>Now prepare Coreutils for compilation:</para>
74
75<screen><userinput remap="configure">./configure --prefix=/usr \
76 --enable-no-install-program=kill,uptime</userinput></screen>
77
78 <variablelist>
79 <title>The meaning of the configure options:</title>
80
81 <varlistentry>
82 <term><parameter>--enable-no-install-program=kill,uptime</parameter></term>
83 <listitem>
84 <para>The purpose of this switch is to prevent Coreutils from
85 installing binaries that will be installed by other packages later.
86 </para>
87 </listitem>
88 </varlistentry>
89 </variablelist>
90
91 <para>Compile the package:</para>
92
93<screen><userinput remap="make">make</userinput></screen>
94
95 <para>Skip down to <quote>Install the
96 package</quote> if not running the test suite.</para>
97
98 <para>Now the test suite is ready to be run. First, run the tests that are
99 meant to be run as user <systemitem class="username">root</systemitem>:</para>
100
101<screen><userinput remap="test">make NON_ROOT_USERNAME=nobody check-root</userinput></screen>
102
103 <para>We're going to run the remainder of the tests as the
104 <systemitem class="username">nobody</systemitem> user. Certain tests,
105 however, require that the user be a member of more than one group. So that
106 these tests are not skipped we'll add a temporary group and make the
107 user <systemitem class="username">nobody</systemitem> a part of it:</para>
108
109<screen><userinput remap="test">echo "dummy:x:1000:nobody" &gt;&gt; /etc/group</userinput></screen>
110
111 <para>Fix some of the permissions so that the non-root user can compile and
112 run the tests:</para>
113
114<screen><userinput remap="test">chown -Rv nobody . </userinput></screen>
115
116 <para>Now run the tests:</para>
117
118<screen><userinput remap="test">su-tools nobody -s /bin/bash -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
119
120 <para>Remove the temporary group:</para>
121
122<screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen>
123
124 <para>Install the package:</para>
125
126<screen><userinput remap="install">make install</userinput></screen>
127
128 <para>Move programs to the locations specified by the FHS:</para>
129
130<screen><userinput remap="install">mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin
131mv -v /usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} /bin
132mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin
133mv -v /usr/bin/chroot /usr/sbin
134mv -v /usr/share/man/man1/chroot.1 /usr/share/man/man8/chroot.8
135sed -i s/\"1\"/\"8\"/1 /usr/share/man/man8/chroot.8</userinput></screen>
136
137 <para>Some of the scripts in the LFS-Bootscripts package depend on
138 <command>head</command>, <command>sleep</command>, and
139 <command>nice</command>. As <filename class="directory">/usr</filename>
140 may not be available during the early stages of booting, those binaries
141 need to be on the root partition:</para>
142
143<screen><userinput remap="install">mv -v /usr/bin/{head,sleep,nice} /bin</userinput></screen>
144
145 </sect2>
146
147
148 <sect2 id="contents-coreutils" role="content">
149 <title>Contents of Coreutils</title>
150
151 <segmentedlist>
152 <segtitle>Installed programs</segtitle>
153 <segtitle>Installed library</segtitle>
154 <segtitle>Installed directory</segtitle>
155
156 <seglistitem>
157 <seg>base64, basename, cat, chcon, chgrp, chmod, chown, chroot, cksum,
158 comm, cp, csplit, cut, date, dd, df, dir, dircolors, dirname, du, echo,
159 env, expand, expr, factor, false, fmt, fold, groups, head, hostid,
160 id, install, join, link, ln, logname, ls, md5sum, mkdir, mkfifo, mknod,
161 mktemp, mv, nice, nl, nohup, nproc, od, paste, pathchk, pinky, pr,
162 printenv, printf, ptx, pwd, readlink, rm, rmdir, runcon, seq, sha1sum,
163 sha224sum, sha256sum, sha384sum, sha512sum, shred, shuf, sleep, sort,
164 split, stat, stdbuf, stty, sum, sync, tac, tail, tee, test, timeout,
165 touch, tr, true, truncate, tsort, tty, uname, unexpand, uniq, unlink,
166 users, vdir, wc, who, whoami, and yes</seg>
167 <seg>libstdbuf.so</seg>
168 <seg>/usr/lib/coreutils</seg>
169 </seglistitem>
170 </segmentedlist>
171
172 <variablelist>
173 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
174 <?dbfo list-presentation="list"?>
175 <?dbhtml list-presentation="table"?>
176
177 <varlistentry id="base64">
178 <term><command>base64</command></term>
179 <listitem>
180 <para>Encodes and decodes data according to the base64 (RFC 3548)
181 specification</para>
182 <indexterm zone="ch-system-coreutils base64">
183 <primary sortas="b-base64">base64</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
188 <varlistentry id="basename">
189 <term><command>basename</command></term>
190 <listitem>
191 <para>Strips any path and a given suffix from a file name</para>
192 <indexterm zone="ch-system-coreutils basename">
193 <primary sortas="b-basename">basename</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 <varlistentry id="cat">
199 <term><command>cat</command></term>
200 <listitem>
201 <para>Concatenates files to standard output</para>
202 <indexterm zone="ch-system-coreutils cat">
203 <primary sortas="b-cat">cat</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="chcon">
209 <term><command>chcon</command></term>
210 <listitem>
211 <para>Changes security context for files and directories</para>
212 <indexterm zone="ch-system-coreutils chcon">
213 <primary sortas="b-chcon">chcon</primary>
214 </indexterm>
215 </listitem>
216 </varlistentry>
217
218 <varlistentry id="chgrp">
219 <term><command>chgrp</command></term>
220 <listitem>
221 <para>Changes the group ownership of files and directories</para>
222 <indexterm zone="ch-system-coreutils chgrp">
223 <primary sortas="b-chgrp">chgrp</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 <varlistentry id="chmod">
229 <term><command>chmod</command></term>
230 <listitem>
231 <para>Changes the permissions of each file to the given mode; the mode
232 can be either a symbolic representation of the changes to make or an
233 octal number representing the new permissions</para>
234 <indexterm zone="ch-system-coreutils chmod">
235 <primary sortas="b-chmod">chmod</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="chown">
241 <term><command>chown</command></term>
242 <listitem>
243 <para>Changes the user and/or group ownership of files and
244 directories</para>
245 <indexterm zone="ch-system-coreutils chown">
246 <primary sortas="b-chown">chown</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="chroot">
252 <term><command>chroot</command></term>
253 <listitem>
254 <para>Runs a command with the specified directory as the
255 <filename class="directory">/</filename> directory</para>
256 <indexterm zone="ch-system-coreutils chroot">
257 <primary sortas="b-chroot">chroot</primary>
258 </indexterm>
259 </listitem>
260 </varlistentry>
261
262 <varlistentry id="cksum">
263 <term><command>cksum</command></term>
264 <listitem>
265 <para>Prints the Cyclic Redundancy Check (CRC) checksum and the byte
266 counts of each specified file</para>
267 <indexterm zone="ch-system-coreutils cksum">
268 <primary sortas="b-cksum">cksum</primary>
269 </indexterm>
270 </listitem>
271 </varlistentry>
272
273 <varlistentry id="comm">
274 <term><command>comm</command></term>
275 <listitem>
276 <para>Compares two sorted files, outputting in three columns the lines
277 that are unique and the lines that are common</para>
278 <indexterm zone="ch-system-coreutils comm">
279 <primary sortas="b-comm">comm</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 <varlistentry id="cp">
285 <term><command>cp</command></term>
286 <listitem>
287 <para>Copies files</para>
288 <indexterm zone="ch-system-coreutils cp">
289 <primary sortas="b-cp">cp</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
294 <varlistentry id="csplit">
295 <term><command>csplit</command></term>
296 <listitem>
297 <para>Splits a given file into several new files, separating them
298 according to given patterns or line numbers and outputting the byte
299 count of each new file</para>
300 <indexterm zone="ch-system-coreutils csplit">
301 <primary sortas="b-csplit">csplit</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 <varlistentry id="cut">
307 <term><command>cut</command></term>
308 <listitem>
309 <para>Prints sections of lines, selecting the parts according to given
310 fields or positions</para>
311 <indexterm zone="ch-system-coreutils cut">
312 <primary sortas="b-cut">cut</primary>
313 </indexterm>
314 </listitem>
315 </varlistentry>
316
317 <varlistentry id="date">
318 <term><command>date</command></term>
319 <listitem>
320 <para>Displays the current time in the given format, or sets the
321 system date</para>
322 <indexterm zone="ch-system-coreutils date">
323 <primary sortas="b-date">date</primary>
324 </indexterm>
325 </listitem>
326 </varlistentry>
327
328 <varlistentry id="dd">
329 <term><command>dd</command> </term>
330 <listitem>
331 <para>Copies a file using the given block size and count, while
332 optionally performing conversions on it</para>
333 <indexterm zone="ch-system-coreutils dd">
334 <primary sortas="b-dd">dd</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
339 <varlistentry id="df">
340 <term><command>df</command></term>
341 <listitem>
342 <para>Reports the amount of disk space available (and used) on all
343 mounted file systems, or only on the file systems holding the selected
344 files</para>
345 <indexterm zone="ch-system-coreutils df">
346 <primary sortas="b-df">df</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
351 <varlistentry id="dir">
352 <term><command>dir</command></term>
353 <listitem>
354 <para>Lists the contents of each given directory (the same as
355 the <command>ls</command> command)</para>
356 <indexterm zone="ch-system-coreutils dir">
357 <primary sortas="b-dir">dir</primary>
358 </indexterm>
359 </listitem>
360 </varlistentry>
361
362 <varlistentry id="dircolors">
363 <term><command>dircolors</command></term>
364 <listitem>
365 <para>Outputs commands to set the <envar>LS_COLOR</envar>
366 environment variable to change the color scheme used by
367 <command>ls</command></para>
368 <indexterm zone="ch-system-coreutils dircolors">
369 <primary sortas="b-dircolors">dircolors</primary>
370 </indexterm>
371 </listitem>
372 </varlistentry>
373
374 <varlistentry id="dirname">
375 <term><command>dirname</command></term>
376 <listitem>
377 <para>Strips the non-directory suffix from a file name</para>
378 <indexterm zone="ch-system-coreutils dirname">
379 <primary sortas="b-dirname">dirname</primary>
380 </indexterm>
381 </listitem>
382 </varlistentry>
383
384 <varlistentry id="du">
385 <term><command>du</command></term>
386 <listitem>
387 <para>Reports the amount of disk space used by the current directory,
388 by each of the given directories (including all subdirectories) or by
389 each of the given files</para>
390 <indexterm zone="ch-system-coreutils du">
391 <primary sortas="b-du">du</primary>
392 </indexterm>
393 </listitem>
394 </varlistentry>
395
396 <varlistentry id="echo">
397 <term><command>echo</command></term>
398 <listitem>
399 <para>Displays the given strings</para>
400 <indexterm zone="ch-system-coreutils echo">
401 <primary sortas="b-echo">echo</primary>
402 </indexterm>
403 </listitem>
404 </varlistentry>
405
406 <varlistentry id="env">
407 <term><command>env</command></term>
408 <listitem>
409 <para>Runs a command in a modified environment</para>
410 <indexterm zone="ch-system-coreutils env">
411 <primary sortas="b-env">env</primary>
412 </indexterm>
413 </listitem>
414 </varlistentry>
415
416 <varlistentry id="expand">
417 <term><command>expand</command></term>
418 <listitem>
419 <para>Converts tabs to spaces</para>
420 <indexterm zone="ch-system-coreutils expand">
421 <primary sortas="b-expand">expand</primary>
422 </indexterm>
423 </listitem>
424 </varlistentry>
425
426 <varlistentry id="expr">
427 <term><command>expr</command></term>
428 <listitem>
429 <para>Evaluates expressions</para>
430 <indexterm zone="ch-system-coreutils expr">
431 <primary sortas="b-expr">expr</primary>
432 </indexterm>
433 </listitem>
434 </varlistentry>
435
436 <varlistentry id="factor">
437 <term><command>factor</command></term>
438 <listitem>
439 <para>Prints the prime factors of all specified integer numbers</para>
440 <indexterm zone="ch-system-coreutils factor">
441 <primary sortas="b-factor">factor</primary>
442 </indexterm>
443 </listitem>
444 </varlistentry>
445
446 <varlistentry id="false">
447 <term><command>false</command></term>
448 <listitem>
449 <para>Does nothing, unsuccessfully; it always exits with a status code
450 indicating failure</para>
451 <indexterm zone="ch-system-coreutils false">
452 <primary sortas="b-false">false</primary>
453 </indexterm>
454 </listitem>
455 </varlistentry>
456
457 <varlistentry id="fmt">
458 <term><command>fmt</command></term>
459 <listitem>
460 <para>Reformats the paragraphs in the given files</para>
461 <indexterm zone="ch-system-coreutils fmt">
462 <primary sortas="b-fmt">fmt</primary>
463 </indexterm>
464 </listitem>
465 </varlistentry>
466
467 <varlistentry id="fold">
468 <term><command>fold</command></term>
469 <listitem>
470 <para>Wraps the lines in the given files</para>
471 <indexterm zone="ch-system-coreutils fold">
472 <primary sortas="b-fold">fold</primary>
473 </indexterm>
474 </listitem>
475 </varlistentry>
476
477 <varlistentry id="groups">
478 <term><command>groups</command></term>
479 <listitem>
480 <para>Reports a user's group memberships</para>
481 <indexterm zone="ch-system-coreutils groups">
482 <primary sortas="b-groups">groups</primary>
483 </indexterm>
484 </listitem>
485 </varlistentry>
486
487 <varlistentry id="head">
488 <term><command>head</command></term>
489 <listitem>
490 <para>Prints the first ten lines (or the given number of lines)
491 of each given file</para>
492 <indexterm zone="ch-system-coreutils head">
493 <primary sortas="b-head">head</primary>
494 </indexterm>
495 </listitem>
496 </varlistentry>
497
498 <varlistentry id="hostid">
499 <term><command>hostid</command></term>
500 <listitem>
501 <para>Reports the numeric identifier (in hexadecimal) of the host</para>
502 <indexterm zone="ch-system-coreutils hostid">
503 <primary sortas="b-hostid">hostid</primary>
504 </indexterm>
505 </listitem>
506 </varlistentry>
507
508 <varlistentry id="id">
509 <term><command>id</command></term>
510 <listitem>
511 <para>Reports the effective user ID, group ID, and group memberships
512 of the current user or specified user</para>
513 <indexterm zone="ch-system-coreutils id">
514 <primary sortas="b-id">id</primary>
515 </indexterm>
516 </listitem>
517 </varlistentry>
518
519 <varlistentry id="install">
520 <term><command>install</command> </term>
521 <listitem>
522 <para>Copies files while setting their permission modes and, if
523 possible, their owner and group</para>
524 <indexterm zone="ch-system-coreutils install">
525 <primary sortas="b-install">install</primary>
526 </indexterm>
527 </listitem>
528 </varlistentry>
529
530 <varlistentry id="join">
531 <term><command>join</command></term>
532 <listitem>
533 <para>Joins the lines that have identical join fields from two
534 separate files</para>
535 <indexterm zone="ch-system-coreutils join">
536 <primary sortas="b-join">join</primary>
537 </indexterm>
538 </listitem>
539 </varlistentry>
540
541 <varlistentry id="link">
542 <term><command>link</command></term>
543 <listitem>
544 <para>Creates a hard link with the given name to a file</para>
545 <indexterm zone="ch-system-coreutils link">
546 <primary sortas="b-link">link</primary>
547 </indexterm>
548 </listitem>
549 </varlistentry>
550
551 <varlistentry id="ln">
552 <term><command>ln</command></term>
553 <listitem>
554 <para>Makes hard links or soft (symbolic) links between files</para>
555 <indexterm zone="ch-system-coreutils ln">
556 <primary sortas="b-ln">ln</primary>
557 </indexterm>
558 </listitem>
559 </varlistentry>
560
561 <varlistentry id="logname">
562 <term><command>logname</command></term>
563 <listitem>
564 <para>Reports the current user's login name</para>
565 <indexterm zone="ch-system-coreutils logname">
566 <primary sortas="b-logname">logname</primary>
567 </indexterm>
568 </listitem>
569 </varlistentry>
570
571 <varlistentry id="ls">
572 <term><command>ls</command></term>
573 <listitem>
574 <para>Lists the contents of each given directory</para>
575 <indexterm zone="ch-system-coreutils ls">
576 <primary sortas="b-ls">ls</primary>
577 </indexterm>
578 </listitem>
579 </varlistentry>
580
581 <varlistentry id="md5sum">
582 <term><command>md5sum</command></term>
583 <listitem>
584 <para>Reports or checks Message Digest 5 (MD5) checksums</para>
585 <indexterm zone="ch-system-coreutils md5sum">
586 <primary sortas="b-md5sum">md5sum</primary>
587 </indexterm>
588 </listitem>
589 </varlistentry>
590
591 <varlistentry id="mkdir">
592 <term><command>mkdir</command></term>
593 <listitem>
594 <para>Creates directories with the given names</para>
595 <indexterm zone="ch-system-coreutils mkdir">
596 <primary sortas="b-mkdir">mkdir</primary>
597 </indexterm>
598 </listitem>
599 </varlistentry>
600
601 <varlistentry id="mkfifo">
602 <term><command>mkfifo</command></term>
603 <listitem>
604 <para>Creates First-In, First-Outs (FIFOs), a <quote>named
605 pipe</quote> in UNIX parlance, with the given names</para>
606 <indexterm zone="ch-system-coreutils mkfifo">
607 <primary sortas="b-mkfifo">mkfifo</primary>
608 </indexterm>
609 </listitem>
610 </varlistentry>
611
612 <varlistentry id="mknod">
613 <term><command>mknod</command></term>
614 <listitem>
615 <para>Creates device nodes with the given names; a device node is a
616 character special file, a block special file, or a FIFO</para>
617 <indexterm zone="ch-system-coreutils mknod">
618 <primary sortas="b-mknod">mknod</primary>
619 </indexterm>
620 </listitem>
621 </varlistentry>
622
623 <varlistentry id="mktemp">
624 <term><command>mktemp</command></term>
625 <listitem>
626 <para>Creates temporary files in a secure manner; it is used in scripts</para>
627 <indexterm zone="ch-system-coreutils mktemp">
628 <primary sortas="b-mktemp">mktemp</primary>
629 </indexterm>
630 </listitem>
631 </varlistentry>
632
633 <varlistentry id="mv">
634 <term><command>mv</command></term>
635 <listitem>
636 <para>Moves or renames files or directories</para>
637 <indexterm zone="ch-system-coreutils mv">
638 <primary sortas="b-mv">mv</primary>
639 </indexterm>
640 </listitem>
641 </varlistentry>
642
643 <varlistentry id="nice">
644 <term><command>nice</command></term>
645 <listitem>
646 <para>Runs a program with modified scheduling priority</para>
647 <indexterm zone="ch-system-coreutils nice">
648 <primary sortas="b-nice">nice</primary>
649 </indexterm>
650 </listitem>
651 </varlistentry>
652
653 <varlistentry id="nl">
654 <term><command>nl</command></term>
655 <listitem>
656 <para>Numbers the lines from the given files</para>
657 <indexterm zone="ch-system-coreutils nl">
658 <primary sortas="b-nl">nl</primary>
659 </indexterm>
660 </listitem>
661 </varlistentry>
662
663 <varlistentry id="nohup">
664 <term><command>nohup</command></term>
665 <listitem>
666 <para>Runs a command immune to hangups, with its output redirected to
667 a log file</para>
668 <indexterm zone="ch-system-coreutils nohup">
669 <primary sortas="b-nohup">nohup</primary>
670 </indexterm>
671 </listitem>
672 </varlistentry>
673
674 <varlistentry id="nproc">
675 <term><command>nproc</command></term>
676 <listitem>
677 <para>Prints the number of processing units available to a
678 process</para>
679 <indexterm zone="ch-system-coreutils nproc">
680 <primary sortas="b-nproc">nproc</primary>
681 </indexterm>
682 </listitem>
683 </varlistentry>
684
685 <varlistentry id="od">
686 <term><command>od</command></term>
687 <listitem>
688 <para>Dumps files in octal and other formats</para>
689 <indexterm zone="ch-system-coreutils od">
690 <primary sortas="b-od">od</primary>
691 </indexterm>
692 </listitem>
693 </varlistentry>
694
695 <varlistentry id="paste">
696 <term><command>paste</command></term>
697 <listitem>
698 <para>Merges the given files, joining sequentially corresponding lines
699 side by side, separated by tab characters</para>
700 <indexterm zone="ch-system-coreutils paste">
701 <primary sortas="b-paste">paste</primary>
702 </indexterm>
703 </listitem>
704 </varlistentry>
705
706 <varlistentry id="pathchk">
707 <term><command>pathchk</command></term>
708 <listitem>
709 <para>Checks if file names are valid or portable</para>
710 <indexterm zone="ch-system-coreutils pathchk">
711 <primary sortas="b-pathchk">pathchk</primary>
712 </indexterm>
713 </listitem>
714 </varlistentry>
715
716 <varlistentry id="pinky">
717 <term><command>pinky</command></term>
718 <listitem>
719 <para>Is a lightweight finger client; it reports some information
720 about the given users</para>
721 <indexterm zone="ch-system-coreutils pinky">
722 <primary sortas="b-pinky">pinky</primary>
723 </indexterm>
724 </listitem>
725 </varlistentry>
726
727 <varlistentry id="pr">
728 <term><command>pr</command></term>
729 <listitem>
730 <para>Paginates and columnates files for printing</para>
731 <indexterm zone="ch-system-coreutils pr">
732 <primary sortas="b-pr">pr</primary>
733 </indexterm>
734 </listitem>
735 </varlistentry>
736
737 <varlistentry id="printenv">
738 <term><command>printenv</command></term>
739 <listitem>
740 <para>Prints the environment</para>
741 <indexterm zone="ch-system-coreutils printenv">
742 <primary sortas="b-printenv">printenv</primary>
743 </indexterm>
744 </listitem>
745 </varlistentry>
746
747 <varlistentry id="printf">
748 <term><command>printf</command></term>
749 <listitem>
750 <para>Prints the given arguments according to the given format, much
751 like the C printf function</para>
752 <indexterm zone="ch-system-coreutils printf">
753 <primary sortas="b-printf">printf</primary>
754 </indexterm>
755 </listitem>
756 </varlistentry>
757
758 <varlistentry id="ptx">
759 <term><command>ptx</command></term>
760 <listitem>
761 <para>Produces a permuted index from the contents of the given files,
762 with each keyword in its context</para>
763 <indexterm zone="ch-system-coreutils ptx">
764 <primary sortas="b-ptx">ptx</primary>
765 </indexterm>
766 </listitem>
767 </varlistentry>
768
769 <varlistentry id="pwd">
770 <term><command>pwd</command></term>
771 <listitem>
772 <para>Reports the name of the current working directory</para>
773 <indexterm zone="ch-system-coreutils pwd">
774 <primary sortas="b-pwd">pwd</primary>
775 </indexterm>
776 </listitem>
777 </varlistentry>
778
779 <varlistentry id="readlink">
780 <term><command>readlink</command></term>
781 <listitem>
782 <para>Reports the value of the given symbolic link</para>
783 <indexterm zone="ch-system-coreutils readlink">
784 <primary sortas="b-readlink">readlink</primary>
785 </indexterm>
786 </listitem>
787 </varlistentry>
788
789 <varlistentry id="rm">
790 <term><command>rm</command></term>
791 <listitem>
792 <para>Removes files or directories</para>
793 <indexterm zone="ch-system-coreutils rm">
794 <primary sortas="b-rm">rm</primary>
795 </indexterm>
796 </listitem>
797 </varlistentry>
798
799 <varlistentry id="rmdir">
800 <term><command>rmdir</command></term>
801 <listitem>
802 <para>Removes directories if they are empty</para>
803 <indexterm zone="ch-system-coreutils rmdir">
804 <primary sortas="b-rmdir">rmdir</primary>
805 </indexterm>
806 </listitem>
807 </varlistentry>
808
809 <varlistentry id="runcon">
810 <term><command>runcon</command></term>
811 <listitem>
812 <para>Runs a command with specified security context</para>
813 <indexterm zone="ch-system-coreutils runcon">
814 <primary sortas="b-runcon">runcon</primary>
815 </indexterm>
816 </listitem>
817 </varlistentry>
818
819 <varlistentry id="seq">
820 <term><command>seq</command></term>
821 <listitem>
822 <para>Prints a sequence of numbers within a given range and with a
823 given increment</para>
824 <indexterm zone="ch-system-coreutils seq">
825 <primary sortas="b-seq">seq</primary>
826 </indexterm>
827 </listitem>
828 </varlistentry>
829
830 <varlistentry id="sha1sum">
831 <term><command>sha1sum</command></term>
832 <listitem>
833 <para>Prints or checks 160-bit Secure Hash Algorithm 1 (SHA1)
834 checksums</para>
835 <indexterm zone="ch-system-coreutils sha1sum">
836 <primary sortas="b-sha1sum">sha1sum</primary>
837 </indexterm>
838 </listitem>
839 </varlistentry>
840
841 <varlistentry id="sha224sum">
842 <term><command>sha224sum</command></term>
843 <listitem>
844 <para>Prints or checks 224-bit Secure Hash Algorithm checksums</para>
845 <indexterm zone="ch-system-coreutils sha224sum">
846 <primary sortas="b-sha224sum">sha224sum</primary>
847 </indexterm>
848 </listitem>
849 </varlistentry>
850
851 <varlistentry id="sha256sum">
852 <term><command>sha256sum</command></term>
853 <listitem>
854 <para>Prints or checks 256-bit Secure Hash Algorithm checksums</para>
855 <indexterm zone="ch-system-coreutils sha256sum">
856 <primary sortas="b-sha256sum">sha256sum</primary>
857 </indexterm>
858 </listitem>
859 </varlistentry>
860
861 <varlistentry id="sha384sum">
862 <term><command>sha384sum</command></term>
863 <listitem>
864 <para>Prints or checks 384-bit Secure Hash Algorithm checksums</para>
865 <indexterm zone="ch-system-coreutils sha384sum">
866 <primary sortas="b-sha384sum">sha384sum</primary>
867 </indexterm>
868 </listitem>
869 </varlistentry>
870
871 <varlistentry id="sha512sum">
872 <term><command>sha512sum</command></term>
873 <listitem>
874 <para>Prints or checks 512-bit Secure Hash Algorithm checksums</para>
875 <indexterm zone="ch-system-coreutils sha512sum">
876 <primary sortas="b-sha512sum">sha512sum</primary>
877 </indexterm>
878 </listitem>
879 </varlistentry>
880
881 <varlistentry id="shred">
882 <term><command>shred</command></term>
883 <listitem>
884 <para>Overwrites the given files repeatedly with complex patterns,
885 making it difficult to recover the data</para>
886 <indexterm zone="ch-system-coreutils shred">
887 <primary sortas="b-shred">shred</primary>
888 </indexterm>
889 </listitem>
890 </varlistentry>
891
892 <varlistentry id="shuf">
893 <term><command>shuf</command></term>
894 <listitem>
895 <para>Shuffles lines of text</para>
896 <indexterm zone="ch-system-coreutils shuf">
897 <primary sortas="b-shuf">shuf</primary>
898 </indexterm>
899 </listitem>
900 </varlistentry>
901
902 <varlistentry id="sleep">
903 <term><command>sleep</command></term>
904 <listitem>
905 <para>Pauses for the given amount of time</para>
906 <indexterm zone="ch-system-coreutils sleep">
907 <primary sortas="b-sleep">sleep</primary>
908 </indexterm>
909 </listitem>
910 </varlistentry>
911
912 <varlistentry id="sort">
913 <term><command>sort</command></term>
914 <listitem>
915 <para>Sorts the lines from the given files</para>
916 <indexterm zone="ch-system-coreutils sort">
917 <primary sortas="b-sort">sort</primary>
918 </indexterm>
919 </listitem>
920 </varlistentry>
921
922 <varlistentry id="split">
923 <term><command>split</command></term>
924 <listitem>
925 <para>Splits the given file into pieces, by size or by number of
926 lines</para>
927 <indexterm zone="ch-system-coreutils split">
928 <primary sortas="b-split">split</primary>
929 </indexterm>
930 </listitem>
931 </varlistentry>
932
933 <varlistentry id="stat">
934 <term><command>stat</command></term>
935 <listitem>
936 <para>Displays file or filesystem status</para>
937 <indexterm zone="ch-system-coreutils stat">
938 <primary sortas="b-stat">stat</primary>
939 </indexterm>
940 </listitem>
941 </varlistentry>
942
943 <varlistentry id="stdbuf">
944 <term><command>stdbuf</command></term>
945 <listitem>
946 <para>Runs commands with altered buffering operations for its standard
947 streams</para>
948 <indexterm zone="ch-system-coreutils stdbuf">
949 <primary sortas="b-stdbuf">stdbuf</primary>
950 </indexterm>
951 </listitem>
952 </varlistentry>
953
954 <varlistentry id="stty">
955 <term><command>stty</command></term>
956 <listitem>
957 <para>Sets or reports terminal line settings</para>
958 <indexterm zone="ch-system-coreutils stty">
959 <primary sortas="b-stty">stty</primary>
960 </indexterm>
961 </listitem>
962 </varlistentry>
963
964 <varlistentry id="sum">
965 <term><command>sum</command></term>
966 <listitem>
967 <para>Prints checksum and block counts for each given file</para>
968 <indexterm zone="ch-system-coreutils sum">
969 <primary sortas="b-sum">sum</primary>
970 </indexterm>
971 </listitem>
972 </varlistentry>
973
974 <varlistentry id="sync">
975 <term><command>sync</command></term>
976 <listitem>
977 <para>Flushes file system buffers; it forces changed blocks to disk
978 and updates the super block</para>
979 <indexterm zone="ch-system-coreutils sync">
980 <primary sortas="b-sync">sync</primary>
981 </indexterm>
982 </listitem>
983 </varlistentry>
984
985 <varlistentry id="tac">
986 <term><command>tac</command></term>
987 <listitem>
988 <para>Concatenates the given files in reverse</para>
989 <indexterm zone="ch-system-coreutils tac">
990 <primary sortas="b-tac">tac</primary>
991 </indexterm>
992 </listitem>
993 </varlistentry>
994
995 <varlistentry id="tail">
996 <term><command>tail</command></term>
997 <listitem>
998 <para>Prints the last ten lines (or the given number of lines) of each
999 given file</para>
1000 <indexterm zone="ch-system-coreutils tail">
1001 <primary sortas="b-tail">tail</primary>
1002 </indexterm>
1003 </listitem>
1004 </varlistentry>
1005
1006 <varlistentry id="tee">
1007 <term><command>tee</command></term>
1008 <listitem>
1009 <para>Reads from standard input while writing both to standard output
1010 and to the given files</para>
1011 <indexterm zone="ch-system-coreutils tee">
1012 <primary sortas="b-tee">tee</primary>
1013 </indexterm>
1014 </listitem>
1015 </varlistentry>
1016
1017 <varlistentry id="test">
1018 <term><command>test</command></term>
1019 <listitem>
1020 <para>Compares values and checks file types</para>
1021 <indexterm zone="ch-system-coreutils test">
1022 <primary sortas="b-test">test</primary>
1023 </indexterm>
1024 </listitem>
1025 </varlistentry>
1026
1027 <varlistentry id="timeout">
1028 <term><command>timeout</command></term>
1029 <listitem>
1030 <para>Runs a command with a time limit</para>
1031 <indexterm zone="ch-system-coreutils timeout">
1032 <primary sortas="b-timeout">timeout</primary>
1033 </indexterm>
1034 </listitem>
1035 </varlistentry>
1036
1037 <varlistentry id="touch">
1038 <term><command>touch</command></term>
1039 <listitem>
1040 <para>Changes file timestamps, setting the access and modification
1041 times of the given files to the current time; files that do not exist
1042 are created with zero length</para>
1043 <indexterm zone="ch-system-coreutils touch">
1044 <primary sortas="b-touch">touch</primary>
1045 </indexterm>
1046 </listitem>
1047 </varlistentry>
1048
1049 <varlistentry id="tr">
1050 <term><command>tr</command></term>
1051 <listitem>
1052 <para>Translates, squeezes, and deletes the given characters from
1053 standard input</para>
1054 <indexterm zone="ch-system-coreutils tr">
1055 <primary sortas="b-tr">tr</primary>
1056 </indexterm>
1057 </listitem>
1058 </varlistentry>
1059
1060 <varlistentry id="true">
1061 <term><command>true</command></term>
1062 <listitem>
1063 <para>Does nothing, successfully; it always exits with a status code
1064 indicating success</para>
1065 <indexterm zone="ch-system-coreutils true">
1066 <primary sortas="b-true">true</primary>
1067 </indexterm>
1068 </listitem>
1069 </varlistentry>
1070
1071 <varlistentry id="truncate">
1072 <term><command>truncate</command></term>
1073 <listitem>
1074 <para>Shrinks or expands a file to the specified size</para>
1075 <indexterm zone="ch-system-coreutils truncate">
1076 <primary sortas="b-truncate">truncate</primary>
1077 </indexterm>
1078 </listitem>
1079 </varlistentry>
1080
1081 <varlistentry id="tsort">
1082 <term><command>tsort</command></term>
1083 <listitem>
1084 <para>Performs a topological sort; it writes a completely ordered list
1085 according to the partial ordering in a given file</para>
1086 <indexterm zone="ch-system-coreutils tsort">
1087 <primary sortas="b-tsort">tsort</primary>
1088 </indexterm>
1089 </listitem>
1090 </varlistentry>
1091
1092 <varlistentry id="tty">
1093 <term><command>tty</command></term>
1094 <listitem>
1095 <para>Reports the file name of the terminal connected to standard
1096 input</para>
1097 <indexterm zone="ch-system-coreutils tty">
1098 <primary sortas="b-tty">tty</primary>
1099 </indexterm>
1100 </listitem>
1101 </varlistentry>
1102
1103 <varlistentry id="uname">
1104 <term><command>uname</command></term>
1105 <listitem>
1106 <para>Reports system information</para>
1107 <indexterm zone="ch-system-coreutils uname">
1108 <primary sortas="b-uname">uname</primary>
1109 </indexterm>
1110 </listitem>
1111 </varlistentry>
1112
1113 <varlistentry id="unexpand">
1114 <term><command>unexpand</command></term>
1115 <listitem>
1116 <para>Converts spaces to tabs</para>
1117 <indexterm zone="ch-system-coreutils unexpand">
1118 <primary sortas="b-unexpand">unexpand</primary>
1119 </indexterm>
1120 </listitem>
1121 </varlistentry>
1122
1123 <varlistentry id="uniq">
1124 <term><command>uniq</command></term>
1125 <listitem>
1126 <para>Discards all but one of successive identical lines</para>
1127 <indexterm zone="ch-system-coreutils uniq">
1128 <primary sortas="b-uniq">uniq</primary>
1129 </indexterm>
1130 </listitem>
1131 </varlistentry>
1132
1133 <varlistentry id="unlink">
1134 <term><command>unlink</command></term>
1135 <listitem>
1136 <para>Removes the given file</para>
1137 <indexterm zone="ch-system-coreutils unlink">
1138 <primary sortas="b-unlink">unlink</primary>
1139 </indexterm>
1140 </listitem>
1141 </varlistentry>
1142
1143 <varlistentry id="users">
1144 <term><command>users</command></term>
1145 <listitem>
1146 <para>Reports the names of the users currently logged on</para>
1147 <indexterm zone="ch-system-coreutils users">
1148 <primary sortas="b-users">users</primary>
1149 </indexterm>
1150 </listitem>
1151 </varlistentry>
1152
1153 <varlistentry id="vdir">
1154 <term><command>vdir</command></term>
1155 <listitem>
1156 <para>Is the same as <command>ls -l</command></para>
1157 <indexterm zone="ch-system-coreutils vdir">
1158 <primary sortas="b-vdir">vdir</primary>
1159 </indexterm>
1160 </listitem>
1161 </varlistentry>
1162
1163 <varlistentry id="wc">
1164 <term><command>wc</command></term>
1165 <listitem>
1166 <para>Reports the number of lines, words, and bytes for each given
1167 file, as well as a total line when more than one file is given</para>
1168 <indexterm zone="ch-system-coreutils wc">
1169 <primary sortas="b-wc">wc</primary>
1170 </indexterm>
1171 </listitem>
1172 </varlistentry>
1173
1174 <varlistentry id="who">
1175 <term><command>who</command></term>
1176 <listitem>
1177 <para>Reports who is logged on</para>
1178 <indexterm zone="ch-system-coreutils who">
1179 <primary sortas="b-who">who</primary>
1180 </indexterm>
1181 </listitem>
1182 </varlistentry>
1183
1184 <varlistentry id="whoami">
1185 <term><command>whoami</command></term>
1186 <listitem>
1187 <para>Reports the user name associated with the current effective
1188 user ID</para>
1189 <indexterm zone="ch-system-coreutils whoami">
1190 <primary sortas="b-whoami">whoami</primary>
1191 </indexterm>
1192 </listitem>
1193 </varlistentry>
1194
1195 <varlistentry id="yes">
1196 <term><command>yes</command></term>
1197 <listitem>
1198 <para>Repeatedly outputs <quote>y</quote> or a given string until
1199 killed</para>
1200 <indexterm zone="ch-system-coreutils yes">
1201 <primary sortas="b-yes">yes</primary>
1202 </indexterm>
1203 </listitem>
1204 </varlistentry>
1205
1206 <varlistentry id="libstdbuf">
1207 <term><filename class="libraryfile">libstdbuf</filename></term>
1208 <listitem>
1209 <para>Library used by <command>stdbuf</command></para>
1210 <indexterm zone="ch-system-coreutils libstdbuf">
1211 <primary sortas="c-libstdbuf">libstdbuf</primary>
1212 </indexterm>
1213 </listitem>
1214 </varlistentry>
1215
1216 </variablelist>
1217
1218 </sect2>
1219
1220</sect1>
Note: See TracBrowser for help on using the repository browser.