source: chapter06/coreutils.xml@ daf1953b

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 12.2 12.2-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/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since daf1953b was c6f6bd7, checked in by Zack Winkles <winkie@…>, 20 years ago

Use the updated uname patch, instead of the old crappy one. "uname-x86"
is a misnomer anyway, since the original is x86-only too....

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

  • Property mode set to 100644
File size: 22.9 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]>
[3be4d97]6<sect1 id="ch-system-coreutils" xreflabel="Coreutils">
[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
[5888299]12<para>The Coreutils package contains utilities for showing and setting the
13basic system characteristics.</para>
14
[673b0d8]15<screen>&buildtime; 0.9 SBU
16&diskspace; 69 MB</screen>
17
18<para>Coreutils installation depends on: Bash, Binutils, Coreutils, Diffutils, GCC,
19Gettext, Glibc, Grep, Make, Perl, Sed.</para>
[cd8e54e]20
[73aedd1d]21
22
23<sect2>
24<title>Installation of Coreutils</title>
25
[90e3cb3]26<para>Normally the functionality of <command>uname</command> is somewhat
[673b0d8]27broken, in that the <emphasis>-p</emphasis> switch always returns
28<quote>unknown</quote>. The following patch fixes this behavior for Intel
29architectures:</para>
[73aedd1d]30
[c6f6bd7]31<screen><userinput>patch -Np1 -i ../coreutils-&coreutils-version;-uname-2.patch</userinput></screen>
[73aedd1d]32
33<para>We do not want Coreutils to install its version of the
[90e3cb3]34<command>hostname</command> program, because it is inferior to the version
[73aedd1d]35provided by Net-tools. Prevent its installation by applying a patch:</para>
36
[673b0d8]37<screen><userinput>patch -Np1 -i ../coreutils-&coreutils-version;-hostname-1.patch</userinput></screen>
[73aedd1d]38
39<para>Now prepare Coreutils for compilation:</para>
40
[673b0d8]41<screen><userinput>DEFAULT_POSIX2_VERSION=199209 ./configure --prefix=/usr</userinput></screen>
[73aedd1d]42
43<para>Compile the package:</para>
44
45<screen><userinput>make</userinput></screen>
46
[cd0c92d6]47<para>The test suite of Coreutils makes several assumptions about the presence
[673b0d8]48of files and users that aren't valid this early in the LFS build. We will
[cd0c92d6]49therefore have to set up a few things before being able to run the tests. If
[673b0d8]50you choose not to run these tests, skip down to <quote>Install the
51package</quote>.</para>
[cd0c92d6]52
[673b0d8]53<para>To be able to run the full test suite, the <command>su</command> program
54needs to be installed. We didn't bother to install this little program in
55<xref linkend="chapter-temporary-tools"/> because it requires root privileges,
56so do it now:</para>
57
58<screen><userinput>make install-root</userinput></screen>
59
[9dfc02f]60<para>Create two dummy groups and a dummy user name:</para>
[73aedd1d]61
[cd0c92d6]62<screen><userinput>echo "dummy1:x:1000" &gt;&gt; /etc/group
63echo "dummy2:x:1001:dummy" &gt;&gt; /etc/group
64echo "dummy:x:1000:1000:::/bin/bash" &gt;&gt; /etc/passwd</userinput></screen>
[73aedd1d]65
[cd0c92d6]66<para>Now you're all set to run the test suite. First run the few tests that
67are meant to be run as <emphasis>root</emphasis>:</para>
[73aedd1d]68
[9dfc02f]69<screen><userinput>make NON_ROOT_USERNAME=dummy make check-root</userinput></screen>
[73aedd1d]70
[cd0c92d6]71<para>Then run the remainder of the tests as the <emphasis>dummy</emphasis>
[73aedd1d]72user:</para>
73
[673b0d8]74<screen><userinput>su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
[73aedd1d]75
[cd0c92d6]76<para>When you're done testing, remove the dummy user and groups:</para>
[73aedd1d]77
[9dfc02f]78<screen><userinput>sed -i '/dummy/d' /etc/passwd /etc/group</userinput></screen>
[73aedd1d]79
80<para>Install the package:</para>
81
82<screen><userinput>make install</userinput></screen>
83
84<para>And move some programs to their proper locations:</para>
85
[9dfc02f]86<screen><userinput>mv /usr/bin/{[,basename,cat,chgrp,chmod,chown,cp,dd,df} /bin
[5e33420]87mv /usr/bin/{date,echo,false,head,install,ln,ls} /bin
88mv /usr/bin/{mkdir,mknod,mv,pwd,rm,rmdir,sync} /bin
89mv /usr/bin/{sleep,stty,su,test,touch,true,uname} /bin
[73aedd1d]90mv /usr/bin/chroot /usr/sbin</userinput></screen>
91
[2b07134]92<para>We'll be using the <filename>kill</filename> program from the Procps
93package (installed as <filename>/bin/kill</filename> later in the chapter).
94Remove the one installed by Coreutils:</para>
95
96<screen><userinput>rm /usr/bin/kill</userinput></screen>
97
[9dfc02f]98<para>Finally, create a symlink to be FHS-compliant:</para>
[73aedd1d]99
[9dfc02f]100<screen><userinput>ln -s ../../bin/install /usr/bin</userinput></screen>
[73aedd1d]101
102</sect2>
[bc82645e]103
[5888299]104
[673b0d8]105<sect2 id="contents-coreutils"><title>Contents of Coreutils</title>
106
107<para><emphasis>Installed programs</emphasis>: basename, cat, chgrp, chmod,
108chown, chroot, cksum, comm, cp, csplit, cut, date, dd, df, dir, dircolors,
109dirname, du, echo, env, expand, expr, factor, false, fmt, fold, groups, head,
110hostid, hostname, id, install, join, link, ln, logname, ls, md5sum,
111mkdir, mkfifo, mknod, mv, nice, nl, nohup, od, paste, pathchk, pinky, pr,
112printenv, printf, ptx, pwd, readlink, rm, rmdir, seq, sha1sum, shred, sleep,
113sort, split, stat, stty, su, sum, sync, tac, tail, tee, test, touch, tr, true,
114tsort, tty, uname, unexpand, uniq, unlink, uptime, users, vdir, wc, who,
115whoami and yes</para>
116
117</sect2>
118
119
120<sect2><title>Short descriptions</title>
121
122<indexterm zone="ch-system-coreutils basename"><primary sortas="b-basename">basename</primary></indexterm>
123<para id="basename"><command>basename</command> strips any path and a given suffix from
124the given file name.</para>
125
126<indexterm zone="ch-system-coreutils cat"><primary sortas="b-cat">cat</primary></indexterm>
127<para id="cat"><command>cat</command> concatenates files to standard output.</para>
128
129<indexterm zone="ch-system-coreutils chgrp"><primary sortas="b-chgrp">chgrp</primary></indexterm>
130<para id="chgrp"><command>chgrp</command> changes the group ownership of each given
131file to the given group. The group can be either given a a name or a numeric
132ID.</para>
133
134<indexterm zone="ch-system-coreutils chmod"><primary sortas="b-chmod">chmod</primary></indexterm>
135<para id="chmod"><command>chmod</command> changes the permissions of each given file
136to the given mode. The mode can be either a symbolic representation of the
137changes to make, or an octal number representing the new permissions.</para>
138
139<indexterm zone="ch-system-coreutils chown"><primary sortas="b-chown">chown</primary></indexterm>
140<para id="chown"><command>chown</command> changes the user and/or group ownership of
141each given file to the given user:group pair.</para>
142
143<indexterm zone="ch-system-coreutils chroot"><primary sortas="b-chroot">chroot</primary></indexterm>
144<para id="chroot"><command>chroot</command> runs a given command with the specified
145directory as the <filename>/</filename> directory. The given command can be an
146interactive shell. On most systems only <emphasis>root</emphasis> can do
147this.</para>
148
149<indexterm zone="ch-system-coreutils cksum"><primary sortas="b-cksum">cksum</primary></indexterm>
150<para id="cksum"><command>cksum</command> prints the CRC (Cyclic Redundancy Check) checksum and the byte
151counts of each specified file.</para>
152
153<indexterm zone="ch-system-coreutils comm"><primary sortas="b-comm">comm</primary></indexterm>
154<para id="comm"><command>comm</command> compares two sorted files, outputting in
155three columns the lines that are unique, and the lines that are common.</para>
156
157<indexterm zone="ch-system-coreutils cp"><primary sortas="b-cp">cp</primary></indexterm>
158<para id="cp"><command>cp</command> copies files.</para>
159
160<indexterm zone="ch-system-coreutils csplit"><primary sortas="b-csplit">csplit</primary></indexterm>
161<para id="csplit"><command>csplit</command> splits a given file into several new files,
162separating them according to given patterns or line numbers, and outputting
163the byte count of each new file.</para>
164
165<indexterm zone="ch-system-coreutils cut"><primary sortas="b-cut">cut</primary></indexterm>
166<para id="cut"><command>cut</command> prints parts of lines, selecting the parts
167according to given fields or positions.</para>
168
169<indexterm zone="ch-system-coreutils date"><primary sortas="b-date">date</primary></indexterm>
170<para id="date"><command>date</command> displays the current time in the given
171format, or sets the system date.</para>
172
173<indexterm zone="ch-system-coreutils dd"><primary sortas="b-dd">dd</primary></indexterm>
174<para id="dd"><command>dd</command> copies a file using the given block size and
175count, while optionally performing conversions on it.</para>
176
177<indexterm zone="ch-system-coreutils df"><primary sortas="b-df">df</primary></indexterm>
178<para id="df"><command>df</command> reports the amount of disk space available
179(and used) on all mounted file systems, or only on the file systems holding the
180given files.</para>
181
182<indexterm zone="ch-system-coreutils dir"><primary sortas="b-dir">dir</primary></indexterm>
183<para id="dir"><command>dir</command> is the same as ls.</para>
184
185<indexterm zone="ch-system-coreutils dircolors"><primary sortas="b-dircolors">dircolors</primary></indexterm>
186<para id="dircolors"><command>dircolors</command> outputs commands to set the LS_COLOR
187environment variable, to change the color scheme used by ls.</para>
188
189<indexterm zone="ch-system-coreutils dirname"><primary sortas="b-dirname">dirname</primary></indexterm>
190<para id="dirname"><command>dirname</command> strips the non-directory suffix from
191a given file name.</para>
192
193<indexterm zone="ch-system-coreutils du"><primary sortas="b-du">du</primary></indexterm>
194<para id="du"><command>du</command> reports the amount of disk space used by the
195current directory, or by each of the given directories including all their
196subdirectories, or by each of the given files.</para>
197
198<indexterm zone="ch-system-coreutils echo"><primary sortas="b-echo">echo</primary></indexterm>
199<para id="echo"><command>echo</command> displays the given strings.</para>
200
201<indexterm zone="ch-system-coreutils env"><primary sortas="b-env">env</primary></indexterm>
202<para id="env"><command>env</command> runs a command in a modified environment.</para>
203
204<indexterm zone="ch-system-coreutils expand"><primary sortas="b-expand">expand</primary></indexterm>
205<para id="expand"><command>expand</command> converts tabs to spaces.</para>
206
207<indexterm zone="ch-system-coreutils expr"><primary sortas="b-expr">expr</primary></indexterm>
208<para id="expr"><command>expr</command> evaluates expressions.</para>
209
210<indexterm zone="ch-system-coreutils factor"><primary sortas="b-factor">factor</primary></indexterm>
211<para id="factor"><command>factor</command> prints the prime factors of all specified
212integer numbers.</para>
213
214<indexterm zone="ch-system-coreutils false"><primary sortas="b-false">false</primary></indexterm>
215<para id="false"><command>false</command> does nothing, unsuccessfully. It always
216exits with a status code indicating failure.</para>
217
218<indexterm zone="ch-system-coreutils mt"><primary sortas="b-mt">mt</primary></indexterm>
219<para id="mt"><command>fmt</command> reformats the paragraphs in the given files.</para>
220
221<indexterm zone="ch-system-coreutils fold"><primary sortas="b-fold">fold</primary></indexterm>
222<para id="fold"><command>fold</command> wraps the lines in the given files.</para>
223
224<indexterm zone="ch-system-coreutils groups-coreutils"><primary sortas="b-groups-coreutils">groups</primary></indexterm>
225<para id="groups-coreutils"><command>groups</command> reports a user's group memberships.</para>
226
227<indexterm zone="ch-system-coreutils head"><primary sortas="b-head">head</primary></indexterm>
228<para id="head"><command>head</command> prints the first ten lines (or the given
229number of lines) of each given file.</para>
230
231<indexterm zone="ch-system-coreutils hostid"><primary sortas="b-hostid">hostid</primary></indexterm>
232<para id="hostid"><command>hostid</command> reports the numeric identifier
233(in hexadecimal) of the host.</para>
234
235<indexterm zone="ch-system-coreutils hostname-coreutils"><primary sortas="b-hostname-coreutils">hostname</primary></indexterm>
236<para id="hostname-coreutils"><command>hostname</command> reports or sets the name of the
237host.</para>
238
239<indexterm zone="ch-system-coreutils id"><primary sortas="b-id">id</primary></indexterm>
240<para id="id"><command>id</command> reports the effective user ID, group ID, and
241group memberships of the current user, or of a given user.</para>
242
243<indexterm zone="ch-system-coreutils install"><primary sortas="b-install">install</primary></indexterm>
244<para id="install"><command>install</command> copies files while setting their
245permission modes and, if possible, their owner and group.</para>
246
247<indexterm zone="ch-system-coreutils join"><primary sortas="b-join">join</primary></indexterm>
248<para id="join"><command>join</command> joins from two files the lines that have
249identical join fields.</para>
250
251<indexterm zone="ch-system-coreutils link"><primary sortas="b-link">link</primary></indexterm>
252<para id="link"><command>link</command> creates a hard link with the given name
253to the given file.</para>
254
255<indexterm zone="ch-system-coreutils ln"><primary sortas="b-ln">ln</primary></indexterm>
256<para id="ln"><command>ln</command> makes hard links or soft links between files.</para>
257
258<indexterm zone="ch-system-coreutils logname"><primary sortas="b-logname">logname</primary></indexterm>
259<para id="logname"><command>logname</command> reports the current user's login name.</para>
260
261<indexterm zone="ch-system-coreutils ls"><primary sortas="b-ls">ls</primary></indexterm>
262<para id="ls"><command>ls</command> lists the contents of each given directory.
263By default it orders the files and subdirectories alphabetically.</para>
264
265<indexterm zone="ch-system-coreutils md5sum"><primary sortas="b-md5sum">md5sum</primary></indexterm>
266<para id="md5sum"><command>md5sum</command> reports or checks MD5 (Message Digest 5) checksums.</para>
267
268<indexterm zone="ch-system-coreutils mkdir"><primary sortas="b-mkdir">mkdir</primary></indexterm>
269<para id="mkdir"><command>mkdir</command> creates directories with the given names.</para>
270
271<indexterm zone="ch-system-coreutils mkfifo"><primary sortas="b-mkfifo">mkfifo</primary></indexterm>
272<para id="mkfifo"><command>mkfifo</command> creates FIFOs (First-In, First-Out, a "named pipe" in UNIX parlance) with the given names.</para>
[bc82645e]273
[673b0d8]274<indexterm zone="ch-system-coreutils mknod"><primary sortas="b-mknod">mknod</primary></indexterm>
275<para id="mknod"><command>mknod</command> creates device nodes with the given names.
276A device node is a character special file, or a block special file, or a FIFO.</para>
277
278<indexterm zone="ch-system-coreutils mv"><primary sortas="b-mv">mv</primary></indexterm>
279<para id="mv"><command>mv</command> moves or renames files or directories.</para>
280
281<indexterm zone="ch-system-coreutils nice"><primary sortas="b-nice">nice</primary></indexterm>
282<para id="nice"><command>nice</command> runs a program with modified scheduling priority.</para>
283
284<indexterm zone="ch-system-coreutils nl"><primary sortas="b-nl">nl</primary></indexterm>
285<para id="nl"><command>nl</command> numbers the lines from the given files.</para>
286
287<indexterm zone="ch-system-coreutils nohup"><primary sortas="b-nohup">nohup</primary></indexterm>
288<para id="nohup"><command>nohup</command> runs a command immune to hangups, with
289output redirected to a log file.</para>
290
291<indexterm zone="ch-system-coreutils od"><primary sortas="b-od">od</primary></indexterm>
292<para id="od"><command>od</command> dumps files in octal and other formats.</para>
293
294<indexterm zone="ch-system-coreutils paste"><primary sortas="b-paste">paste</primary></indexterm>
295<para id="paste"><command>paste</command> merges the given files, joining
296sequentially corresponding lines side by side, separated by tab characters..</para>
297
298<indexterm zone="ch-system-coreutils pathchk"><primary sortas="b-pathchk">pathchk</primary></indexterm>
299<para id="pathchk"><command>pathchk</command> checks whether file names are valid
300or portable.</para>
301
302<indexterm zone="ch-system-coreutils pinky"><primary sortas="b-pinky">pinky</primary></indexterm>
303<para id="pinky"><command>pinky</command> is a lightweight finger. It reports
304some information about the given users.</para>
305
306<indexterm zone="ch-system-coreutils pr"><primary sortas="b-pr">pr</primary></indexterm>
307<para id="pr"><command>pr</command> paginates and columnates files for printing.</para>
308
309<indexterm zone="ch-system-coreutils printenv"><primary sortas="b-printenv">printenv</primary></indexterm>
310<para id="printenv"><command>printenv</command> prints the environment.</para>
311
312<indexterm zone="ch-system-coreutils printf"><primary sortas="b-printf">printf</primary></indexterm>
313<para id="printf"><command>printf</command> prints the given arguments according to the
314given format -- much like the C printf function.</para>
315
316<indexterm zone="ch-system-coreutils ptx"><primary sortas="b-ptx">ptx</primary></indexterm>
317<para id="ptx"><command>ptx</command> produces from the contents of the given files
318a permuted index, with each keyword in its context.</para>
319
320<indexterm zone="ch-system-coreutils pwd"><primary sortas="b-pwd">pwd</primary></indexterm>
321<para id="pwd"><command>pwd</command> reports the name of the current directory.</para>
322
323<indexterm zone="ch-system-coreutils readlink"><primary sortas="b-readlink">readlink</primary></indexterm>
324<para id="readlink"><command>readlink</command> reports the value of the given symbolic
325link.</para>
326
327<indexterm zone="ch-system-coreutils rm"><primary sortas="b-rm">rm</primary></indexterm>
328<para id="rm"><command>rm</command> removes files or directories.</para>
329
330<indexterm zone="ch-system-coreutils rmdir"><primary sortas="b-rmdir">rmdir</primary></indexterm>
331<para id="rmdir"><command>rmdir</command> removes directories, if they are empty.</para>
332
333<indexterm zone="ch-system-coreutils seq"><primary sortas="b-seq">seq</primary></indexterm>
334<para id="seq"><command>seq</command> prints a sequence of numbers, within a given
335range and with a given increment.</para>
336
337<indexterm zone="ch-system-coreutils sha1sum"><primary sortas="b-sha1sum">sha1sum</primary></indexterm>
338<para id="sha1sum"><command>sha1sum</command> prints or checks 160-bit SHA1
339checksums.</para>
340
341<indexterm zone="ch-system-coreutils shred"><primary sortas="b-shred">shred</primary></indexterm>
342<para id="shred"><command>shred</command> overwrites the given files repeatedly with
343strange patterns, to make it real hard to recover the data.</para>
344
345<indexterm zone="ch-system-coreutils sleep"><primary sortas="b-sleep">sleep</primary></indexterm>
346<para id="sleep"><command>sleep</command> pauses for the given amount of time.</para>
347
348<indexterm zone="ch-system-coreutils sort"><primary sortas="b-sort">sort</primary></indexterm>
349<para id="sort"><command>sort</command> sorts the lines from the given files.</para>
350
351<indexterm zone="ch-system-coreutils split"><primary sortas="b-split">split</primary></indexterm>
352<para id="split"><command>split</command> splits the given file into pieces, by size
353or by numbspliter of lines.</para>
354
355<indexterm zone="ch-system-coreutils stty"><primary sortas="b-stty">stty</primary></indexterm>
356<para id="stty"><command>stty</command> sets or reports terminal line settings.</para>
357
358<indexterm zone="ch-system-coreutils su"><primary sortas="b-su">su</primary></indexterm>
359<para id="su"><command>su</command> runs a shell with substitute user and group IDs.</para>
360
361<indexterm zone="ch-system-coreutils sum"><primary sortas="b-sum">sum</primary></indexterm>
362<para id="sum"><command>sum</command> prints checksum and block counts for each
363given file.</para>
364
365<indexterm zone="ch-system-coreutils sync"><primary sortas="b-sync">sync</primary></indexterm>
366<para id="sync"><command>sync</command> flushes file system buffers. It forces
367changed blocks to disk and updates the super block.</para>
368
369<indexterm zone="ch-system-coreutils tac"><primary sortas="b-tac">tac</primary></indexterm>
370<para id="tac"><command>tac</command> concatenates the given files in reverse.</para>
371
372<indexterm zone="ch-system-coreutils tail"><primary sortas="b-tail">tail</primary></indexterm>
373<para id="tail"><command>tail</command> prints the last ten lines (or the given
374number of lines) of each given file.</para>
375
376<indexterm zone="ch-system-coreutils tee"><primary sortas="b-tee">tee</primary></indexterm>
377<para id="tee"><command>tee</command> reads from standard input while writing both
378to standard output and to the given files.</para>
379
380<indexterm zone="ch-system-coreutils test"><primary sortas="b-test">test</primary></indexterm>
381<para id="test"><command>test</command> compares values and checks file types.</para>
382
383<indexterm zone="ch-system-coreutils touch"><primary sortas="b-touch">touch</primary></indexterm>
384<para id="touch"><command>touch</command> changes file timestamps, setting the access
385and modification times of the given files to the current time. Files that do
386not exist are created with zero length.</para>
387
388<indexterm zone="ch-system-coreutils tr"><primary sortas="b-tr">tr</primary></indexterm>
389<para id="tr"><command>tr</command> translates, squeezes, and deletes the given
390characters from standard input.</para>
391
392<indexterm zone="ch-system-coreutils true"><primary sortas="b-true">true</primary></indexterm>
393<para id="true"><command>true</command> does nothing, successfully. It always exits
394with a status code indicating success.</para>
395
396<indexterm zone="ch-system-coreutils tsort"><primary sortas="b-tsort">tsort</primary></indexterm>
397<para id="tsort"><command>tsort</command> performs a topological sort. It writes a
398totally ordered list according to the partial ordering in a given file.</para>
399
400<indexterm zone="ch-system-coreutils tty"><primary sortas="b-tty">tty</primary></indexterm>
401<para id="tty"><command>tty</command> reports the file name of the terminal
402connected to standard input.</para>
403
404<indexterm zone="ch-system-coreutils uname"><primary sortas="b-uname">uname</primary></indexterm>
405<para id="uname"><command>uname</command> reports system information.</para>
406
407<indexterm zone="ch-system-coreutils unexpand"><primary sortas="b-unexpand">unexpand</primary></indexterm>
408<para id="unexpand"><command>unexpand</command> converts spaces to tabs.</para>
409
410<indexterm zone="ch-system-coreutils uniq"><primary sortas="b-uniq">uniq</primary></indexterm>
411<para id="uniq"><command>uniq</command> discards all but one of successive
412identical lines.</para>
413
414<indexterm zone="ch-system-coreutils unlink"><primary sortas="b-unlink">unlink</primary></indexterm>
415<para id="unlink"><command>unlink</command> removes the given file.</para>
416
417<indexterm zone="ch-system-coreutils uptime-coreutils"><primary sortas="b-uptime-coreutils">uptime</primary></indexterm>
418<para id="uptime-coreutils"><command>uptime</command> reports how long the system has been
419running, how many users are logged on, and the system load averages.</para>
420
421<indexterm zone="ch-system-coreutils users"><primary sortas="b-users">users</primary></indexterm>
422<para id="users"><command>users</command> reports the names of the users currently
423logged on.</para>
424
425<indexterm zone="ch-system-coreutils vdir"><primary sortas="b-vdir">vdir</primary></indexterm>
426<para id="vdir"><command>vdir</command> is the same as ls -l.</para>
427
428<indexterm zone="ch-system-coreutils wc"><primary sortas="b-wc">wc</primary></indexterm>
429<para id="wc"><command>wc</command> reports the number of lines, words, and bytes
430for each given file, and a total line when more than one file is given.</para>
431
432<indexterm zone="ch-system-coreutils who"><primary sortas="b-who">who</primary></indexterm>
433<para id="who"><command>who</command> reports who is logged on.</para>
434
435<indexterm zone="ch-system-coreutils whoami"><primary sortas="b-whoami">whoami</primary></indexterm>
436<para id="whoami"><command>whoami</command> reports the user name associated with the
437current effective user ID.</para>
438
439<indexterm zone="ch-system-coreutils yes"><primary sortas="b-yes">yes</primary></indexterm>
440<para id="yes"><command>yes</command> outputs 'y' or a given string repeatedly,
441until killed.</para>
442
443</sect2>
444
445
446
447</sect1>
Note: See TracBrowser for help on using the repository browser.