source: appendixa/coreutils-desc.xml@ e403b99

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.0 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk v5_0 v5_1 v5_1_1 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
Last change on this file since e403b99 was 978d0bf, checked in by Alex Gronenwoud <alex@…>, 21 years ago

Changing the style of the command descriptions in appendix A.

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

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