source: chapter06/coreutils.xml@ 90aae6b

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.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 90aae6b was 90aae6b, checked in by Matthew Burgess <matthew@…>, 15 years ago

Update various packages' list of installed programs and libraries. Many thanks to Chris Staub for the patch. Fixes #2371.

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

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