source: chapter06/coreutils.xml@ 1dc34de7

6.0
Last change on this file since 1dc34de7 was ef13657, checked in by Gerard Beekmans <gerard@…>, 20 years ago

Completed global edits for upcoming 6.0 release

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

  • Property mode set to 100644
File size: 28.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-coreutils" xreflabel="Coreutils" role="wrap">
7<title>Coreutils-&coreutils-version;</title>
8<?dbhtml filename="coreutils.html"?>
9
10<indexterm zone="ch-system-coreutils"><primary sortas="a-Coreutils">Coreutils</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The Coreutils package contains utilities for showing and setting the
14basic system characteristics.</para>
15
16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.9 SBU</seg><seg>69 MB</seg></seglistitem>
20</segmentedlist>
21
22<segmentedlist>
23<segtitle>Coreutils installation depends on</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils, GCC,
25Gettext, Glibc, Grep, Make, Perl, Sed</seg></seglistitem>
26</segmentedlist>
27</sect2>
28
29<sect2 role="installation">
30<title>Installation of Coreutils</title>
31
32<para>A known issue with the <command>uname</command> program from
33this package is that the <parameter>-p</parameter> switch always
34returns <computeroutput>unknown</computeroutput>. The following patch
35fixes this behavior for Intel architectures:</para>
36
37<screen><userinput>patch -Np1 -i ../coreutils-&coreutils-version;-uname-2.patch</userinput></screen>
38
39<para>Prevent Coreutils from installing binaries that will be later be
40installed by other packages:</para>
41
42<screen><userinput>patch -Np1 -i ../coreutils-&coreutils-version;-suppress_uptime_kill_su-1.patch</userinput></screen>
43
44<para>Now prepare Coreutils for compilation:</para>
45
46<screen><userinput>DEFAULT_POSIX2_VERSION=199209 ./configure --prefix=/usr</userinput></screen>
47
48<para>Compile the package:</para>
49
50<screen><userinput>make</userinput></screen>
51
52<para>The test suite of Coreutils makes several assumptions about the
53presence of files and users that are not valid this early in the LFS
54build. Therefore, additional items need to be set up before running
55the tests. Skip down to <quote>Install the package</quote> if you are
56not running the test suite.</para>
57
58<para>Create two dummy groups and a dummy user name:</para>
59
60<screen><userinput>echo "dummy1:x:1000" &gt;&gt; /etc/group
61echo "dummy2:x:1001:dummy" &gt;&gt; /etc/group
62echo "dummy:x:1000:1000:::/bin/bash" &gt;&gt; /etc/passwd</userinput></screen>
63
64<para>Now the test suite is ready to be run. First, run the tests that
65are meant to be run as user <emphasis>root</emphasis>:</para>
66
67<screen><userinput>make NON_ROOT_USERNAME=dummy check-root</userinput></screen>
68
69<para>Then run the remainder of the tests as the
70<emphasis>dummy</emphasis> user:</para>
71
72<screen><userinput>src/su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
73
74<para>When testing is complete, remove the dummy user and
75groups:</para>
76
77<screen><userinput>sed -i '/dummy/d' /etc/passwd /etc/group</userinput></screen>
78
79<para>Install the package:</para>
80
81<screen><userinput>make install</userinput></screen>
82
83<para>Move programs to the proper locations:</para>
84
85<screen><userinput>mv /usr/bin/{[,basename,cat,chgrp,chmod,chown,cp,dd,df} /bin
86mv /usr/bin/{date,echo,false,head,hostname,install,ln} /bin
87mv /usr/bin/{ls,mkdir,mknod,mv,pwd,rm,rmdir,sync} /bin
88mv /usr/bin/{sleep,stty,test,touch,true,uname} /bin
89mv /usr/bin/chroot /usr/sbin</userinput></screen>
90
91<para>Finally, create a symlink to be FHS-compliant:</para>
92
93<screen><userinput>ln -s ../../bin/install /usr/bin</userinput></screen>
94
95</sect2>
96
97
98<sect2 id="contents-coreutils" role="content"><title>Contents of Coreutils</title>
99
100<segmentedlist>
101<segtitle>Installed programs</segtitle>
102<seglistitem><seg>basename, cat, chgrp, chmod,
103chown, chroot, cksum, comm, cp, csplit, cut, date, dd, df, dir, dircolors,
104dirname, du, echo, env, expand, expr, factor, false, fmt, fold, groups, head,
105hostid, hostname, id, install, join, link, ln, logname, ls, md5sum,
106mkdir, mkfifo, mknod, mv, nice, nl, nohup, od, paste, pathchk, pinky, pr,
107printenv, printf, ptx, pwd, readlink, rm, rmdir, seq, sha1sum, shred, sleep,
108sort, split, stat, stty, su, sum, sync, tac, tail, tee, test, touch, tr, true,
109tsort, tty, uname, unexpand, uniq, unlink, uptime, users, vdir, wc, who,
110whoami and yes</seg></seglistitem>
111</segmentedlist>
112
113<variablelist><title>Short descriptions</title>
114
115<varlistentry id="basename">
116<term><command>basename</command></term>
117<listitem>
118<indexterm zone="ch-system-coreutils basename"><primary sortas="b-basename">basename</primary></indexterm>
119<para>strips any path and a given suffix from a given file name.</para>
120</listitem>
121</varlistentry>
122
123<varlistentry id="cat">
124<term><command>cat</command></term>
125<listitem>
126<indexterm zone="ch-system-coreutils cat"><primary sortas="b-cat">cat</primary></indexterm>
127<para>concatenates files to standard output.</para>
128</listitem>
129</varlistentry>
130
131<varlistentry id="chgrp">
132<term><command>chgrp</command></term>
133<listitem>
134<indexterm zone="ch-system-coreutils chgrp"><primary sortas="b-chgrp">chgrp</primary></indexterm>
135<para>changes the group ownership of each given file to the given
136group. The group can either be either given a name or a numeric
137ID.</para>
138</listitem>
139</varlistentry>
140
141<varlistentry id="chmod">
142<term><command>chmod</command></term>
143<listitem>
144<indexterm zone="ch-system-coreutils chmod"><primary sortas="b-chmod">chmod</primary></indexterm>
145<para>changes the permissions of each file to the given mode. The mode
146can be either a symbolic representation of the changes to make or an
147octal number representing the new permissions.</para>
148</listitem>
149</varlistentry>
150
151<varlistentry id="chown">
152<term><command>chown</command></term>
153<listitem>
154<indexterm zone="ch-system-coreutils chown"><primary sortas="b-chown">chown</primary></indexterm>
155<para>changes the user and/or group ownership of
156each given file to the given user/group pair.</para>
157</listitem>
158</varlistentry>
159
160<varlistentry id="chroot">
161<term><command>chroot</command></term>
162<listitem>
163<indexterm zone="ch-system-coreutils chroot"><primary sortas="b-chroot">chroot</primary></indexterm>
164<para>runs a given command with the specified directory as the
165<filename class="directory">/</filename> directory. The given command can be an interactive shell.
166On most systems only <emphasis>root</emphasis> can do this.</para>
167</listitem>
168</varlistentry>
169
170<varlistentry id="cksum">
171<term><command>cksum</command></term>
172<listitem>
173<indexterm zone="ch-system-coreutils cksum"><primary sortas="b-cksum">cksum</primary></indexterm>
174<para>prints the Cyclic Redundancy Check (CRC) checksum and the byte
175counts of each specified file.</para>
176</listitem>
177</varlistentry>
178
179<varlistentry id="comm">
180<term><command>comm</command></term>
181<listitem>
182<indexterm zone="ch-system-coreutils comm"><primary sortas="b-comm">comm</primary></indexterm>
183<para>compares two sorted files, outputting in three columns the lines
184that are unique and the lines that are common.</para>
185</listitem>
186</varlistentry>
187
188<varlistentry id="cp">
189<term><command>cp</command></term>
190<listitem>
191<indexterm zone="ch-system-coreutils cp"><primary sortas="b-cp">cp</primary></indexterm>
192<para>copies files.</para>
193</listitem>
194</varlistentry>
195
196<varlistentry id="csplit">
197<term><command>csplit</command></term>
198<listitem>
199<indexterm zone="ch-system-coreutils csplit"><primary sortas="b-csplit">csplit</primary></indexterm>
200<para>splits a given file into several new files, separating them
201according to given patterns or line numbers and outputting the byte
202count of each new file.</para>
203</listitem>
204</varlistentry>
205
206<varlistentry id="cut">
207<term><command>cut</command></term>
208<listitem>
209<indexterm zone="ch-system-coreutils cut"><primary sortas="b-cut">cut</primary></indexterm>
210<para>prints sections of lines, selecting the parts according to given
211fields or positions.</para>
212</listitem>
213</varlistentry>
214
215<varlistentry id="date">
216<term><command>date</command></term>
217<listitem>
218<indexterm zone="ch-system-coreutils date"><primary sortas="b-date">date</primary></indexterm>
219<para>displays the current time in the given format, or sets the
220system date.</para>
221</listitem>
222</varlistentry>
223
224<varlistentry id="dd">
225<term><command>dd</command> </term>
226<listitem>
227<indexterm zone="ch-system-coreutils dd"><primary sortas="b-dd">dd</primary></indexterm>
228<para>copies a file using the given block size and count, while
229optionally performing conversions on it.</para>
230</listitem>
231</varlistentry>
232
233<varlistentry id="df">
234<term><command>df</command></term>
235<listitem>
236<indexterm zone="ch-system-coreutils df"><primary sortas="b-df">df</primary></indexterm>
237<para>reports the amount of disk space available (and used) on all
238mounted file systems, or only on the file systems holding the selected
239files.</para>
240</listitem>
241</varlistentry>
242
243<varlistentry id="dir">
244<term><command>dir</command></term>
245<listitem>
246<indexterm zone="ch-system-coreutils dir"><primary sortas="b-dir">dir</primary></indexterm>
247<para>lists the contents of each given directory. (the same as
248the <command>ls</command> command).</para>
249</listitem>
250</varlistentry>
251
252<varlistentry id="dircolors">
253<term><command>dircolors</command></term>
254<listitem>
255<indexterm zone="ch-system-coreutils dircolors"><primary sortas="b-dircolors">dircolors</primary></indexterm>
256<para>outputs commands to set the <emphasis>LS_COLOR</emphasis>
257environment variable to change the color scheme used by
258<command>ls</command>.</para>
259</listitem>
260</varlistentry>
261
262<varlistentry id="dirname">
263<term><command>dirname</command></term>
264<listitem>
265<indexterm zone="ch-system-coreutils dirname"><primary sortas="b-dirname">dirname</primary></indexterm>
266<para>strips the non-directory suffix from a file name.</para>
267</listitem>
268</varlistentry>
269
270<varlistentry id="du">
271<term><command>du</command></term>
272<listitem>
273<indexterm zone="ch-system-coreutils du"><primary sortas="b-du">du</primary></indexterm>
274<para>reports the amount of disk space used by the current directory,
275by each of the given directories (including all subdirectories), or by
276each of the given files.</para>
277</listitem>
278</varlistentry>
279
280<varlistentry id="echo">
281<term><command>echo</command></term>
282<listitem>
283<indexterm zone="ch-system-coreutils echo"><primary sortas="b-echo">echo</primary></indexterm>
284<para>displays the given strings.</para>
285</listitem>
286</varlistentry>
287
288<varlistentry id="env">
289<term><command>env</command></term>
290<listitem>
291<indexterm zone="ch-system-coreutils env"><primary sortas="b-env">env</primary></indexterm>
292<para>runs a command in a modified environment.</para>
293</listitem>
294</varlistentry>
295
296<varlistentry id="expand">
297<term><command>expand</command></term>
298<listitem>
299<indexterm zone="ch-system-coreutils expand"><primary sortas="b-expand">expand</primary></indexterm>
300<para>converts tabs to spaces.</para>
301</listitem>
302</varlistentry>
303
304<varlistentry id="expr">
305<term><command>expr</command></term>
306<listitem>
307<indexterm zone="ch-system-coreutils expr"><primary sortas="b-expr">expr</primary></indexterm>
308<para>evaluates expressions.</para>
309</listitem>
310</varlistentry>
311
312<varlistentry id="factor">
313<term><command>factor</command></term>
314<listitem>
315<indexterm zone="ch-system-coreutils factor"><primary sortas="b-factor">factor</primary></indexterm>
316<para>prints the prime factors of all specified integer numbers.</para>
317</listitem>
318</varlistentry>
319
320<varlistentry id="false">
321<term><command>false</command></term>
322<listitem>
323<indexterm zone="ch-system-coreutils false"><primary sortas="b-false">false</primary></indexterm>
324<para>does nothing, unsuccessfully. It always exits with a status code
325indicating failure.</para>
326</listitem>
327</varlistentry>
328
329<varlistentry id="mt">
330<term><command>fmt</command></term>
331<listitem>
332<indexterm zone="ch-system-coreutils mt"><primary sortas="b-mt">mt</primary></indexterm>
333<para>reformats the paragraphs in the given files.</para>
334</listitem>
335</varlistentry>
336
337<varlistentry id="fold">
338<term><command>fold</command></term>
339<listitem>
340<indexterm zone="ch-system-coreutils fold"><primary sortas="b-fold">fold</primary></indexterm>
341<para>wraps the lines in the given files.</para>
342</listitem>
343</varlistentry>
344
345<varlistentry id="groups-coreutils">
346<term><command>groups</command></term>
347<listitem>
348<indexterm zone="ch-system-coreutils groups-coreutils"><primary sortas="b-groups-coreutils">groups</primary></indexterm>
349<para>reports a user's group memberships.</para>
350</listitem>
351</varlistentry>
352
353<varlistentry id="head">
354<term><command>head</command></term>
355<listitem>
356<indexterm zone="ch-system-coreutils head"><primary sortas="b-head">head</primary></indexterm>
357<para>prints the first ten lines (or the given number of lines) of each given file.</para>
358</listitem>
359</varlistentry>
360
361<varlistentry id="hostid">
362<term><command>hostid</command></term>
363<listitem>
364<indexterm zone="ch-system-coreutils hostid"><primary sortas="b-hostid">hostid</primary></indexterm>
365<para>reports the numeric identifier (in hexadecimal) of the host.</para>
366</listitem>
367</varlistentry>
368
369<varlistentry id="hostname">
370<term><command>hostname</command></term>
371<listitem>
372<indexterm zone="ch-system-coreutils hostname"><primary sortas="b-hostname">hostname</primary></indexterm>
373<para>reports or sets the name of the host.</para>
374</listitem>
375</varlistentry>
376
377<varlistentry id="id">
378<term><command>id</command></term>
379<listitem>
380<indexterm zone="ch-system-coreutils id"><primary sortas="b-id">id</primary></indexterm>
381<para>reports the effective user ID, group ID, and
382group memberships of the current user or specified user.</para>
383</listitem>
384</varlistentry>
385
386<varlistentry id="install">
387<term><command>install</command> </term>
388<listitem>
389<indexterm zone="ch-system-coreutils install"><primary sortas="b-install">install</primary></indexterm>
390<para>copies files while setting their
391permission modes and, if possible, their owner and group.</para>
392</listitem>
393</varlistentry>
394
395<varlistentry id="join">
396<term><command>join</command></term>
397<listitem>
398<indexterm zone="ch-system-coreutils join"><primary sortas="b-join">join</primary></indexterm>
399<para>joins the lines that have identical join fields from two
400separate files.</para>
401</listitem>
402</varlistentry>
403
404<varlistentry id="link">
405<term><command>link</command></term>
406<listitem>
407<indexterm zone="ch-system-coreutils link"><primary sortas="b-link">link</primary></indexterm>
408<para>creates a hard link with the given name to a file.</para>
409</listitem>
410</varlistentry>
411
412<varlistentry id="ln">
413<term><command>ln</command></term>
414<listitem>
415<indexterm zone="ch-system-coreutils ln"><primary sortas="b-ln">ln</primary></indexterm>
416<para>makes hard links or soft (symbolic) links between files.</para>
417</listitem>
418</varlistentry>
419
420<varlistentry id="logname">
421<term><command>logname</command></term>
422<listitem>
423<indexterm zone="ch-system-coreutils logname"><primary sortas="b-logname">logname</primary></indexterm>
424<para>reports the current user's login name.</para>
425</listitem>
426</varlistentry>
427
428<varlistentry id="ls">
429<term><command>ls</command></term>
430<listitem>
431<indexterm zone="ch-system-coreutils ls"><primary sortas="b-ls">ls</primary></indexterm>
432<para>lists the contents of each given directory.</para>
433</listitem>
434</varlistentry>
435
436<varlistentry id="md5sum">
437<term><command>md5sum</command></term>
438<listitem>
439<indexterm zone="ch-system-coreutils md5sum"><primary sortas="b-md5sum">md5sum</primary></indexterm>
440<para>reports or checks Message Digest 5 (MD5) checksums.</para>
441</listitem>
442</varlistentry>
443
444<varlistentry id="mkdir">
445<term><command>mkdir</command></term>
446<listitem>
447<indexterm zone="ch-system-coreutils mkdir"><primary sortas="b-mkdir">mkdir</primary></indexterm>
448<para>creates directories with the given names.</para>
449</listitem>
450</varlistentry>
451
452<varlistentry id="mkfifo">
453<term><command>mkfifo</command></term>
454<listitem>
455<indexterm zone="ch-system-coreutils mkfifo"><primary sortas="b-mkfifo">mkfifo</primary></indexterm>
456<para>creates First-In, First-Outs (FIFOs), a <quote>named
457pipe</quote> in UNIX parlance, with the given names.</para>
458</listitem>
459</varlistentry>
460
461<varlistentry id="mknod">
462<term><command>mknod</command></term>
463<listitem>
464<indexterm zone="ch-system-coreutils mknod"><primary sortas="b-mknod">mknod</primary></indexterm>
465<para>creates device nodes with the given names. A device node is a
466character special file, a block special file, or a FIFO.</para>
467</listitem>
468</varlistentry>
469
470<varlistentry id="mv">
471<term><command>mv</command></term>
472<listitem>
473<indexterm zone="ch-system-coreutils mv"><primary sortas="b-mv">mv</primary></indexterm>
474<para>moves or renames files or directories.</para>
475</listitem>
476</varlistentry>
477
478<varlistentry id="nice">
479<term><command>nice</command></term>
480<listitem>
481<indexterm zone="ch-system-coreutils nice"><primary sortas="b-nice">nice</primary></indexterm>
482<para>runs a program with modified scheduling priority.</para>
483</listitem>
484</varlistentry>
485
486<varlistentry id="nl">
487<term><command>nl</command></term>
488<listitem>
489<indexterm zone="ch-system-coreutils nl"><primary sortas="b-nl">nl</primary></indexterm>
490<para>numbers the lines from the given files.</para>
491</listitem>
492</varlistentry>
493
494<varlistentry id="nohup">
495<term><command>nohup</command></term>
496<listitem>
497<indexterm zone="ch-system-coreutils nohup"><primary sortas="b-nohup">nohup</primary></indexterm>
498<para>runs a command immune to hangups, with its output redirected to
499a log file.</para>
500</listitem>
501</varlistentry>
502
503<varlistentry id="od">
504<term><command>od</command></term>
505<listitem>
506<indexterm zone="ch-system-coreutils od"><primary sortas="b-od">od</primary></indexterm>
507<para>dumps files in octal and other formats.</para>
508</listitem>
509</varlistentry>
510
511<varlistentry id="paste">
512<term><command>paste</command></term>
513<listitem>
514<indexterm zone="ch-system-coreutils paste"><primary sortas="b-paste">paste</primary></indexterm>
515<para>merges the given files, joining sequentially corresponding lines
516side by side, separated by tab characters.</para>
517</listitem>
518</varlistentry>
519
520<varlistentry id="pathchk">
521<term><command>pathchk</command></term>
522<listitem>
523<indexterm zone="ch-system-coreutils pathchk"><primary sortas="b-pathchk">pathchk</primary></indexterm>
524<para>checks if file names are valid or portable.</para>
525</listitem>
526</varlistentry>
527
528<varlistentry id="pinky">
529<term><command>pinky</command></term>
530<listitem>
531<indexterm zone="ch-system-coreutils pinky"><primary sortas="b-pinky">pinky</primary></indexterm>
532<para>is a lightweight finger client. It reports some information about the given users.</para>
533</listitem>
534</varlistentry>
535
536<varlistentry id="pr">
537<term><command>pr</command></term>
538<listitem>
539<indexterm zone="ch-system-coreutils pr"><primary sortas="b-pr">pr</primary></indexterm>
540<para>paginates and columnates files for printing.</para>
541</listitem>
542</varlistentry>
543
544<varlistentry id="printenv">
545<term><command>printenv</command></term>
546<listitem>
547<indexterm zone="ch-system-coreutils printenv"><primary sortas="b-printenv">printenv</primary></indexterm>
548<para>prints the environment.</para>
549</listitem>
550</varlistentry>
551
552<varlistentry id="printf">
553<term><command>printf</command></term>
554<listitem>
555<indexterm zone="ch-system-coreutils printf"><primary sortas="b-printf">printf</primary></indexterm>
556<para>prints the given arguments according to the given format, much
557like the C printf function.</para>
558</listitem>
559</varlistentry>
560
561<varlistentry id="ptx">
562<term><command>ptx</command></term>
563<listitem>
564<indexterm zone="ch-system-coreutils ptx"><primary sortas="b-ptx">ptx</primary></indexterm>
565<para>produces a permuted index from the contents of the given files,
566with each keyword in its context.</para>
567</listitem>
568</varlistentry>
569
570<varlistentry id="pwd">
571<term><command>pwd</command></term>
572<listitem>
573<indexterm zone="ch-system-coreutils pwd"><primary sortas="b-pwd">pwd</primary></indexterm>
574<para>reports the name of the current working directory.</para>
575</listitem>
576</varlistentry>
577
578<varlistentry id="readlink">
579<term><command>readlink</command></term>
580<listitem>
581<indexterm zone="ch-system-coreutils readlink"><primary sortas="b-readlink">readlink</primary></indexterm>
582<para>reports the value of the given symbolic link.</para>
583</listitem>
584</varlistentry>
585
586<varlistentry id="rm">
587<term><command>rm</command></term>
588<listitem>
589<indexterm zone="ch-system-coreutils rm"><primary sortas="b-rm">rm</primary></indexterm>
590<para>removes files or directories.</para>
591</listitem>
592</varlistentry>
593
594<varlistentry id="rmdir">
595<term><command>rmdir</command></term>
596<listitem>
597<indexterm zone="ch-system-coreutils rmdir"><primary sortas="b-rmdir">rmdir</primary></indexterm>
598<para>removes directories if they are empty.</para>
599</listitem>
600</varlistentry>
601
602<varlistentry id="seq">
603<term><command>seq</command></term>
604<listitem>
605<indexterm zone="ch-system-coreutils seq"><primary sortas="b-seq">seq</primary></indexterm>
606<para>prints a sequence of numbers within a given range and with a
607given increment.</para>
608</listitem>
609</varlistentry>
610
611<varlistentry id="sha1sum">
612<term><command>sha1sum</command></term>
613<listitem>
614<indexterm zone="ch-system-coreutils sha1sum"><primary sortas="b-sha1sum">sha1sum</primary></indexterm>
615<para>prints or checks 160-bit Secure Hash Algorithm 1 (SHA1) checksums.</para>
616</listitem>
617</varlistentry>
618
619<varlistentry id="shred">
620<term><command>shred</command></term>
621<listitem>
622<indexterm zone="ch-system-coreutils shred"><primary sortas="b-shred">shred</primary></indexterm>
623<para>overwrites the given files repeatedly with complex patterns,
624making it difficult to recover the data.</para>
625</listitem>
626</varlistentry>
627
628<varlistentry id="sleep">
629<term><command>sleep</command></term>
630<listitem>
631<indexterm zone="ch-system-coreutils sleep"><primary sortas="b-sleep">sleep</primary></indexterm>
632<para>pauses for the given amount of time.</para>
633</listitem>
634</varlistentry>
635
636<varlistentry id="sort">
637<term><command>sort</command></term>
638<listitem>
639<indexterm zone="ch-system-coreutils sort"><primary sortas="b-sort">sort</primary></indexterm>
640<para>sorts the lines from the given files.</para>
641</listitem>
642</varlistentry>
643
644<varlistentry id="split">
645<term><command>split</command></term>
646<listitem>
647<indexterm zone="ch-system-coreutils split"><primary sortas="b-split">split</primary></indexterm>
648<para>splits the given file into pieces, by size or by number of lines.</para>
649</listitem>
650</varlistentry>
651
652<varlistentry id="stty">
653<term><command>stty</command></term>
654<listitem>
655<indexterm zone="ch-system-coreutils stty"><primary sortas="b-stty">stty</primary></indexterm>
656<para>sets or reports terminal line settings.</para>
657</listitem>
658</varlistentry>
659
660<varlistentry id="su">
661<term><command>su</command></term>
662<listitem>
663<indexterm zone="ch-system-coreutils su"><primary sortas="b-su">su</primary></indexterm>
664<para>runs a shell with substitute user and group IDs.</para>
665</listitem>
666</varlistentry>
667
668<varlistentry id="sum">
669<term><command>sum</command></term>
670<listitem>
671<indexterm zone="ch-system-coreutils sum"><primary sortas="b-sum">sum</primary></indexterm>
672<para>prints checksum and block counts for each given file.</para>
673</listitem>
674</varlistentry>
675
676<varlistentry id="sync">
677<term><command>sync</command></term>
678<listitem>
679<indexterm zone="ch-system-coreutils sync"><primary sortas="b-sync">sync</primary></indexterm>
680<para>flushes file system buffers. It forces changed blocks to disk
681and updates the super block.</para>
682</listitem>
683</varlistentry>
684
685<varlistentry id="tac">
686<term><command>tac</command></term>
687<listitem>
688<indexterm zone="ch-system-coreutils tac"><primary sortas="b-tac">tac</primary></indexterm>
689<para>concatenates the given files in reverse.</para>
690</listitem>
691</varlistentry>
692
693<varlistentry id="tail">
694<term><command>tail</command></term>
695<listitem>
696<indexterm zone="ch-system-coreutils tail"><primary sortas="b-tail">tail</primary></indexterm>
697<para>prints the last ten lines (or the given number of lines) of each
698given file.</para>
699</listitem>
700</varlistentry>
701
702<varlistentry id="tee">
703<term><command>tee</command></term>
704<listitem>
705<indexterm zone="ch-system-coreutils tee"><primary sortas="b-tee">tee</primary></indexterm>
706<para>reads from standard input while writing both to standard output
707and to the given files.</para>
708</listitem>
709</varlistentry>
710
711<varlistentry id="test">
712<term><command>test</command></term>
713<listitem>
714<indexterm zone="ch-system-coreutils test"><primary sortas="b-test">test</primary></indexterm>
715<para>compares values and checks file types.</para>
716</listitem>
717</varlistentry>
718
719<varlistentry id="touch">
720<term><command>touch</command></term>
721<listitem>
722<indexterm zone="ch-system-coreutils touch"><primary sortas="b-touch">touch</primary></indexterm>
723<para>changes file timestamps, setting the access and modification
724times of the given files to the current time. Files that do not exist
725are created with zero length.</para>
726</listitem>
727</varlistentry>
728
729<varlistentry id="tr">
730<term><command>tr</command></term>
731<listitem>
732<indexterm zone="ch-system-coreutils tr"><primary sortas="b-tr">tr</primary></indexterm>
733<para>translates, squeezes, and deletes the given characters from
734standard input.</para>
735</listitem>
736</varlistentry>
737
738<varlistentry id="true">
739<term><command>true</command></term>
740<listitem>
741<indexterm zone="ch-system-coreutils true"><primary sortas="b-true">true</primary></indexterm>
742<para>does nothing, successfully. It always exits with a status code
743indicating success.</para>
744</listitem>
745</varlistentry>
746
747<varlistentry id="tsort">
748<term><command>tsort</command></term>
749<listitem>
750<indexterm zone="ch-system-coreutils tsort"><primary sortas="b-tsort">tsort</primary></indexterm>
751<para>performs a topological sort. It writes a totally ordered list
752according to the partial ordering in a given file.</para>
753</listitem>
754</varlistentry>
755
756<varlistentry id="tty">
757<term><command>tty</command></term>
758<listitem>
759<indexterm zone="ch-system-coreutils tty"><primary sortas="b-tty">tty</primary></indexterm>
760<para>reports the file name of the terminal connected to standard
761input.</para>
762</listitem>
763</varlistentry>
764
765<varlistentry id="uname">
766<term><command>uname</command></term>
767<listitem>
768<indexterm zone="ch-system-coreutils uname"><primary sortas="b-uname">uname</primary></indexterm>
769<para>reports system information.</para>
770</listitem>
771</varlistentry>
772
773<varlistentry id="unexpand">
774<term><command>unexpand</command></term>
775<listitem>
776<indexterm zone="ch-system-coreutils unexpand"><primary sortas="b-unexpand">unexpand</primary></indexterm>
777<para>converts spaces to tabs.</para>
778</listitem>
779</varlistentry>
780
781<varlistentry id="uniq">
782<term><command>uniq</command></term>
783<listitem>
784<indexterm zone="ch-system-coreutils uniq"><primary sortas="b-uniq">uniq</primary></indexterm>
785<para>discards all but one of successive identical lines.</para>
786</listitem>
787</varlistentry>
788
789<varlistentry id="unlink">
790<term><command>unlink</command></term>
791<listitem>
792<indexterm zone="ch-system-coreutils unlink"><primary sortas="b-unlink">unlink</primary></indexterm>
793<para>removes the given file.</para>
794</listitem>
795</varlistentry>
796
797<varlistentry id="uptime-coreutils">
798<term><command>uptime</command></term>
799<listitem>
800<indexterm zone="ch-system-coreutils uptime-coreutils"><primary sortas="b-uptime-coreutils">uptime</primary></indexterm>
801<para>reports how long the system has been running, how many users are
802logged on, and the system load averages.</para>
803</listitem>
804</varlistentry>
805
806<varlistentry id="users">
807<term><command>users</command></term>
808<listitem>
809<indexterm zone="ch-system-coreutils users"><primary sortas="b-users">users</primary></indexterm>
810<para>reports the names of the users currently logged on.</para>
811</listitem>
812</varlistentry>
813
814<varlistentry id="vdir">
815<term><command>vdir</command></term>
816<listitem>
817<indexterm zone="ch-system-coreutils vdir"><primary sortas="b-vdir">vdir</primary></indexterm>
818<para>is the same as <command>ls -l</command>.</para>
819</listitem>
820</varlistentry>
821
822<varlistentry id="wc">
823<term><command>wc</command></term>
824<listitem>
825<indexterm zone="ch-system-coreutils wc"><primary sortas="b-wc">wc</primary></indexterm>
826<para>reports the number of lines, words, and bytes for each given
827file, as well as a total line when more than one file is given.</para>
828</listitem>
829</varlistentry>
830
831<varlistentry id="who">
832<term><command>who</command></term>
833<listitem>
834<indexterm zone="ch-system-coreutils who"><primary sortas="b-who">who</primary></indexterm>
835<para>reports who is logged on.</para>
836</listitem>
837</varlistentry>
838
839<varlistentry id="whoami">
840<term><command>whoami</command></term>
841<listitem>
842<indexterm zone="ch-system-coreutils whoami"><primary sortas="b-whoami">whoami</primary></indexterm>
843<para>reports the user name associated with the current effective user ID.</para>
844</listitem>
845</varlistentry>
846
847<varlistentry id="yes">
848<term><command>yes</command></term>
849<listitem>
850<indexterm zone="ch-system-coreutils yes"><primary sortas="b-yes">yes</primary></indexterm>
851<para>outputs <quote>y</quote>, or a given string, repeatedly until killed.</para>
852</listitem>
853</varlistentry>
854</variablelist>
855
856</sect2>
857
858</sect1>
859
Note: See TracBrowser for help on using the repository browser.