source: chapter06/coreutils.xml@ 82a5b95

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 82a5b95 was 67657d7, checked in by Jeremy Utley <jeremy@…>, 20 years ago

Another typo correction from Tony - coreutils suppression patch was wrong - fixed

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

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