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

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 8eacec6 was 686839b, checked in by William Harrington <kb0iic@…>, 11 years ago

Add screen tags around userinput test commands and remap userinput for test commands as remap="test".

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