source: chapter06/coreutils.xml@ b2d59c8

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.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 b2d59c8 was b2d59c8, checked in by Archaic <archaic@…>, 19 years ago

Tweaked the chown/chgrp program descriptions.

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