source: chapter06/coreutils.xml@ e7647f8

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.0 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 e7647f8 was 8dffa04, checked in by Zack Winkles <winkie@…>, 20 years ago

Dropped the chmod's that I added a few days earlier. They are not needed.

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

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