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">
8 <sect1 id="ch-system-coreutils" role="wrap">
9 <?dbhtml filename="coreutils.html"?>
11 <sect1info condition="script">
12 <productname>coreutils</productname>
13 <productnumber>&coreutils-version;</productnumber>
14 <address>&coreutils-url;</address>
17 <title>Coreutils-&coreutils-version;</title>
19 <indexterm zone="ch-system-coreutils">
20 <primary sortas="a-Coreutils">Coreutils</primary>
23 <sect2 role="package">
26 <para>The Coreutils package contains utilities for showing and setting the
27 basic system characteristics.</para>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
34 <seg>&coreutils-ch6-sbu;</seg>
35 <seg>&coreutils-ch6-du;</seg>
41 <sect2 role="installation">
42 <title>Installation of Coreutils</title>
44 <para>POSIX requires that programs from Coreutils recognize character
45 boundaries correctly even in multibyte locales. The following patch fixes
46 this non-compliance and other internationalization-related bugs.</para>
48 <screen><userinput remap="pre">patch -Np1 -i ../&coreutils-i18n-patch;</userinput></screen>
51 <para>In the past, many bugs were found in this patch. When reporting new
52 bugs to Coreutils maintainers, please check first if they are reproducible
53 without this patch.</para>
56 <!-- this has been fixed in upstream gnulib, when a new version of
57 coreutils is released, please check #4055 to see if the change has been
58 picked up in this package -->
59 <para>Suppress a test which on some machines can loop forever:</para>
61 <screen><userinput remap="pre">sed -i '/test.lock/s/^/#/' gnulib-tests/gnulib.mk</userinput></screen>
63 <para>Now prepare Coreutils for compilation:</para>
65 <screen><userinput remap="configure">autoreconf -fiv
66 FORCE_UNSAFE_CONFIGURE=1 ./configure \
68 --enable-no-install-program=kill,uptime</userinput></screen>
71 <title>The meaning of the configure options:</title>
74 <term><command>autoreconf</command></term>
76 <para>This command updates generated configuration files
77 consistent with the latest version of automake.
83 <term><envar>FORCE_UNSAFE_CONFIGURE=1</envar></term>
85 <para>This environment variable allows the package to be
86 built as the root user.
92 <term><parameter>--enable-no-install-program=kill,uptime</parameter></term>
94 <para>The purpose of this switch is to prevent Coreutils from
95 installing binaries that will be installed by other packages later.
101 <para>Compile the package:</para>
103 <screen><userinput remap="make">make</userinput></screen>
105 <para>Skip down to <quote>Install the
106 package</quote> if not running the test suite.</para>
108 <para>Now the test suite is ready to be run. First, run the tests that are
109 meant to be run as user <systemitem class="username">root</systemitem>:</para>
111 <screen><userinput remap="test">make NON_ROOT_USERNAME=nobody check-root</userinput></screen>
113 <para>We're going to run the remainder of the tests as the
114 <systemitem class="username">nobody</systemitem> user. Certain tests,
115 however, require that the user be a member of more than one group. So that
116 these tests are not skipped we'll add a temporary group and make the
117 user <systemitem class="username">nobody</systemitem> a part of it:</para>
119 <screen><userinput remap="test">echo "dummy:x:1000:nobody" >> /etc/group</userinput></screen>
121 <para>Fix some of the permissions so that the non-root user can compile and
122 run the tests:</para>
124 <screen><userinput remap="test">chown -Rv nobody . </userinput></screen>
126 <para>Now run the tests. Make sure the PATH in the <userinput>su</userinput>
127 environment includes /tools/bin.</para>
129 <screen><userinput remap="test">su nobody -s /bin/bash \
130 -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
132 <para>The test program test-getlogin is known to fail in a
133 partially built system environment like the chroot environment here, but
134 passes if run at the end of this chapter. The test program tty.sh is
135 also known to fail.</para>
137 <para>Remove the temporary group:</para>
139 <screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen>
141 <para>Install the package:</para>
143 <screen><userinput remap="install">make install</userinput></screen>
145 <para>Move programs to the locations specified by the FHS:</para>
147 <screen><userinput remap="install">mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin
148 mv -v /usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} /bin
149 mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin
150 mv -v /usr/bin/chroot /usr/sbin
151 mv -v /usr/share/man/man1/chroot.1 /usr/share/man/man8/chroot.8
152 sed -i s/\"1\"/\"8\"/1 /usr/share/man/man8/chroot.8</userinput></screen>
154 <para revision="sysv">Some of the scripts in the LFS-Bootscripts package
155 depend on <command>head</command>, <command>nice</command>,
156 <command>sleep</command>, and <command>touch</command>. As <filename
157 class="directory">/usr</filename> may not be available during the early and
158 late stages of booting, those binaries need to be on the root partition to
159 maintain FHS compliance:</para>
161 <screen><userinput remap="install">mv -v /usr/bin/{head,nice,sleep,touch} /bin</userinput></screen>
165 <sect2 id="contents-coreutils" role="content">
166 <title>Contents of Coreutils</title>
169 <segtitle>Installed programs</segtitle>
170 <segtitle>Installed library</segtitle>
171 <segtitle>Installed directory</segtitle>
174 <seg>[, b2sum, base32, base64, basename, basenc, cat, chcon, chgrp, chmod, chown,
175 chroot, cksum, comm, cp, csplit, cut, date, dd, df, dir, dircolors,
176 dirname, du, echo, env, expand, expr, factor, false, fmt, fold, groups,
177 head, hostid, id, install, join, link, ln, logname, ls, md5sum, mkdir,
178 mkfifo, mknod, mktemp, mv, nice, nl, nohup, nproc, numfmt, od, paste,
179 pathchk, pinky, pr, printenv, printf, ptx, pwd, readlink, realpath, rm,
180 rmdir, runcon, seq, sha1sum, sha224sum, sha256sum, sha384sum,
181 sha512sum, shred, shuf, sleep, sort, split, stat, stdbuf, stty, sum,
182 sync, tac, tail, tee, test, timeout, touch, tr, true, truncate, tsort,
183 tty, uname, unexpand, uniq, unlink, users, vdir, wc, who, whoami, and
185 <seg>libstdbuf.so (in /usr/libexec/coreutils)</seg>
186 <seg>/usr/libexec/coreutils</seg>
191 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
192 <?dbfo list-presentation="list"?>
193 <?dbhtml list-presentation="table"?>
195 <varlistentry id="base32">
196 <term><command>base32</command></term>
198 <para>Encodes and decodes data according to the base32 specification
200 <indexterm zone="ch-system-coreutils base64">
201 <primary sortas="b-base64">base64</primary>
206 <varlistentry id="base64">
207 <term><command>base64</command></term>
209 <para>Encodes and decodes data according to the base64 specification
211 <indexterm zone="ch-system-coreutils base64">
212 <primary sortas="b-base64">base64</primary>
217 <varlistentry id="b2sum">
218 <term><command>b2sum</command></term>
220 <para>Prints or checks BLAKE2 (512-bit) checksums</para>
221 <indexterm zone="ch-system-coreutils b2sum">
222 <primary sortas="b-b2sum">b2sum</primary>
227 <varlistentry id="basename">
228 <term><command>basename</command></term>
230 <para>Strips any path and a given suffix from a file name</para>
231 <indexterm zone="ch-system-coreutils basename">
232 <primary sortas="b-basename">basename</primary>
237 <varlistentry id="basenc">
238 <term><command>basenc</command></term>
240 <para>Encodes or decodes data using various algorithms</para>
241 <indexterm zone="ch-system-coreutils basenc">
242 <primary sortas="b-basenc">basenc</primary>
247 <varlistentry id="cat">
248 <term><command>cat</command></term>
250 <para>Concatenates files to standard output</para>
251 <indexterm zone="ch-system-coreutils cat">
252 <primary sortas="b-cat">cat</primary>
257 <varlistentry id="chcon">
258 <term><command>chcon</command></term>
260 <para>Changes security context for files and directories</para>
261 <indexterm zone="ch-system-coreutils chcon">
262 <primary sortas="b-chcon">chcon</primary>
267 <varlistentry id="chgrp">
268 <term><command>chgrp</command></term>
270 <para>Changes the group ownership of files and directories</para>
271 <indexterm zone="ch-system-coreutils chgrp">
272 <primary sortas="b-chgrp">chgrp</primary>
277 <varlistentry id="chmod">
278 <term><command>chmod</command></term>
280 <para>Changes the permissions of each file to the given mode; the mode
281 can be either a symbolic representation of the changes to make or an
282 octal number representing the new permissions</para>
283 <indexterm zone="ch-system-coreutils chmod">
284 <primary sortas="b-chmod">chmod</primary>
289 <varlistentry id="chown">
290 <term><command>chown</command></term>
292 <para>Changes the user and/or group ownership of files and
294 <indexterm zone="ch-system-coreutils chown">
295 <primary sortas="b-chown">chown</primary>
300 <varlistentry id="chroot">
301 <term><command>chroot</command></term>
303 <para>Runs a command with the specified directory as the
304 <filename class="directory">/</filename> directory</para>
305 <indexterm zone="ch-system-coreutils chroot">
306 <primary sortas="b-chroot">chroot</primary>
311 <varlistentry id="cksum">
312 <term><command>cksum</command></term>
314 <para>Prints the Cyclic Redundancy Check (CRC) checksum and the byte
315 counts of each specified file</para>
316 <indexterm zone="ch-system-coreutils cksum">
317 <primary sortas="b-cksum">cksum</primary>
322 <varlistentry id="comm">
323 <term><command>comm</command></term>
325 <para>Compares two sorted files, outputting in three columns the lines
326 that are unique and the lines that are common</para>
327 <indexterm zone="ch-system-coreutils comm">
328 <primary sortas="b-comm">comm</primary>
333 <varlistentry id="cp">
334 <term><command>cp</command></term>
336 <para>Copies files</para>
337 <indexterm zone="ch-system-coreutils cp">
338 <primary sortas="b-cp">cp</primary>
343 <varlistentry id="csplit">
344 <term><command>csplit</command></term>
346 <para>Splits a given file into several new files, separating them
347 according to given patterns or line numbers and outputting the byte
348 count of each new file</para>
349 <indexterm zone="ch-system-coreutils csplit">
350 <primary sortas="b-csplit">csplit</primary>
355 <varlistentry id="cut">
356 <term><command>cut</command></term>
358 <para>Prints sections of lines, selecting the parts according to given
359 fields or positions</para>
360 <indexterm zone="ch-system-coreutils cut">
361 <primary sortas="b-cut">cut</primary>
366 <varlistentry id="date">
367 <term><command>date</command></term>
369 <para>Displays the current time in the given format, or sets the
371 <indexterm zone="ch-system-coreutils date">
372 <primary sortas="b-date">date</primary>
377 <varlistentry id="dd">
378 <term><command>dd</command> </term>
380 <para>Copies a file using the given block size and count, while
381 optionally performing conversions on it</para>
382 <indexterm zone="ch-system-coreutils dd">
383 <primary sortas="b-dd">dd</primary>
388 <varlistentry id="df">
389 <term><command>df</command></term>
391 <para>Reports the amount of disk space available (and used) on all
392 mounted file systems, or only on the file systems holding the selected
394 <indexterm zone="ch-system-coreutils df">
395 <primary sortas="b-df">df</primary>
400 <varlistentry id="dir">
401 <term><command>dir</command></term>
403 <para>Lists the contents of each given directory (the same as
404 the <command>ls</command> command)</para>
405 <indexterm zone="ch-system-coreutils dir">
406 <primary sortas="b-dir">dir</primary>
411 <varlistentry id="dircolors">
412 <term><command>dircolors</command></term>
414 <para>Outputs commands to set the <envar>LS_COLOR</envar>
415 environment variable to change the color scheme used by
416 <command>ls</command></para>
417 <indexterm zone="ch-system-coreutils dircolors">
418 <primary sortas="b-dircolors">dircolors</primary>
423 <varlistentry id="dirname">
424 <term><command>dirname</command></term>
426 <para>Strips the non-directory suffix from a file name</para>
427 <indexterm zone="ch-system-coreutils dirname">
428 <primary sortas="b-dirname">dirname</primary>
433 <varlistentry id="du">
434 <term><command>du</command></term>
436 <para>Reports the amount of disk space used by the current directory,
437 by each of the given directories (including all subdirectories) or by
438 each of the given files</para>
439 <indexterm zone="ch-system-coreutils du">
440 <primary sortas="b-du">du</primary>
445 <varlistentry id="echo">
446 <term><command>echo</command></term>
448 <para>Displays the given strings</para>
449 <indexterm zone="ch-system-coreutils echo">
450 <primary sortas="b-echo">echo</primary>
455 <varlistentry id="env">
456 <term><command>env</command></term>
458 <para>Runs a command in a modified environment</para>
459 <indexterm zone="ch-system-coreutils env">
460 <primary sortas="b-env">env</primary>
465 <varlistentry id="expand">
466 <term><command>expand</command></term>
468 <para>Converts tabs to spaces</para>
469 <indexterm zone="ch-system-coreutils expand">
470 <primary sortas="b-expand">expand</primary>
475 <varlistentry id="expr">
476 <term><command>expr</command></term>
478 <para>Evaluates expressions</para>
479 <indexterm zone="ch-system-coreutils expr">
480 <primary sortas="b-expr">expr</primary>
485 <varlistentry id="factor">
486 <term><command>factor</command></term>
488 <para>Prints the prime factors of all specified integer numbers</para>
489 <indexterm zone="ch-system-coreutils factor">
490 <primary sortas="b-factor">factor</primary>
495 <varlistentry id="false">
496 <term><command>false</command></term>
498 <para>Does nothing, unsuccessfully; it always exits with a status code
499 indicating failure</para>
500 <indexterm zone="ch-system-coreutils false">
501 <primary sortas="b-false">false</primary>
506 <varlistentry id="fmt">
507 <term><command>fmt</command></term>
509 <para>Reformats the paragraphs in the given files</para>
510 <indexterm zone="ch-system-coreutils fmt">
511 <primary sortas="b-fmt">fmt</primary>
516 <varlistentry id="fold">
517 <term><command>fold</command></term>
519 <para>Wraps the lines in the given files</para>
520 <indexterm zone="ch-system-coreutils fold">
521 <primary sortas="b-fold">fold</primary>
526 <varlistentry id="groups">
527 <term><command>groups</command></term>
529 <para>Reports a user's group memberships</para>
530 <indexterm zone="ch-system-coreutils groups">
531 <primary sortas="b-groups">groups</primary>
536 <varlistentry id="head">
537 <term><command>head</command></term>
539 <para>Prints the first ten lines (or the given number of lines)
540 of each given file</para>
541 <indexterm zone="ch-system-coreutils head">
542 <primary sortas="b-head">head</primary>
547 <varlistentry id="hostid">
548 <term><command>hostid</command></term>
550 <para>Reports the numeric identifier (in hexadecimal) of the host</para>
551 <indexterm zone="ch-system-coreutils hostid">
552 <primary sortas="b-hostid">hostid</primary>
557 <varlistentry id="id">
558 <term><command>id</command></term>
560 <para>Reports the effective user ID, group ID, and group memberships
561 of the current user or specified user</para>
562 <indexterm zone="ch-system-coreutils id">
563 <primary sortas="b-id">id</primary>
568 <varlistentry id="install">
569 <term><command>install</command> </term>
571 <para>Copies files while setting their permission modes and, if
572 possible, their owner and group</para>
573 <indexterm zone="ch-system-coreutils install">
574 <primary sortas="b-install">install</primary>
579 <varlistentry id="join">
580 <term><command>join</command></term>
582 <para>Joins the lines that have identical join fields from two
583 separate files</para>
584 <indexterm zone="ch-system-coreutils join">
585 <primary sortas="b-join">join</primary>
590 <varlistentry id="link">
591 <term><command>link</command></term>
593 <para>Creates a hard link with the given name to a file</para>
594 <indexterm zone="ch-system-coreutils link">
595 <primary sortas="b-link">link</primary>
600 <varlistentry id="ln">
601 <term><command>ln</command></term>
603 <para>Makes hard links or soft (symbolic) links between files</para>
604 <indexterm zone="ch-system-coreutils ln">
605 <primary sortas="b-ln">ln</primary>
610 <varlistentry id="logname">
611 <term><command>logname</command></term>
613 <para>Reports the current user's login name</para>
614 <indexterm zone="ch-system-coreutils logname">
615 <primary sortas="b-logname">logname</primary>
620 <varlistentry id="ls">
621 <term><command>ls</command></term>
623 <para>Lists the contents of each given directory</para>
624 <indexterm zone="ch-system-coreutils ls">
625 <primary sortas="b-ls">ls</primary>
630 <varlistentry id="md5sum">
631 <term><command>md5sum</command></term>
633 <para>Reports or checks Message Digest 5 (MD5) checksums</para>
634 <indexterm zone="ch-system-coreutils md5sum">
635 <primary sortas="b-md5sum">md5sum</primary>
640 <varlistentry id="mkdir">
641 <term><command>mkdir</command></term>
643 <para>Creates directories with the given names</para>
644 <indexterm zone="ch-system-coreutils mkdir">
645 <primary sortas="b-mkdir">mkdir</primary>
650 <varlistentry id="mkfifo">
651 <term><command>mkfifo</command></term>
653 <para>Creates First-In, First-Outs (FIFOs), a "named
654 pipe" in UNIX parlance, with the given names</para>
655 <indexterm zone="ch-system-coreutils mkfifo">
656 <primary sortas="b-mkfifo">mkfifo</primary>
661 <varlistentry id="mknod">
662 <term><command>mknod</command></term>
664 <para>Creates device nodes with the given names; a device node is a
665 character special file, a block special file, or a FIFO</para>
666 <indexterm zone="ch-system-coreutils mknod">
667 <primary sortas="b-mknod">mknod</primary>
672 <varlistentry id="mktemp">
673 <term><command>mktemp</command></term>
675 <para>Creates temporary files in a secure manner; it is used in scripts</para>
676 <indexterm zone="ch-system-coreutils mktemp">
677 <primary sortas="b-mktemp">mktemp</primary>
682 <varlistentry id="mv">
683 <term><command>mv</command></term>
685 <para>Moves or renames files or directories</para>
686 <indexterm zone="ch-system-coreutils mv">
687 <primary sortas="b-mv">mv</primary>
692 <varlistentry id="nice">
693 <term><command>nice</command></term>
695 <para>Runs a program with modified scheduling priority</para>
696 <indexterm zone="ch-system-coreutils nice">
697 <primary sortas="b-nice">nice</primary>
702 <varlistentry id="nl">
703 <term><command>nl</command></term>
705 <para>Numbers the lines from the given files</para>
706 <indexterm zone="ch-system-coreutils nl">
707 <primary sortas="b-nl">nl</primary>
712 <varlistentry id="nohup">
713 <term><command>nohup</command></term>
715 <para>Runs a command immune to hangups, with its output redirected to
717 <indexterm zone="ch-system-coreutils nohup">
718 <primary sortas="b-nohup">nohup</primary>
723 <varlistentry id="nproc">
724 <term><command>nproc</command></term>
726 <para>Prints the number of processing units available to a
728 <indexterm zone="ch-system-coreutils nproc">
729 <primary sortas="b-nproc">nproc</primary>
734 <varlistentry id="numfmt">
735 <term><command>numfmt</command></term>
737 <para>Converts numbers to or from human-readable strings</para>
738 <indexterm zone="ch-system-coreutils numfmt">
739 <primary sortas="b-numfmt">numfmt</primary>
744 <varlistentry id="od">
745 <term><command>od</command></term>
747 <para>Dumps files in octal and other formats</para>
748 <indexterm zone="ch-system-coreutils od">
749 <primary sortas="b-od">od</primary>
754 <varlistentry id="paste">
755 <term><command>paste</command></term>
757 <para>Merges the given files, joining sequentially corresponding lines
758 side by side, separated by tab characters</para>
759 <indexterm zone="ch-system-coreutils paste">
760 <primary sortas="b-paste">paste</primary>
765 <varlistentry id="pathchk">
766 <term><command>pathchk</command></term>
768 <para>Checks if file names are valid or portable</para>
769 <indexterm zone="ch-system-coreutils pathchk">
770 <primary sortas="b-pathchk">pathchk</primary>
775 <varlistentry id="pinky">
776 <term><command>pinky</command></term>
778 <para>Is a lightweight finger client; it reports some information
779 about the given users</para>
780 <indexterm zone="ch-system-coreutils pinky">
781 <primary sortas="b-pinky">pinky</primary>
786 <varlistentry id="pr">
787 <term><command>pr</command></term>
789 <para>Paginates and columnates files for printing</para>
790 <indexterm zone="ch-system-coreutils pr">
791 <primary sortas="b-pr">pr</primary>
796 <varlistentry id="printenv">
797 <term><command>printenv</command></term>
799 <para>Prints the environment</para>
800 <indexterm zone="ch-system-coreutils printenv">
801 <primary sortas="b-printenv">printenv</primary>
806 <varlistentry id="printf">
807 <term><command>printf</command></term>
809 <para>Prints the given arguments according to the given format, much
810 like the C printf function</para>
811 <indexterm zone="ch-system-coreutils printf">
812 <primary sortas="b-printf">printf</primary>
817 <varlistentry id="ptx">
818 <term><command>ptx</command></term>
820 <para>Produces a permuted index from the contents of the given files,
821 with each keyword in its context</para>
822 <indexterm zone="ch-system-coreutils ptx">
823 <primary sortas="b-ptx">ptx</primary>
828 <varlistentry id="pwd">
829 <term><command>pwd</command></term>
831 <para>Reports the name of the current working directory</para>
832 <indexterm zone="ch-system-coreutils pwd">
833 <primary sortas="b-pwd">pwd</primary>
838 <varlistentry id="readlink">
839 <term><command>readlink</command></term>
841 <para>Reports the value of the given symbolic link</para>
842 <indexterm zone="ch-system-coreutils readlink">
843 <primary sortas="b-readlink">readlink</primary>
848 <varlistentry id="realpath">
849 <term><command>realpath</command></term>
851 <para>Prints the resolved path</para>
852 <indexterm zone="ch-system-coreutils realpath">
853 <primary sortas="b-realpath">realpath</primary>
858 <varlistentry id="rm">
859 <term><command>rm</command></term>
861 <para>Removes files or directories</para>
862 <indexterm zone="ch-system-coreutils rm">
863 <primary sortas="b-rm">rm</primary>
868 <varlistentry id="rmdir">
869 <term><command>rmdir</command></term>
871 <para>Removes directories if they are empty</para>
872 <indexterm zone="ch-system-coreutils rmdir">
873 <primary sortas="b-rmdir">rmdir</primary>
878 <varlistentry id="runcon">
879 <term><command>runcon</command></term>
881 <para>Runs a command with specified security context</para>
882 <indexterm zone="ch-system-coreutils runcon">
883 <primary sortas="b-runcon">runcon</primary>
888 <varlistentry id="seq">
889 <term><command>seq</command></term>
891 <para>Prints a sequence of numbers within a given range and with a
892 given increment</para>
893 <indexterm zone="ch-system-coreutils seq">
894 <primary sortas="b-seq">seq</primary>
899 <varlistentry id="sha1sum">
900 <term><command>sha1sum</command></term>
902 <para>Prints or checks 160-bit Secure Hash Algorithm 1 (SHA1)
904 <indexterm zone="ch-system-coreutils sha1sum">
905 <primary sortas="b-sha1sum">sha1sum</primary>
910 <varlistentry id="sha224sum">
911 <term><command>sha224sum</command></term>
913 <para>Prints or checks 224-bit Secure Hash Algorithm checksums</para>
914 <indexterm zone="ch-system-coreutils sha224sum">
915 <primary sortas="b-sha224sum">sha224sum</primary>
920 <varlistentry id="sha256sum">
921 <term><command>sha256sum</command></term>
923 <para>Prints or checks 256-bit Secure Hash Algorithm checksums</para>
924 <indexterm zone="ch-system-coreutils sha256sum">
925 <primary sortas="b-sha256sum">sha256sum</primary>
930 <varlistentry id="sha384sum">
931 <term><command>sha384sum</command></term>
933 <para>Prints or checks 384-bit Secure Hash Algorithm checksums</para>
934 <indexterm zone="ch-system-coreutils sha384sum">
935 <primary sortas="b-sha384sum">sha384sum</primary>
940 <varlistentry id="sha512sum">
941 <term><command>sha512sum</command></term>
943 <para>Prints or checks 512-bit Secure Hash Algorithm checksums</para>
944 <indexterm zone="ch-system-coreutils sha512sum">
945 <primary sortas="b-sha512sum">sha512sum</primary>
950 <varlistentry id="shred">
951 <term><command>shred</command></term>
953 <para>Overwrites the given files repeatedly with complex patterns,
954 making it difficult to recover the data</para>
955 <indexterm zone="ch-system-coreutils shred">
956 <primary sortas="b-shred">shred</primary>
961 <varlistentry id="shuf">
962 <term><command>shuf</command></term>
964 <para>Shuffles lines of text</para>
965 <indexterm zone="ch-system-coreutils shuf">
966 <primary sortas="b-shuf">shuf</primary>
971 <varlistentry id="sleep">
972 <term><command>sleep</command></term>
974 <para>Pauses for the given amount of time</para>
975 <indexterm zone="ch-system-coreutils sleep">
976 <primary sortas="b-sleep">sleep</primary>
981 <varlistentry id="sort">
982 <term><command>sort</command></term>
984 <para>Sorts the lines from the given files</para>
985 <indexterm zone="ch-system-coreutils sort">
986 <primary sortas="b-sort">sort</primary>
991 <varlistentry id="split">
992 <term><command>split</command></term>
994 <para>Splits the given file into pieces, by size or by number of
996 <indexterm zone="ch-system-coreutils split">
997 <primary sortas="b-split">split</primary>
1002 <varlistentry id="stat">
1003 <term><command>stat</command></term>
1005 <para>Displays file or filesystem status</para>
1006 <indexterm zone="ch-system-coreutils stat">
1007 <primary sortas="b-stat">stat</primary>
1012 <varlistentry id="stdbuf">
1013 <term><command>stdbuf</command></term>
1015 <para>Runs commands with altered buffering operations for its standard
1017 <indexterm zone="ch-system-coreutils stdbuf">
1018 <primary sortas="b-stdbuf">stdbuf</primary>
1023 <varlistentry id="stty">
1024 <term><command>stty</command></term>
1026 <para>Sets or reports terminal line settings</para>
1027 <indexterm zone="ch-system-coreutils stty">
1028 <primary sortas="b-stty">stty</primary>
1033 <varlistentry id="sum">
1034 <term><command>sum</command></term>
1036 <para>Prints checksum and block counts for each given file</para>
1037 <indexterm zone="ch-system-coreutils sum">
1038 <primary sortas="b-sum">sum</primary>
1043 <varlistentry id="sync">
1044 <term><command>sync</command></term>
1046 <para>Flushes file system buffers; it forces changed blocks to disk
1047 and updates the super block</para>
1048 <indexterm zone="ch-system-coreutils sync">
1049 <primary sortas="b-sync">sync</primary>
1054 <varlistentry id="tac">
1055 <term><command>tac</command></term>
1057 <para>Concatenates the given files in reverse</para>
1058 <indexterm zone="ch-system-coreutils tac">
1059 <primary sortas="b-tac">tac</primary>
1064 <varlistentry id="tail">
1065 <term><command>tail</command></term>
1067 <para>Prints the last ten lines (or the given number of lines) of each
1069 <indexterm zone="ch-system-coreutils tail">
1070 <primary sortas="b-tail">tail</primary>
1075 <varlistentry id="tee">
1076 <term><command>tee</command></term>
1078 <para>Reads from standard input while writing both to standard output
1079 and to the given files</para>
1080 <indexterm zone="ch-system-coreutils tee">
1081 <primary sortas="b-tee">tee</primary>
1086 <varlistentry id="test">
1087 <term><command>test</command></term>
1089 <para>Compares values and checks file types</para>
1090 <indexterm zone="ch-system-coreutils test">
1091 <primary sortas="b-test">test</primary>
1096 <varlistentry id="timeout">
1097 <term><command>timeout</command></term>
1099 <para>Runs a command with a time limit</para>
1100 <indexterm zone="ch-system-coreutils timeout">
1101 <primary sortas="b-timeout">timeout</primary>
1106 <varlistentry id="touch">
1107 <term><command>touch</command></term>
1109 <para>Changes file timestamps, setting the access and modification
1110 times of the given files to the current time; files that do not exist
1111 are created with zero length</para>
1112 <indexterm zone="ch-system-coreutils touch">
1113 <primary sortas="b-touch">touch</primary>
1118 <varlistentry id="tr">
1119 <term><command>tr</command></term>
1121 <para>Translates, squeezes, and deletes the given characters from
1122 standard input</para>
1123 <indexterm zone="ch-system-coreutils tr">
1124 <primary sortas="b-tr">tr</primary>
1129 <varlistentry id="true">
1130 <term><command>true</command></term>
1132 <para>Does nothing, successfully; it always exits with a status code
1133 indicating success</para>
1134 <indexterm zone="ch-system-coreutils true">
1135 <primary sortas="b-true">true</primary>
1140 <varlistentry id="truncate">
1141 <term><command>truncate</command></term>
1143 <para>Shrinks or expands a file to the specified size</para>
1144 <indexterm zone="ch-system-coreutils truncate">
1145 <primary sortas="b-truncate">truncate</primary>
1150 <varlistentry id="tsort">
1151 <term><command>tsort</command></term>
1153 <para>Performs a topological sort; it writes a completely ordered list
1154 according to the partial ordering in a given file</para>
1155 <indexterm zone="ch-system-coreutils tsort">
1156 <primary sortas="b-tsort">tsort</primary>
1161 <varlistentry id="tty">
1162 <term><command>tty</command></term>
1164 <para>Reports the file name of the terminal connected to standard
1166 <indexterm zone="ch-system-coreutils tty">
1167 <primary sortas="b-tty">tty</primary>
1172 <varlistentry id="uname">
1173 <term><command>uname</command></term>
1175 <para>Reports system information</para>
1176 <indexterm zone="ch-system-coreutils uname">
1177 <primary sortas="b-uname">uname</primary>
1182 <varlistentry id="unexpand">
1183 <term><command>unexpand</command></term>
1185 <para>Converts spaces to tabs</para>
1186 <indexterm zone="ch-system-coreutils unexpand">
1187 <primary sortas="b-unexpand">unexpand</primary>
1192 <varlistentry id="uniq">
1193 <term><command>uniq</command></term>
1195 <para>Discards all but one of successive identical lines</para>
1196 <indexterm zone="ch-system-coreutils uniq">
1197 <primary sortas="b-uniq">uniq</primary>
1202 <varlistentry id="unlink">
1203 <term><command>unlink</command></term>
1205 <para>Removes the given file</para>
1206 <indexterm zone="ch-system-coreutils unlink">
1207 <primary sortas="b-unlink">unlink</primary>
1212 <varlistentry id="users">
1213 <term><command>users</command></term>
1215 <para>Reports the names of the users currently logged on</para>
1216 <indexterm zone="ch-system-coreutils users">
1217 <primary sortas="b-users">users</primary>
1222 <varlistentry id="vdir">
1223 <term><command>vdir</command></term>
1225 <para>Is the same as <command>ls -l</command></para>
1226 <indexterm zone="ch-system-coreutils vdir">
1227 <primary sortas="b-vdir">vdir</primary>
1232 <varlistentry id="wc">
1233 <term><command>wc</command></term>
1235 <para>Reports the number of lines, words, and bytes for each given
1236 file, as well as a total line when more than one file is given</para>
1237 <indexterm zone="ch-system-coreutils wc">
1238 <primary sortas="b-wc">wc</primary>
1243 <varlistentry id="who">
1244 <term><command>who</command></term>
1246 <para>Reports who is logged on</para>
1247 <indexterm zone="ch-system-coreutils who">
1248 <primary sortas="b-who">who</primary>
1253 <varlistentry id="whoami">
1254 <term><command>whoami</command></term>
1256 <para>Reports the user name associated with the current effective
1258 <indexterm zone="ch-system-coreutils whoami">
1259 <primary sortas="b-whoami">whoami</primary>
1264 <varlistentry id="yes">
1265 <term><command>yes</command></term>
1267 <para>Repeatedly outputs <quote>y</quote> or a given string until
1269 <indexterm zone="ch-system-coreutils yes">
1270 <primary sortas="b-yes">yes</primary>
1275 <varlistentry id="libstdbuf">
1276 <term><filename class="libraryfile">libstdbuf</filename></term>
1278 <para>Library used by <command>stdbuf</command></para>
1279 <indexterm zone="ch-system-coreutils libstdbuf">
1280 <primary sortas="c-libstdbuf">libstdbuf</primary>