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