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

Last change on this file since 5dcf0ee was fef8487, checked in by Joe Ciccone <jciccone@…>, 15 years ago

Even More Text Updates.

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