source: chapter06/coreutils.xml@ 3e36a78

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 3e36a78 was 3e36a78, checked in by Jim Gifford <jim@…>, 19 years ago

Changed patches to use entities

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

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