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