source: chapter06/coreutils.xml@ fe05b08

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.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 fe05b08 was fe05b08, checked in by Bruce Dubbs <bdubbs@…>, 14 years ago

Add installed directories information to
each package. Thanks to Chris Staub for the patch.

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

  • Property mode set to 100644
File size: 40.9 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 . </userinput></screen>
107
108 <para>Now run the tests:</para>
109
110<screen><userinput remap="test">su-tools nobody -s /bin/bash -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
111
112 <para>Remove the temporary group:</para>
113
114<screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen>
115
116 <para>Install the package:</para>
117
118<screen><userinput remap="install">make install</userinput></screen>
119
120 <para>Move programs to the locations specified by the FHS:</para>
121
122<screen><userinput remap="install">mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin
123mv -v /usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} /bin
124mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin
125mv -v /usr/bin/chroot /usr/sbin</userinput></screen>
126
127 <para>Some of the scripts in the LFS-Bootscripts package depend on
128 <command>head</command>, <command>sleep</command>, and
129 <command>nice</command>. As <filename class="directory">/usr</filename>
130 may not be available during the early stages of booting, those binaries
131 need to be on the root partition:</para>
132
133<screen><userinput remap="install">mv -v /usr/bin/{head,sleep,nice} /bin</userinput></screen>
134
135 </sect2>
136
137
138 <sect2 id="contents-coreutils" role="content">
139 <title>Contents of Coreutils</title>
140
141 <segmentedlist>
142 <segtitle>Installed programs</segtitle>
143 <segtitle>Installed directory</segtitle>
144
145 <seglistitem>
146 <seg>base64, basename, cat, chcon, chgrp, chmod, chown, chroot, cksum,
147 comm, cp, csplit, cut, date, dd, df, dir, dircolors, dirname, du, echo,
148 env, expand, expr, factor, false, fmt, fold, groups, head, hostid,
149 id, install, join, link, ln, logname, ls, md5sum, mkdir, mkfifo, mknod,
150 mktemp, mv, nice, nl, nohup, nproc, od, paste, pathchk, pinky, pr,
151 printenv, printf, ptx, pwd, readlink, rm, rmdir, runcon, seq, sha1sum,
152 sha224sum, sha256sum, sha384sum, sha512sum, shred, shuf, sleep, sort,
153 split, stat, stdbuf, stty, sum, sync, tac, tail, tee, test, timeout,
154 touch, tr, true, truncate, tsort, tty, uname, unexpand, uniq, unlink,
155 users, vdir, wc, who, whoami, and yes</seg>
156 <seg>/usr/lib/coreutils</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">base64</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="nproc">
663 <term><command>nproc</command></term>
664 <listitem>
665 <para>Prints the number of processing units available to a
666 process</para>
667 <indexterm zone="ch-system-coreutils nproc">
668 <primary sortas="b-nproc">nproc</primary>
669 </indexterm>
670 </listitem>
671 </varlistentry>
672
673 <varlistentry id="od">
674 <term><command>od</command></term>
675 <listitem>
676 <para>Dumps files in octal and other formats</para>
677 <indexterm zone="ch-system-coreutils od">
678 <primary sortas="b-od">od</primary>
679 </indexterm>
680 </listitem>
681 </varlistentry>
682
683 <varlistentry id="paste">
684 <term><command>paste</command></term>
685 <listitem>
686 <para>Merges the given files, joining sequentially corresponding lines
687 side by side, separated by tab characters</para>
688 <indexterm zone="ch-system-coreutils paste">
689 <primary sortas="b-paste">paste</primary>
690 </indexterm>
691 </listitem>
692 </varlistentry>
693
694 <varlistentry id="pathchk">
695 <term><command>pathchk</command></term>
696 <listitem>
697 <para>Checks if file names are valid or portable</para>
698 <indexterm zone="ch-system-coreutils pathchk">
699 <primary sortas="b-pathchk">pathchk</primary>
700 </indexterm>
701 </listitem>
702 </varlistentry>
703
704 <varlistentry id="pinky">
705 <term><command>pinky</command></term>
706 <listitem>
707 <para>Is a lightweight finger client; it reports some information
708 about the given users</para>
709 <indexterm zone="ch-system-coreutils pinky">
710 <primary sortas="b-pinky">pinky</primary>
711 </indexterm>
712 </listitem>
713 </varlistentry>
714
715 <varlistentry id="pr">
716 <term><command>pr</command></term>
717 <listitem>
718 <para>Paginates and columnates files for printing</para>
719 <indexterm zone="ch-system-coreutils pr">
720 <primary sortas="b-pr">pr</primary>
721 </indexterm>
722 </listitem>
723 </varlistentry>
724
725 <varlistentry id="printenv">
726 <term><command>printenv</command></term>
727 <listitem>
728 <para>Prints the environment</para>
729 <indexterm zone="ch-system-coreutils printenv">
730 <primary sortas="b-printenv">printenv</primary>
731 </indexterm>
732 </listitem>
733 </varlistentry>
734
735 <varlistentry id="printf">
736 <term><command>printf</command></term>
737 <listitem>
738 <para>Prints the given arguments according to the given format, much
739 like the C printf function</para>
740 <indexterm zone="ch-system-coreutils printf">
741 <primary sortas="b-printf">printf</primary>
742 </indexterm>
743 </listitem>
744 </varlistentry>
745
746 <varlistentry id="ptx">
747 <term><command>ptx</command></term>
748 <listitem>
749 <para>Produces a permuted index from the contents of the given files,
750 with each keyword in its context</para>
751 <indexterm zone="ch-system-coreutils ptx">
752 <primary sortas="b-ptx">ptx</primary>
753 </indexterm>
754 </listitem>
755 </varlistentry>
756
757 <varlistentry id="pwd">
758 <term><command>pwd</command></term>
759 <listitem>
760 <para>Reports the name of the current working directory</para>
761 <indexterm zone="ch-system-coreutils pwd">
762 <primary sortas="b-pwd">pwd</primary>
763 </indexterm>
764 </listitem>
765 </varlistentry>
766
767 <varlistentry id="readlink">
768 <term><command>readlink</command></term>
769 <listitem>
770 <para>Reports the value of the given symbolic link</para>
771 <indexterm zone="ch-system-coreutils readlink">
772 <primary sortas="b-readlink">readlink</primary>
773 </indexterm>
774 </listitem>
775 </varlistentry>
776
777 <varlistentry id="rm">
778 <term><command>rm</command></term>
779 <listitem>
780 <para>Removes files or directories</para>
781 <indexterm zone="ch-system-coreutils rm">
782 <primary sortas="b-rm">rm</primary>
783 </indexterm>
784 </listitem>
785 </varlistentry>
786
787 <varlistentry id="rmdir">
788 <term><command>rmdir</command></term>
789 <listitem>
790 <para>Removes directories if they are empty</para>
791 <indexterm zone="ch-system-coreutils rmdir">
792 <primary sortas="b-rmdir">rmdir</primary>
793 </indexterm>
794 </listitem>
795 </varlistentry>
796
797 <varlistentry id="runcon">
798 <term><command>runcon</command></term>
799 <listitem>
800 <para>Runs a command with specified security context</para>
801 <indexterm zone="ch-system-coreutils runcon">
802 <primary sortas="b-runcon">runcon</primary>
803 </indexterm>
804 </listitem>
805 </varlistentry>
806
807 <varlistentry id="seq">
808 <term><command>seq</command></term>
809 <listitem>
810 <para>Prints a sequence of numbers within a given range and with a
811 given increment</para>
812 <indexterm zone="ch-system-coreutils seq">
813 <primary sortas="b-seq">seq</primary>
814 </indexterm>
815 </listitem>
816 </varlistentry>
817
818 <varlistentry id="sha1sum">
819 <term><command>sha1sum</command></term>
820 <listitem>
821 <para>Prints or checks 160-bit Secure Hash Algorithm 1 (SHA1)
822 checksums</para>
823 <indexterm zone="ch-system-coreutils sha1sum">
824 <primary sortas="b-sha1sum">sha1sum</primary>
825 </indexterm>
826 </listitem>
827 </varlistentry>
828
829 <varlistentry id="sha224sum">
830 <term><command>sha224sum</command></term>
831 <listitem>
832 <para>Prints or checks 224-bit Secure Hash Algorithm checksums</para>
833 <indexterm zone="ch-system-coreutils sha224sum">
834 <primary sortas="b-sha224sum">sha224sum</primary>
835 </indexterm>
836 </listitem>
837 </varlistentry>
838
839 <varlistentry id="sha256sum">
840 <term><command>sha256sum</command></term>
841 <listitem>
842 <para>Prints or checks 256-bit Secure Hash Algorithm checksums</para>
843 <indexterm zone="ch-system-coreutils sha256sum">
844 <primary sortas="b-sha256sum">sha256sum</primary>
845 </indexterm>
846 </listitem>
847 </varlistentry>
848
849 <varlistentry id="sha384sum">
850 <term><command>sha384sum</command></term>
851 <listitem>
852 <para>Prints or checks 384-bit Secure Hash Algorithm checksums</para>
853 <indexterm zone="ch-system-coreutils sha384sum">
854 <primary sortas="b-sha384sum">sha384sum</primary>
855 </indexterm>
856 </listitem>
857 </varlistentry>
858
859 <varlistentry id="sha512sum">
860 <term><command>sha512sum</command></term>
861 <listitem>
862 <para>Prints or checks 512-bit Secure Hash Algorithm checksums</para>
863 <indexterm zone="ch-system-coreutils sha512sum">
864 <primary sortas="b-sha512sum">sha512sum</primary>
865 </indexterm>
866 </listitem>
867 </varlistentry>
868
869 <varlistentry id="shred">
870 <term><command>shred</command></term>
871 <listitem>
872 <para>Overwrites the given files repeatedly with complex patterns,
873 making it difficult to recover the data</para>
874 <indexterm zone="ch-system-coreutils shred">
875 <primary sortas="b-shred">shred</primary>
876 </indexterm>
877 </listitem>
878 </varlistentry>
879
880 <varlistentry id="shuf">
881 <term><command>shuf</command></term>
882 <listitem>
883 <para>Shuffles lines of text</para>
884 <indexterm zone="ch-system-coreutils shuf">
885 <primary sortas="b-shuf">shuf</primary>
886 </indexterm>
887 </listitem>
888 </varlistentry>
889
890 <varlistentry id="sleep">
891 <term><command>sleep</command></term>
892 <listitem>
893 <para>Pauses for the given amount of time</para>
894 <indexterm zone="ch-system-coreutils sleep">
895 <primary sortas="b-sleep">sleep</primary>
896 </indexterm>
897 </listitem>
898 </varlistentry>
899
900 <varlistentry id="sort">
901 <term><command>sort</command></term>
902 <listitem>
903 <para>Sorts the lines from the given files</para>
904 <indexterm zone="ch-system-coreutils sort">
905 <primary sortas="b-sort">sort</primary>
906 </indexterm>
907 </listitem>
908 </varlistentry>
909
910 <varlistentry id="split">
911 <term><command>split</command></term>
912 <listitem>
913 <para>Splits the given file into pieces, by size or by number of
914 lines</para>
915 <indexterm zone="ch-system-coreutils split">
916 <primary sortas="b-split">split</primary>
917 </indexterm>
918 </listitem>
919 </varlistentry>
920
921 <varlistentry id="stat">
922 <term><command>stat</command></term>
923 <listitem>
924 <para>Displays file or filesystem status</para>
925 <indexterm zone="ch-system-coreutils stat">
926 <primary sortas="b-stat">stat</primary>
927 </indexterm>
928 </listitem>
929 </varlistentry>
930
931 <varlistentry id="stdbuf">
932 <term><command>stdbuf</command></term>
933 <listitem>
934 <para>Runs commands with altered buffering operations for its standard
935 streams</para>
936 <indexterm zone="ch-system-coreutils stdbuf">
937 <primary sortas="b-stdbuf">stdbuf</primary>
938 </indexterm>
939 </listitem>
940 </varlistentry>
941
942 <varlistentry id="stty">
943 <term><command>stty</command></term>
944 <listitem>
945 <para>Sets or reports terminal line settings</para>
946 <indexterm zone="ch-system-coreutils stty">
947 <primary sortas="b-stty">stty</primary>
948 </indexterm>
949 </listitem>
950 </varlistentry>
951
952 <varlistentry id="sum">
953 <term><command>sum</command></term>
954 <listitem>
955 <para>Prints checksum and block counts for each given file</para>
956 <indexterm zone="ch-system-coreutils sum">
957 <primary sortas="b-sum">sum</primary>
958 </indexterm>
959 </listitem>
960 </varlistentry>
961
962 <varlistentry id="sync">
963 <term><command>sync</command></term>
964 <listitem>
965 <para>Flushes file system buffers; it forces changed blocks to disk
966 and updates the super block</para>
967 <indexterm zone="ch-system-coreutils sync">
968 <primary sortas="b-sync">sync</primary>
969 </indexterm>
970 </listitem>
971 </varlistentry>
972
973 <varlistentry id="tac">
974 <term><command>tac</command></term>
975 <listitem>
976 <para>Concatenates the given files in reverse</para>
977 <indexterm zone="ch-system-coreutils tac">
978 <primary sortas="b-tac">tac</primary>
979 </indexterm>
980 </listitem>
981 </varlistentry>
982
983 <varlistentry id="tail">
984 <term><command>tail</command></term>
985 <listitem>
986 <para>Prints the last ten lines (or the given number of lines) of each
987 given file</para>
988 <indexterm zone="ch-system-coreutils tail">
989 <primary sortas="b-tail">tail</primary>
990 </indexterm>
991 </listitem>
992 </varlistentry>
993
994 <varlistentry id="tee">
995 <term><command>tee</command></term>
996 <listitem>
997 <para>Reads from standard input while writing both to standard output
998 and to the given files</para>
999 <indexterm zone="ch-system-coreutils tee">
1000 <primary sortas="b-tee">tee</primary>
1001 </indexterm>
1002 </listitem>
1003 </varlistentry>
1004
1005 <varlistentry id="test">
1006 <term><command>test</command></term>
1007 <listitem>
1008 <para>Compares values and checks file types</para>
1009 <indexterm zone="ch-system-coreutils test">
1010 <primary sortas="b-test">test</primary>
1011 </indexterm>
1012 </listitem>
1013 </varlistentry>
1014
1015 <varlistentry id="timeout">
1016 <term><command>timeout</command></term>
1017 <listitem>
1018 <para>Runs a command with a time limit</para>
1019 <indexterm zone="ch-system-coreutils timeout">
1020 <primary sortas="b-timeout">timeout</primary>
1021 </indexterm>
1022 </listitem>
1023 </varlistentry>
1024
1025 <varlistentry id="touch">
1026 <term><command>touch</command></term>
1027 <listitem>
1028 <para>Changes file timestamps, setting the access and modification
1029 times of the given files to the current time; files that do not exist
1030 are created with zero length</para>
1031 <indexterm zone="ch-system-coreutils touch">
1032 <primary sortas="b-touch">touch</primary>
1033 </indexterm>
1034 </listitem>
1035 </varlistentry>
1036
1037 <varlistentry id="tr">
1038 <term><command>tr</command></term>
1039 <listitem>
1040 <para>Translates, squeezes, and deletes the given characters from
1041 standard input</para>
1042 <indexterm zone="ch-system-coreutils tr">
1043 <primary sortas="b-tr">tr</primary>
1044 </indexterm>
1045 </listitem>
1046 </varlistentry>
1047
1048 <varlistentry id="true">
1049 <term><command>true</command></term>
1050 <listitem>
1051 <para>Does nothing, successfully; it always exits with a status code
1052 indicating success</para>
1053 <indexterm zone="ch-system-coreutils true">
1054 <primary sortas="b-true">true</primary>
1055 </indexterm>
1056 </listitem>
1057 </varlistentry>
1058
1059 <varlistentry id="truncate">
1060 <term><command>truncate</command></term>
1061 <listitem>
1062 <para>Shrinks or expands a file to the specified size</para>
1063 <indexterm zone="ch-system-coreutils truncate">
1064 <primary sortas="b-truncate">truncate</primary>
1065 </indexterm>
1066 </listitem>
1067 </varlistentry>
1068
1069 <varlistentry id="tsort">
1070 <term><command>tsort</command></term>
1071 <listitem>
1072 <para>Performs a topological sort; it writes a completely ordered list
1073 according to the partial ordering in a given file</para>
1074 <indexterm zone="ch-system-coreutils tsort">
1075 <primary sortas="b-tsort">tsort</primary>
1076 </indexterm>
1077 </listitem>
1078 </varlistentry>
1079
1080 <varlistentry id="tty">
1081 <term><command>tty</command></term>
1082 <listitem>
1083 <para>Reports the file name of the terminal connected to standard
1084 input</para>
1085 <indexterm zone="ch-system-coreutils tty">
1086 <primary sortas="b-tty">tty</primary>
1087 </indexterm>
1088 </listitem>
1089 </varlistentry>
1090
1091 <varlistentry id="uname">
1092 <term><command>uname</command></term>
1093 <listitem>
1094 <para>Reports system information</para>
1095 <indexterm zone="ch-system-coreutils uname">
1096 <primary sortas="b-uname">uname</primary>
1097 </indexterm>
1098 </listitem>
1099 </varlistentry>
1100
1101 <varlistentry id="unexpand">
1102 <term><command>unexpand</command></term>
1103 <listitem>
1104 <para>Converts spaces to tabs</para>
1105 <indexterm zone="ch-system-coreutils unexpand">
1106 <primary sortas="b-unexpand">unexpand</primary>
1107 </indexterm>
1108 </listitem>
1109 </varlistentry>
1110
1111 <varlistentry id="uniq">
1112 <term><command>uniq</command></term>
1113 <listitem>
1114 <para>Discards all but one of successive identical lines</para>
1115 <indexterm zone="ch-system-coreutils uniq">
1116 <primary sortas="b-uniq">uniq</primary>
1117 </indexterm>
1118 </listitem>
1119 </varlistentry>
1120
1121 <varlistentry id="unlink">
1122 <term><command>unlink</command></term>
1123 <listitem>
1124 <para>Removes the given file</para>
1125 <indexterm zone="ch-system-coreutils unlink">
1126 <primary sortas="b-unlink">unlink</primary>
1127 </indexterm>
1128 </listitem>
1129 </varlistentry>
1130
1131 <varlistentry id="users">
1132 <term><command>users</command></term>
1133 <listitem>
1134 <para>Reports the names of the users currently logged on</para>
1135 <indexterm zone="ch-system-coreutils users">
1136 <primary sortas="b-users">users</primary>
1137 </indexterm>
1138 </listitem>
1139 </varlistentry>
1140
1141 <varlistentry id="vdir">
1142 <term><command>vdir</command></term>
1143 <listitem>
1144 <para>Is the same as <command>ls -l</command></para>
1145 <indexterm zone="ch-system-coreutils vdir">
1146 <primary sortas="b-vdir">vdir</primary>
1147 </indexterm>
1148 </listitem>
1149 </varlistentry>
1150
1151 <varlistentry id="wc">
1152 <term><command>wc</command></term>
1153 <listitem>
1154 <para>Reports the number of lines, words, and bytes for each given
1155 file, as well as a total line when more than one file is given</para>
1156 <indexterm zone="ch-system-coreutils wc">
1157 <primary sortas="b-wc">wc</primary>
1158 </indexterm>
1159 </listitem>
1160 </varlistentry>
1161
1162 <varlistentry id="who">
1163 <term><command>who</command></term>
1164 <listitem>
1165 <para>Reports who is logged on</para>
1166 <indexterm zone="ch-system-coreutils who">
1167 <primary sortas="b-who">who</primary>
1168 </indexterm>
1169 </listitem>
1170 </varlistentry>
1171
1172 <varlistentry id="whoami">
1173 <term><command>whoami</command></term>
1174 <listitem>
1175 <para>Reports the user name associated with the current effective
1176 user ID</para>
1177 <indexterm zone="ch-system-coreutils whoami">
1178 <primary sortas="b-whoami">whoami</primary>
1179 </indexterm>
1180 </listitem>
1181 </varlistentry>
1182
1183 <varlistentry id="yes">
1184 <term><command>yes</command></term>
1185 <listitem>
1186 <para>Repeatedly outputs <quote>y</quote> or a given string until
1187 killed</para>
1188 <indexterm zone="ch-system-coreutils yes">
1189 <primary sortas="b-yes">yes</primary>
1190 </indexterm>
1191 </listitem>
1192 </varlistentry>
1193
1194 </variablelist>
1195
1196 </sect2>
1197
1198</sect1>
Note: See TracBrowser for help on using the repository browser.