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