source: chapter06/coreutils.xml@ c2913ea

Last change on this file since c2913ea was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

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

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