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