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

Last change on this file since 6c341df was b16b4dc, checked in by Jim Gifford <clfs@…>, 18 years ago

r3863@server (orig r1740): jciccone | 2006-06-07 15:51:19 -0700
Added [ to coreutils list.

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