source: chapter06/coreutils.xml@ f0f7ea0

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

Upgrade to coreutils-8.19.
Upgrade to grep-2.14.

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

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