coreutils-desc.xml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2><title>Descriptions</title>
  3. <para>(Last checked against the old Fileutils, Sh-utils and Textutils.)</para>
  4. <sect3><title>Program file descriptions</title>
  5. <para><command>basename</command> strips any path and a given suffix from
  6. the given file name.</para>
  7. <para><command>cat</command> concatenates files to standard output.</para>
  8. <para><command>chgrp</command> changes the group ownership of each given
  9. file to the given group. The group can be either given a a name or a numeric
  10. ID.</para>
  11. <para><command>chmod</command> changes the permissions of each given file
  12. to the given mode. The mode can be either a symbolic representation of the
  13. changes to make, or an octal number representing the new permissions.</para>
  14. <para><command>chown</command> changes the user and/or group ownership of
  15. each given file to the given user:group pair.</para>
  16. <para><command>chroot</command> runs a given command with the specified
  17. directory as the <filename>/</filename> directory. The given command can be an
  18. interactive shell. On most systems only <emphasis>root</emphasis> can do
  19. this.</para>
  20. <para><command>cksum</command> prints the CRC checksum and the byte
  21. counts of each specified file.</para>
  22. <para><command>comm</command> compares two sorted files, outputting in
  23. three columns the lines that are unique, and the lines that are common.</para>
  24. <para><command>cp</command> copies files.</para>
  25. <para><command>csplit</command> splits a given file into several new files,
  26. separating them according to given patterns or line numbers, and outputting
  27. the byte count of each new file.</para>
  28. <para><command>cut</command> prints parts of lines, selecting the parts
  29. according to given fields or positions.</para>
  30. <para><command>date</command> displays the current time in the given
  31. format, or sets the system date.</para>
  32. <para><command>dd</command> copies a file using the given blocksize and
  33. count, while optionally performing conversions on it.</para>
  34. <para><command>df</command> reports the amount of disk space available
  35. (and used) on all mounted filesystems, or only on the filesystems holding the
  36. given files.</para>
  37. <para><command>dir</command> is the same as ls.</para>
  38. <para><command>dircolors</command> outputs commands to set the LS_COLOR
  39. environment variable, to change the color scheme used by ls.</para>
  40. <para><command>dirname</command> strips the non-directory suffix from
  41. a given file name.</para>
  42. <para><command>du</command> reports the amount of disk space used by the
  43. current directory, or by each of the given directories including all their
  44. subdirectories, or by each of the given files.</para>
  45. <para><command>echo</command> displays the given strings.</para>
  46. <para><command>env</command> runs a command in a modified environment.</para>
  47. <para><command>expand</command> converts tabs to spaces.</para>
  48. <para><command>expr</command> evaluates expressions.</para>
  49. <para><command>factor</command> prints the prime factors of all specified
  50. integer numbers.</para>
  51. <para><command>false</command> does nothing, unsuccessfully. It always
  52. exits with a status code indicating failure.</para>
  53. <para><command>fmt</command> reformats the paragraphs in the given files.</para>
  54. <para><command>fold</command> wraps the lines in the given files.</para>
  55. <para><command>groups</command> reports a user's group memberships.</para>
  56. <para><command>head</command> prints the first ten lines (or the given
  57. number of lines) of each given file.</para>
  58. <para><command>hostid</command> reports the numeric identifier
  59. (in hexadecimal) of the host.</para>
  60. <para><command>hostname</command> reports or sets the name of the
  61. host.</para>
  62. <para><command>id</command> reports the effective user ID, group ID, and
  63. group memberships of the current user, or of a given user.</para>
  64. <para><command>install</command> copies files while setting their
  65. permission modes and, if possible, their owner and group.</para>
  66. <para><command>join</command> joins from two files the lines that have
  67. identical join fields.</para>
  68. <para><command>kill</command> terminates the given process.</para>
  69. <para><command>link</command> creates a hard link with the given name
  70. to the given file.</para>
  71. <para><command>ln</command> makes hard links or soft links between files.</para>
  72. <para><command>logname</command> reports the current user's login name.</para>
  73. <para><command>ls</command> lists the contents of each given directory.
  74. By default it orders the files and subdirectories alphabetically.</para>
  75. <para><command>md5sum</command> reports or checks MD5 checksums.</para>
  76. <para><command>mkdir</command> creates directories with the given names.</para>
  77. <para><command>mkfifo</command> creates FIFOs with the given names.</para>
  78. <para><command>mknod</command> creates device nodes with the given names.
  79. A device node is a character special file, or a block special file, or a FIFO.</para>
  80. <para><command>mv</command> moves or renames files or directories.</para>
  81. <para><command>nice</command> runs a program with modified scheduling priority.</para>
  82. <para><command>nl</command> numbers the lines from the given files.</para>
  83. <para><command>nohup</command> runs a command immune to hangups, with
  84. output redirected to a log file.</para>
  85. <para><command>od</command> dumps files in octal and other formats.</para>
  86. <para><command>paste</command> merges the given files, joining
  87. sequentially corresponding lines side by side, separated by TABs.</para>
  88. <para><command>pathchk</command> checks whether file names are valid
  89. or portable.</para>
  90. <para><command>pinky</command> is a lightweight finger. It reports
  91. some information about the given users.</para>
  92. <para><command>pr</command> paginates and columnates files for printing.</para>
  93. <para><command>printenv</command> prints the environment.</para>
  94. <para><command>printf</command> prints the given arguments according to the
  95. given format -- much like the C printf function.</para>
  96. <para><command>ptx</command> produces from the contents of the given files
  97. a permuted index, with each keyword in its context.</para>
  98. <para><command>pwd</command> reports the name of the current directory.</para>
  99. <para><command>readlink</command> reports the value of the given symbolic
  100. link.</para>
  101. <para><command>rm</command> removes files or directories.</para>
  102. <para><command>rmdir</command> removes directories, if they are empty.</para>
  103. <para><command>seq</command> prints a sequence of numbers, within a given
  104. range and with a given increment.</para>
  105. <para><command>sha1sum</command> prints or checks 160-bit SHA1
  106. checksums.</para>
  107. <para><command>shred</command> overwrites the given files repeatedly with
  108. strange patterns, to make it real hard to recover the data.</para>
  109. <para><command>sleep</command> pauses for the given amount of time.</para>
  110. <para><command>sort</command> sorts the lines from the given files.</para>
  111. <para><command>split</command> splits the given file into pieces, by size
  112. or by number of lines.</para>
  113. <para><command>stty</command> sets or reports terminal line settings.</para>
  114. <para><command>su</command> runs a shell with substitute user and group IDs.</para>
  115. <para><command>sum</command> prints checksum and block counts for each
  116. given file.</para>
  117. <para><command>sync</command> flushes filesystem buffers. It forces
  118. changed blocks to disk and updates the super block.</para>
  119. <para><command>tac</command> concatenates the given files in reverse.</para>
  120. <para><command>tail</command> prints the last ten lines (or the given
  121. number of lines) of each given file.</para>
  122. <para><command>tee</command> reads from standard input while writing both
  123. to standard output and to the given files.</para>
  124. <para><command>test</command> compares values and checks file types.</para>
  125. <para><command>touch</command> changes file timestamps, setting the access
  126. and modification times of the given files to the current time. Files that do
  127. not exist are created with zero length.</para>
  128. <para><command>tr</command> translates, squeezes, and deletes the given
  129. characters from standard input.</para>
  130. <para><command>true</command> does nothing, successfully. It always exits
  131. with a status code indicating success.</para>
  132. <para><command>tsort</command> performs a topological sort. It writes a
  133. totally ordered list according to the partial ordering in a given file.</para>
  134. <para><command>tty</command> reports the file name of the terminal
  135. connected to standard input.</para>
  136. <para><command>uname</command> reports system information.</para>
  137. <para><command>unexpand</command> converts spaces to tabs.</para>
  138. <para><command>uniq</command> discards all but one of successive
  139. identical lines.</para>
  140. <para><command>unlink</command> removes the given file.</para>
  141. <para><command>uptime</command> reports how long the system has been
  142. running, how many users are logged on, and the system load averages.</para>
  143. <para><command>users</command> reports the names of the users currently
  144. logged on.</para>
  145. <para><command>vdir</command> is the same as ls -l.</para>
  146. <para><command>wc</command> reports the number of lines, words, and bytes
  147. for each given file, and a total line when more than one file is given.</para>
  148. <para><command>who</command> reports who is logged on.</para>
  149. <para><command>whoami</command> reports the user name associated with the
  150. current effective user ID.</para>
  151. <para><command>yes</command> outputs 'y' or a given string repeatedly,
  152. until killed.</para>
  153. </sect3>
  154. </sect2>