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