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