source: chapter06/coreutils.xml@ 0aaf02b7

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 0aaf02b7 was 0aaf02b7, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Fixed the groups Index entry.

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