source: final-system/common/coreutils.xml@ de6bc65

Last change on this file since de6bc65 was de6bc65, checked in by Jim Gifford <clfs@…>, 19 years ago

r1117@server (orig r1115): chris | 2006-01-31 11:20:30 -0800
Corrected coreutils instructions for moving programs to /bin, and added more -v switches

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