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">FORCE_UNSAFE_CONFIGURE=1 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>sleep</command>, and
156 <command>nice</command>. As <filename class="directory">/usr</filename>
157 may not be available during the early stages of booting, those binaries
158 need to be on the root partition:</para>
160 <para revision="systemd">Some packages in BLFS and beyond expect the
161 following programs in <filename class="directory">/bin</filename>, so make
162 sure they are placed there:</para>
164 <screen><userinput remap="install">mv -v /usr/bin/{head,sleep,nice} /bin</userinput></screen>
168 <sect2 id="contents-coreutils" role="content">
169 <title>Contents of Coreutils</title>
172 <segtitle>Installed programs</segtitle>
173 <segtitle>Installed library</segtitle>
174 <segtitle>Installed directory</segtitle>
177 <seg>[, base32, base64, basename, cat, chcon, chgrp, chmod, chown,
178 chroot, cksum, comm, cp, csplit, cut, date, dd, df, dir, dircolors,
179 dirname, du, echo, env, expand, expr, factor, false, fmt, fold, groups,
180 head, hostid, id, install, join, link, ln, logname, ls, md5sum, mkdir,
181 mkfifo, mknod, mktemp, mv, nice, nl, nohup, nproc, numfmt, od, paste,
182 pathchk, pinky, pr, printenv, printf, ptx, pwd, readlink, realpath, rm,
183 rmdir, runcon, seq, sha1sum, sha224sum, sha256sum, sha384sum,
184 sha512sum, shred, shuf, sleep, sort, split, stat, stdbuf, stty, sum,
185 sync, tac, tail, tee, test, timeout, touch, tr, true, truncate, tsort,
186 tty, uname, unexpand, uniq, unlink, users, vdir, wc, who, whoami, and
188 <seg>libstdbuf.so</seg>
189 <seg>/usr/libexec/coreutils</seg>
194 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
195 <?dbfo list-presentation="list"?>
196 <?dbhtml list-presentation="table"?>
198 <varlistentry id="base32">
199 <term><command>base32</command></term>
201 <para>Encodes and decodes data according to the base32 specification
203 <indexterm zone="ch-system-coreutils base64">
204 <primary sortas="b-base64">base64</primary>
209 <varlistentry id="base64">
210 <term><command>base64</command></term>
212 <para>Encodes and decodes data according to the base64 specification
214 <indexterm zone="ch-system-coreutils base64">
215 <primary sortas="b-base64">base64</primary>
220 <varlistentry id="basename">
221 <term><command>basename</command></term>
223 <para>Strips any path and a given suffix from a file name</para>
224 <indexterm zone="ch-system-coreutils basename">
225 <primary sortas="b-basename">basename</primary>
230 <varlistentry id="cat">
231 <term><command>cat</command></term>
233 <para>Concatenates files to standard output</para>
234 <indexterm zone="ch-system-coreutils cat">
235 <primary sortas="b-cat">cat</primary>
240 <varlistentry id="chcon">
241 <term><command>chcon</command></term>
243 <para>Changes security context for files and directories</para>
244 <indexterm zone="ch-system-coreutils chcon">
245 <primary sortas="b-chcon">chcon</primary>
250 <varlistentry id="chgrp">
251 <term><command>chgrp</command></term>
253 <para>Changes the group ownership of files and directories</para>
254 <indexterm zone="ch-system-coreutils chgrp">
255 <primary sortas="b-chgrp">chgrp</primary>
260 <varlistentry id="chmod">
261 <term><command>chmod</command></term>
263 <para>Changes the permissions of each file to the given mode; the mode
264 can be either a symbolic representation of the changes to make or an
265 octal number representing the new permissions</para>
266 <indexterm zone="ch-system-coreutils chmod">
267 <primary sortas="b-chmod">chmod</primary>
272 <varlistentry id="chown">
273 <term><command>chown</command></term>
275 <para>Changes the user and/or group ownership of files and
277 <indexterm zone="ch-system-coreutils chown">
278 <primary sortas="b-chown">chown</primary>
283 <varlistentry id="chroot">
284 <term><command>chroot</command></term>
286 <para>Runs a command with the specified directory as the
287 <filename class="directory">/</filename> directory</para>
288 <indexterm zone="ch-system-coreutils chroot">
289 <primary sortas="b-chroot">chroot</primary>
294 <varlistentry id="cksum">
295 <term><command>cksum</command></term>
297 <para>Prints the Cyclic Redundancy Check (CRC) checksum and the byte
298 counts of each specified file</para>
299 <indexterm zone="ch-system-coreutils cksum">
300 <primary sortas="b-cksum">cksum</primary>
305 <varlistentry id="comm">
306 <term><command>comm</command></term>
308 <para>Compares two sorted files, outputting in three columns the lines
309 that are unique and the lines that are common</para>
310 <indexterm zone="ch-system-coreutils comm">
311 <primary sortas="b-comm">comm</primary>
316 <varlistentry id="cp">
317 <term><command>cp</command></term>
319 <para>Copies files</para>
320 <indexterm zone="ch-system-coreutils cp">
321 <primary sortas="b-cp">cp</primary>
326 <varlistentry id="csplit">
327 <term><command>csplit</command></term>
329 <para>Splits a given file into several new files, separating them
330 according to given patterns or line numbers and outputting the byte
331 count of each new file</para>
332 <indexterm zone="ch-system-coreutils csplit">
333 <primary sortas="b-csplit">csplit</primary>
338 <varlistentry id="cut">
339 <term><command>cut</command></term>
341 <para>Prints sections of lines, selecting the parts according to given
342 fields or positions</para>
343 <indexterm zone="ch-system-coreutils cut">
344 <primary sortas="b-cut">cut</primary>
349 <varlistentry id="date">
350 <term><command>date</command></term>
352 <para>Displays the current time in the given format, or sets the
354 <indexterm zone="ch-system-coreutils date">
355 <primary sortas="b-date">date</primary>
360 <varlistentry id="dd">
361 <term><command>dd</command> </term>
363 <para>Copies a file using the given block size and count, while
364 optionally performing conversions on it</para>
365 <indexterm zone="ch-system-coreutils dd">
366 <primary sortas="b-dd">dd</primary>
371 <varlistentry id="df">
372 <term><command>df</command></term>
374 <para>Reports the amount of disk space available (and used) on all
375 mounted file systems, or only on the file systems holding the selected
377 <indexterm zone="ch-system-coreutils df">
378 <primary sortas="b-df">df</primary>
383 <varlistentry id="dir">
384 <term><command>dir</command></term>
386 <para>Lists the contents of each given directory (the same as
387 the <command>ls</command> command)</para>
388 <indexterm zone="ch-system-coreutils dir">
389 <primary sortas="b-dir">dir</primary>
394 <varlistentry id="dircolors">
395 <term><command>dircolors</command></term>
397 <para>Outputs commands to set the <envar>LS_COLOR</envar>
398 environment variable to change the color scheme used by
399 <command>ls</command></para>
400 <indexterm zone="ch-system-coreutils dircolors">
401 <primary sortas="b-dircolors">dircolors</primary>
406 <varlistentry id="dirname">
407 <term><command>dirname</command></term>
409 <para>Strips the non-directory suffix from a file name</para>
410 <indexterm zone="ch-system-coreutils dirname">
411 <primary sortas="b-dirname">dirname</primary>
416 <varlistentry id="du">
417 <term><command>du</command></term>
419 <para>Reports the amount of disk space used by the current directory,
420 by each of the given directories (including all subdirectories) or by
421 each of the given files</para>
422 <indexterm zone="ch-system-coreutils du">
423 <primary sortas="b-du">du</primary>
428 <varlistentry id="echo">
429 <term><command>echo</command></term>
431 <para>Displays the given strings</para>
432 <indexterm zone="ch-system-coreutils echo">
433 <primary sortas="b-echo">echo</primary>
438 <varlistentry id="env">
439 <term><command>env</command></term>
441 <para>Runs a command in a modified environment</para>
442 <indexterm zone="ch-system-coreutils env">
443 <primary sortas="b-env">env</primary>
448 <varlistentry id="expand">
449 <term><command>expand</command></term>
451 <para>Converts tabs to spaces</para>
452 <indexterm zone="ch-system-coreutils expand">
453 <primary sortas="b-expand">expand</primary>
458 <varlistentry id="expr">
459 <term><command>expr</command></term>
461 <para>Evaluates expressions</para>
462 <indexterm zone="ch-system-coreutils expr">
463 <primary sortas="b-expr">expr</primary>
468 <varlistentry id="factor">
469 <term><command>factor</command></term>
471 <para>Prints the prime factors of all specified integer numbers</para>
472 <indexterm zone="ch-system-coreutils factor">
473 <primary sortas="b-factor">factor</primary>
478 <varlistentry id="false">
479 <term><command>false</command></term>
481 <para>Does nothing, unsuccessfully; it always exits with a status code
482 indicating failure</para>
483 <indexterm zone="ch-system-coreutils false">
484 <primary sortas="b-false">false</primary>
489 <varlistentry id="fmt">
490 <term><command>fmt</command></term>
492 <para>Reformats the paragraphs in the given files</para>
493 <indexterm zone="ch-system-coreutils fmt">
494 <primary sortas="b-fmt">fmt</primary>
499 <varlistentry id="fold">
500 <term><command>fold</command></term>
502 <para>Wraps the lines in the given files</para>
503 <indexterm zone="ch-system-coreutils fold">
504 <primary sortas="b-fold">fold</primary>
509 <varlistentry id="groups">
510 <term><command>groups</command></term>
512 <para>Reports a user's group memberships</para>
513 <indexterm zone="ch-system-coreutils groups">
514 <primary sortas="b-groups">groups</primary>
519 <varlistentry id="head">
520 <term><command>head</command></term>
522 <para>Prints the first ten lines (or the given number of lines)
523 of each given file</para>
524 <indexterm zone="ch-system-coreutils head">
525 <primary sortas="b-head">head</primary>
530 <varlistentry id="hostid">
531 <term><command>hostid</command></term>
533 <para>Reports the numeric identifier (in hexadecimal) of the host</para>
534 <indexterm zone="ch-system-coreutils hostid">
535 <primary sortas="b-hostid">hostid</primary>
540 <varlistentry id="id">
541 <term><command>id</command></term>
543 <para>Reports the effective user ID, group ID, and group memberships
544 of the current user or specified user</para>
545 <indexterm zone="ch-system-coreutils id">
546 <primary sortas="b-id">id</primary>
551 <varlistentry id="install">
552 <term><command>install</command> </term>
554 <para>Copies files while setting their permission modes and, if
555 possible, their owner and group</para>
556 <indexterm zone="ch-system-coreutils install">
557 <primary sortas="b-install">install</primary>
562 <varlistentry id="join">
563 <term><command>join</command></term>
565 <para>Joins the lines that have identical join fields from two
566 separate files</para>
567 <indexterm zone="ch-system-coreutils join">
568 <primary sortas="b-join">join</primary>
573 <varlistentry id="link">
574 <term><command>link</command></term>
576 <para>Creates a hard link with the given name to a file</para>
577 <indexterm zone="ch-system-coreutils link">
578 <primary sortas="b-link">link</primary>
583 <varlistentry id="ln">
584 <term><command>ln</command></term>
586 <para>Makes hard links or soft (symbolic) links between files</para>
587 <indexterm zone="ch-system-coreutils ln">
588 <primary sortas="b-ln">ln</primary>
593 <varlistentry id="logname">
594 <term><command>logname</command></term>
596 <para>Reports the current user's login name</para>
597 <indexterm zone="ch-system-coreutils logname">
598 <primary sortas="b-logname">logname</primary>
603 <varlistentry id="ls">
604 <term><command>ls</command></term>
606 <para>Lists the contents of each given directory</para>
607 <indexterm zone="ch-system-coreutils ls">
608 <primary sortas="b-ls">ls</primary>
613 <varlistentry id="md5sum">
614 <term><command>md5sum</command></term>
616 <para>Reports or checks Message Digest 5 (MD5) checksums</para>
617 <indexterm zone="ch-system-coreutils md5sum">
618 <primary sortas="b-md5sum">md5sum</primary>
623 <varlistentry id="mkdir">
624 <term><command>mkdir</command></term>
626 <para>Creates directories with the given names</para>
627 <indexterm zone="ch-system-coreutils mkdir">
628 <primary sortas="b-mkdir">mkdir</primary>
633 <varlistentry id="mkfifo">
634 <term><command>mkfifo</command></term>
636 <para>Creates First-In, First-Outs (FIFOs), a "named
637 pipe" in UNIX parlance, with the given names</para>
638 <indexterm zone="ch-system-coreutils mkfifo">
639 <primary sortas="b-mkfifo">mkfifo</primary>
644 <varlistentry id="mknod">
645 <term><command>mknod</command></term>
647 <para>Creates device nodes with the given names; a device node is a
648 character special file, a block special file, or a FIFO</para>
649 <indexterm zone="ch-system-coreutils mknod">
650 <primary sortas="b-mknod">mknod</primary>
655 <varlistentry id="mktemp">
656 <term><command>mktemp</command></term>
658 <para>Creates temporary files in a secure manner; it is used in scripts</para>
659 <indexterm zone="ch-system-coreutils mktemp">
660 <primary sortas="b-mktemp">mktemp</primary>
665 <varlistentry id="mv">
666 <term><command>mv</command></term>
668 <para>Moves or renames files or directories</para>
669 <indexterm zone="ch-system-coreutils mv">
670 <primary sortas="b-mv">mv</primary>
675 <varlistentry id="nice">
676 <term><command>nice</command></term>
678 <para>Runs a program with modified scheduling priority</para>
679 <indexterm zone="ch-system-coreutils nice">
680 <primary sortas="b-nice">nice</primary>
685 <varlistentry id="nl">
686 <term><command>nl</command></term>
688 <para>Numbers the lines from the given files</para>
689 <indexterm zone="ch-system-coreutils nl">
690 <primary sortas="b-nl">nl</primary>
695 <varlistentry id="nohup">
696 <term><command>nohup</command></term>
698 <para>Runs a command immune to hangups, with its output redirected to
700 <indexterm zone="ch-system-coreutils nohup">
701 <primary sortas="b-nohup">nohup</primary>
706 <varlistentry id="nproc">
707 <term><command>nproc</command></term>
709 <para>Prints the number of processing units available to a
711 <indexterm zone="ch-system-coreutils nproc">
712 <primary sortas="b-nproc">nproc</primary>
717 <varlistentry id="numfmt">
718 <term><command>numfmt</command></term>
720 <para>Converts numbers to or from human-readable strings</para>
721 <indexterm zone="ch-system-coreutils numfmt">
722 <primary sortas="b-numfmt">numfmt</primary>
727 <varlistentry id="od">
728 <term><command>od</command></term>
730 <para>Dumps files in octal and other formats</para>
731 <indexterm zone="ch-system-coreutils od">
732 <primary sortas="b-od">od</primary>
737 <varlistentry id="paste">
738 <term><command>paste</command></term>
740 <para>Merges the given files, joining sequentially corresponding lines
741 side by side, separated by tab characters</para>
742 <indexterm zone="ch-system-coreutils paste">
743 <primary sortas="b-paste">paste</primary>
748 <varlistentry id="pathchk">
749 <term><command>pathchk</command></term>
751 <para>Checks if file names are valid or portable</para>
752 <indexterm zone="ch-system-coreutils pathchk">
753 <primary sortas="b-pathchk">pathchk</primary>
758 <varlistentry id="pinky">
759 <term><command>pinky</command></term>
761 <para>Is a lightweight finger client; it reports some information
762 about the given users</para>
763 <indexterm zone="ch-system-coreutils pinky">
764 <primary sortas="b-pinky">pinky</primary>
769 <varlistentry id="pr">
770 <term><command>pr</command></term>
772 <para>Paginates and columnates files for printing</para>
773 <indexterm zone="ch-system-coreutils pr">
774 <primary sortas="b-pr">pr</primary>
779 <varlistentry id="printenv">
780 <term><command>printenv</command></term>
782 <para>Prints the environment</para>
783 <indexterm zone="ch-system-coreutils printenv">
784 <primary sortas="b-printenv">printenv</primary>
789 <varlistentry id="printf">
790 <term><command>printf</command></term>
792 <para>Prints the given arguments according to the given format, much
793 like the C printf function</para>
794 <indexterm zone="ch-system-coreutils printf">
795 <primary sortas="b-printf">printf</primary>
800 <varlistentry id="ptx">
801 <term><command>ptx</command></term>
803 <para>Produces a permuted index from the contents of the given files,
804 with each keyword in its context</para>
805 <indexterm zone="ch-system-coreutils ptx">
806 <primary sortas="b-ptx">ptx</primary>
811 <varlistentry id="pwd">
812 <term><command>pwd</command></term>
814 <para>Reports the name of the current working directory</para>
815 <indexterm zone="ch-system-coreutils pwd">
816 <primary sortas="b-pwd">pwd</primary>
821 <varlistentry id="readlink">
822 <term><command>readlink</command></term>
824 <para>Reports the value of the given symbolic link</para>
825 <indexterm zone="ch-system-coreutils readlink">
826 <primary sortas="b-readlink">readlink</primary>
831 <varlistentry id="realpath">
832 <term><command>realpath</command></term>
834 <para>Prints the resolved path</para>
835 <indexterm zone="ch-system-coreutils realpath">
836 <primary sortas="b-realpath">realpath</primary>
841 <varlistentry id="rm">
842 <term><command>rm</command></term>
844 <para>Removes files or directories</para>
845 <indexterm zone="ch-system-coreutils rm">
846 <primary sortas="b-rm">rm</primary>
851 <varlistentry id="rmdir">
852 <term><command>rmdir</command></term>
854 <para>Removes directories if they are empty</para>
855 <indexterm zone="ch-system-coreutils rmdir">
856 <primary sortas="b-rmdir">rmdir</primary>
861 <varlistentry id="runcon">
862 <term><command>runcon</command></term>
864 <para>Runs a command with specified security context</para>
865 <indexterm zone="ch-system-coreutils runcon">
866 <primary sortas="b-runcon">runcon</primary>
871 <varlistentry id="seq">
872 <term><command>seq</command></term>
874 <para>Prints a sequence of numbers within a given range and with a
875 given increment</para>
876 <indexterm zone="ch-system-coreutils seq">
877 <primary sortas="b-seq">seq</primary>
882 <varlistentry id="sha1sum">
883 <term><command>sha1sum</command></term>
885 <para>Prints or checks 160-bit Secure Hash Algorithm 1 (SHA1)
887 <indexterm zone="ch-system-coreutils sha1sum">
888 <primary sortas="b-sha1sum">sha1sum</primary>
893 <varlistentry id="sha224sum">
894 <term><command>sha224sum</command></term>
896 <para>Prints or checks 224-bit Secure Hash Algorithm checksums</para>
897 <indexterm zone="ch-system-coreutils sha224sum">
898 <primary sortas="b-sha224sum">sha224sum</primary>
903 <varlistentry id="sha256sum">
904 <term><command>sha256sum</command></term>
906 <para>Prints or checks 256-bit Secure Hash Algorithm checksums</para>
907 <indexterm zone="ch-system-coreutils sha256sum">
908 <primary sortas="b-sha256sum">sha256sum</primary>
913 <varlistentry id="sha384sum">
914 <term><command>sha384sum</command></term>
916 <para>Prints or checks 384-bit Secure Hash Algorithm checksums</para>
917 <indexterm zone="ch-system-coreutils sha384sum">
918 <primary sortas="b-sha384sum">sha384sum</primary>
923 <varlistentry id="sha512sum">
924 <term><command>sha512sum</command></term>
926 <para>Prints or checks 512-bit Secure Hash Algorithm checksums</para>
927 <indexterm zone="ch-system-coreutils sha512sum">
928 <primary sortas="b-sha512sum">sha512sum</primary>
933 <varlistentry id="shred">
934 <term><command>shred</command></term>
936 <para>Overwrites the given files repeatedly with complex patterns,
937 making it difficult to recover the data</para>
938 <indexterm zone="ch-system-coreutils shred">
939 <primary sortas="b-shred">shred</primary>
944 <varlistentry id="shuf">
945 <term><command>shuf</command></term>
947 <para>Shuffles lines of text</para>
948 <indexterm zone="ch-system-coreutils shuf">
949 <primary sortas="b-shuf">shuf</primary>
954 <varlistentry id="sleep">
955 <term><command>sleep</command></term>
957 <para>Pauses for the given amount of time</para>
958 <indexterm zone="ch-system-coreutils sleep">
959 <primary sortas="b-sleep">sleep</primary>
964 <varlistentry id="sort">
965 <term><command>sort</command></term>
967 <para>Sorts the lines from the given files</para>
968 <indexterm zone="ch-system-coreutils sort">
969 <primary sortas="b-sort">sort</primary>
974 <varlistentry id="split">
975 <term><command>split</command></term>
977 <para>Splits the given file into pieces, by size or by number of
979 <indexterm zone="ch-system-coreutils split">
980 <primary sortas="b-split">split</primary>
985 <varlistentry id="stat">
986 <term><command>stat</command></term>
988 <para>Displays file or filesystem status</para>
989 <indexterm zone="ch-system-coreutils stat">
990 <primary sortas="b-stat">stat</primary>
995 <varlistentry id="stdbuf">
996 <term><command>stdbuf</command></term>
998 <para>Runs commands with altered buffering operations for its standard
1000 <indexterm zone="ch-system-coreutils stdbuf">
1001 <primary sortas="b-stdbuf">stdbuf</primary>
1006 <varlistentry id="stty">
1007 <term><command>stty</command></term>
1009 <para>Sets or reports terminal line settings</para>
1010 <indexterm zone="ch-system-coreutils stty">
1011 <primary sortas="b-stty">stty</primary>
1016 <varlistentry id="sum">
1017 <term><command>sum</command></term>
1019 <para>Prints checksum and block counts for each given file</para>
1020 <indexterm zone="ch-system-coreutils sum">
1021 <primary sortas="b-sum">sum</primary>
1026 <varlistentry id="sync">
1027 <term><command>sync</command></term>
1029 <para>Flushes file system buffers; it forces changed blocks to disk
1030 and updates the super block</para>
1031 <indexterm zone="ch-system-coreutils sync">
1032 <primary sortas="b-sync">sync</primary>
1037 <varlistentry id="tac">
1038 <term><command>tac</command></term>
1040 <para>Concatenates the given files in reverse</para>
1041 <indexterm zone="ch-system-coreutils tac">
1042 <primary sortas="b-tac">tac</primary>
1047 <varlistentry id="tail">
1048 <term><command>tail</command></term>
1050 <para>Prints the last ten lines (or the given number of lines) of each
1052 <indexterm zone="ch-system-coreutils tail">
1053 <primary sortas="b-tail">tail</primary>
1058 <varlistentry id="tee">
1059 <term><command>tee</command></term>
1061 <para>Reads from standard input while writing both to standard output
1062 and to the given files</para>
1063 <indexterm zone="ch-system-coreutils tee">
1064 <primary sortas="b-tee">tee</primary>
1069 <varlistentry id="test">
1070 <term><command>test</command></term>
1072 <para>Compares values and checks file types</para>
1073 <indexterm zone="ch-system-coreutils test">
1074 <primary sortas="b-test">test</primary>
1079 <varlistentry id="timeout">
1080 <term><command>timeout</command></term>
1082 <para>Runs a command with a time limit</para>
1083 <indexterm zone="ch-system-coreutils timeout">
1084 <primary sortas="b-timeout">timeout</primary>
1089 <varlistentry id="touch">
1090 <term><command>touch</command></term>
1092 <para>Changes file timestamps, setting the access and modification
1093 times of the given files to the current time; files that do not exist
1094 are created with zero length</para>
1095 <indexterm zone="ch-system-coreutils touch">
1096 <primary sortas="b-touch">touch</primary>
1101 <varlistentry id="tr">
1102 <term><command>tr</command></term>
1104 <para>Translates, squeezes, and deletes the given characters from
1105 standard input</para>
1106 <indexterm zone="ch-system-coreutils tr">
1107 <primary sortas="b-tr">tr</primary>
1112 <varlistentry id="true">
1113 <term><command>true</command></term>
1115 <para>Does nothing, successfully; it always exits with a status code
1116 indicating success</para>
1117 <indexterm zone="ch-system-coreutils true">
1118 <primary sortas="b-true">true</primary>
1123 <varlistentry id="truncate">
1124 <term><command>truncate</command></term>
1126 <para>Shrinks or expands a file to the specified size</para>
1127 <indexterm zone="ch-system-coreutils truncate">
1128 <primary sortas="b-truncate">truncate</primary>
1133 <varlistentry id="tsort">
1134 <term><command>tsort</command></term>
1136 <para>Performs a topological sort; it writes a completely ordered list
1137 according to the partial ordering in a given file</para>
1138 <indexterm zone="ch-system-coreutils tsort">
1139 <primary sortas="b-tsort">tsort</primary>
1144 <varlistentry id="tty">
1145 <term><command>tty</command></term>
1147 <para>Reports the file name of the terminal connected to standard
1149 <indexterm zone="ch-system-coreutils tty">
1150 <primary sortas="b-tty">tty</primary>
1155 <varlistentry id="uname">
1156 <term><command>uname</command></term>
1158 <para>Reports system information</para>
1159 <indexterm zone="ch-system-coreutils uname">
1160 <primary sortas="b-uname">uname</primary>
1165 <varlistentry id="unexpand">
1166 <term><command>unexpand</command></term>
1168 <para>Converts spaces to tabs</para>
1169 <indexterm zone="ch-system-coreutils unexpand">
1170 <primary sortas="b-unexpand">unexpand</primary>
1175 <varlistentry id="uniq">
1176 <term><command>uniq</command></term>
1178 <para>Discards all but one of successive identical lines</para>
1179 <indexterm zone="ch-system-coreutils uniq">
1180 <primary sortas="b-uniq">uniq</primary>
1185 <varlistentry id="unlink">
1186 <term><command>unlink</command></term>
1188 <para>Removes the given file</para>
1189 <indexterm zone="ch-system-coreutils unlink">
1190 <primary sortas="b-unlink">unlink</primary>
1195 <varlistentry id="users">
1196 <term><command>users</command></term>
1198 <para>Reports the names of the users currently logged on</para>
1199 <indexterm zone="ch-system-coreutils users">
1200 <primary sortas="b-users">users</primary>
1205 <varlistentry id="vdir">
1206 <term><command>vdir</command></term>
1208 <para>Is the same as <command>ls -l</command></para>
1209 <indexterm zone="ch-system-coreutils vdir">
1210 <primary sortas="b-vdir">vdir</primary>
1215 <varlistentry id="wc">
1216 <term><command>wc</command></term>
1218 <para>Reports the number of lines, words, and bytes for each given
1219 file, as well as a total line when more than one file is given</para>
1220 <indexterm zone="ch-system-coreutils wc">
1221 <primary sortas="b-wc">wc</primary>
1226 <varlistentry id="who">
1227 <term><command>who</command></term>
1229 <para>Reports who is logged on</para>
1230 <indexterm zone="ch-system-coreutils who">
1231 <primary sortas="b-who">who</primary>
1236 <varlistentry id="whoami">
1237 <term><command>whoami</command></term>
1239 <para>Reports the user name associated with the current effective
1241 <indexterm zone="ch-system-coreutils whoami">
1242 <primary sortas="b-whoami">whoami</primary>
1247 <varlistentry id="yes">
1248 <term><command>yes</command></term>
1250 <para>Repeatedly outputs <quote>y</quote> or a given string until
1252 <indexterm zone="ch-system-coreutils yes">
1253 <primary sortas="b-yes">yes</primary>
1258 <varlistentry id="libstdbuf">
1259 <term><filename class="libraryfile">libstdbuf</filename></term>
1261 <para>Library used by <command>stdbuf</command></para>
1262 <indexterm zone="ch-system-coreutils libstdbuf">
1263 <primary sortas="c-libstdbuf">libstdbuf</primary>