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

Last change on this file since 89d13a9 was 0c2cb0b, checked in by Joe Ciccone <jciccone@…>, 18 years ago

Fix a typo.

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