source: chapter06/coreutils.xml@ 9652249

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 9652249 was ac55dee, checked in by Zack Winkles <winkie@…>, 20 years ago

Fixed bug #307

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

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