source: chapter06/coreutils.xml@ 373a708

6.1 6.1.1
Last change on this file since 373a708 was 373a708, checked in by Archaic <archaic@…>, 19 years ago

Several minor grammatical fixes. (merged from trunk r6011)

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

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