source: BOOK/final-system/common/coreutils.xml@ dd1df496

systemd
Last change on this file since dd1df496 was 7cd7f99, checked in by Chris Staub <chris@…>, 9 years ago

Put one configure option per line

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