source: clfs-sysroot/BOOK/final-system/common/coreutils.xml @ e74e775

Last change on this file since e74e775 was e74e775, checked in by Joe Ciccone <jciccone@…>, 15 years ago

Update coreutils man page regeneration problem.
change the permissions on Makefile.SH in perl so that the sed correctly applies.

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