source: chapter06/coreutils.xml@ f4c628c

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since f4c628c was f4c628c, checked in by Jeremy Huntwork <jhuntwork@…>, 17 years ago

Install su from coreutils in chapter 5 as su-tools. Use su-tools to run test suites from coreutils and bash as user nobody. Fixes #1877

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8006 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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