source: chapter06/coreutils.xml@ 1026c1ee

7.5-systemd 7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since 1026c1ee was f0f4140, checked in by Matthew Burgess <matthew@…>, 11 years ago

Merge latest changes from trunk to systemd branch

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

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