source: chapter06/coreutils.xml@ 2e12af5

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.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 2e12af5 was 2e12af5, checked in by Matthew Burgess <matthew@…>, 13 years ago

Add patch to fix the sparse-fiemap test failure in Coreutils-8.10.

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

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