source: clfs-sysroot/BOOK/final-system/common/coreutils.xml@ cec581c

Last change on this file since cec581c was 058bc6b, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Updated Coreutils Programs List.

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