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

Last change on this file since 3ceffbe was e4f6ff4, checked in by Chris Staub <chris@…>, 18 years ago

Text updates

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