source: chapter06/coreutils.xml@ 30c872d

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 30c872d was 73cb24a, checked in by Matthew Burgess <matthew@…>, 20 years ago

su is installed by shadow, not coreutils

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

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