blob: 42944489af4ed31975bc3b6c0e2a197afab1dac3 [file] [log] [blame]
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001# vi: set sw=4 ts=4:
John Beppu08e7f752000-04-13 03:22:20 +00002
John Beppu3a1b6be2000-01-18 15:45:59 +00003=head1 NAME
4
Erik Andersencf8d38a2000-04-21 01:23:36 +00005BusyBox - The Swiss Army Knife of Embedded Linux
John Beppu3a1b6be2000-01-18 15:45:59 +00006
Erik Andersencf8d38a2000-04-21 01:23:36 +00007=head1 SYNTAX
John Beppu3a1b6be2000-01-18 15:45:59 +00008
Erik Andersencf8d38a2000-04-21 01:23:36 +00009 BusyBox <function> [arguments...] # or
John Beppu46a4e762000-01-18 22:33:11 +000010
11 <function> [arguments...] # if symlinked
John Beppu3a1b6be2000-01-18 15:45:59 +000012
13=head1 DESCRIPTION
14
Erik Andersencf8d38a2000-04-21 01:23:36 +000015BusyBox combines tiny versions of many common UNIX utilities into a single
16small executable. It provides minimalist replacements for most of the utilities
17you usually find in fileutils, shellutils, findutils, textutils, grep, gzip,
18tar, etc. BusyBox provides a fairly complete POSIX environment for any small
Eric Andersen98cd53e2000-06-16 19:56:44 +000019or embedded system. The utilities in BusyBox generally have fewer options than
Eric Andersenf2fffef2000-06-05 17:23:06 +000020their full-featured GNU cousins; however, the options that are included provide
Pavel Roskin1a804e42000-06-21 21:38:00 +000021the expected functionality and behave very much like their GNU counterparts.
Erik Andersen62dc17a2000-04-13 01:18:23 +000022
Erik Andersencf8d38a2000-04-21 01:23:36 +000023BusyBox has been written with size-optimization and limited resources in mind.
24It is also extremely modular so you can easily include or exclude commands (or
25features) at compile time. This makes it easy to customize your embedded
26systems. To create a working system, just add a kernel, a shell (such as ash),
27and an editor (such as elvis-tiny or ae).
28
29=head1 USAGE
30
31When you create a link to BusyBox for the function you wish to use, when BusyBox
32is called using that link it will behave as if the command itself has been invoked.
33
34For example, entering
35
36 ln -s ./BusyBox ls
Erik Andersen62dc17a2000-04-13 01:18:23 +000037 ./ls
38
39will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled
Pavel Roskin1a804e42000-06-21 21:38:00 +000040into BusyBox).
Erik Andersen62dc17a2000-04-13 01:18:23 +000041
Erik Andersencf8d38a2000-04-21 01:23:36 +000042You can also invoke BusyBox by issuing the command as an argument on the
43command line. For example, entering
44
45 ./BusyBox ls
Erik Andersen62dc17a2000-04-13 01:18:23 +000046
47will also cause BusyBox to behave as 'ls'.
John Beppu08fe43d2000-01-19 12:39:16 +000048
Erik Anderseneef65802000-04-19 05:12:02 +000049=head1 COMMON OPTIONS
50
51Most BusyBox commands support the B<--help> option to provide a
52terse runtime description of their behavior.
53
John Beppu46a4e762000-01-18 22:33:11 +000054=head1 COMMANDS
55
Erik Andersen62dc17a2000-04-13 01:18:23 +000056Currently defined functions include:
57
Eric Andersen0d3a02e2001-03-15 18:14:25 +000058ar, basename, busybox, cat, chgrp, chmod, chown, chroot, chvt, clear, cmp, cp,
59cut, date, dc, dd, deallocvt, df, dirname, dmesg, dos2unix, dpkg, dpkg-deb, du,
60dumpkmap, dutmp, echo, expr, false, fbset, fdflush, find, free, freeramdisk,
61fsck.minix, getopt, grep, gunzip, gzip, halt, head, hostid, hostname, id,
62ifconfig, init, insmod, kill, killall, klogd, length, ln, loadacm, loadfont,
63loadkmap, logger, logname, ls, lsmod, makedevs, md5sum, mkdir, mkfifo,
64mkfs.minix, mknod, mkswap, mktemp, more, mount, mt, mv, nc, nslookup, ping,
65pivot_root, poweroff, printf, ps, pwd, rdate, readlink, reboot, renice, reset,
66rm, rmdir, rmmod, route, rpmunpack, sed, setkeycodes, sh, sleep, sort, stty,
67swapoff, swapon, sync, syslogd, tail, tar, tee, telnet, test, tftp, touch, tr,
68true, tty, umount, uname, uniq, unix2dos, update, uptime, usleep, uudecode,
69uuencode, watchdog, wc, wget, which, whoami, xargs, yes, zcat, [
Erik Andersen62dc17a2000-04-13 01:18:23 +000070
John Beppu46a4e762000-01-18 22:33:11 +000071=over 4
72
Eric Andersen0d3a02e2001-03-15 18:14:25 +000073=item I<ar>
74
75ar -[ovR]{ptx} archive filenames
Eric Andersen86ab8a32000-06-02 03:21:42 +000076
77Extract or list files from an ar archive.
78
79Options:
80
Eric Andersen0d3a02e2001-03-15 18:14:25 +000081 -o preserve original dates
82 -p extract to stdout
83 -t list
84 -x extract
85 -v verbosely list files processed
86 -R recursive action
Eric Andersen86ab8a32000-06-02 03:21:42 +000087
88-------------------------------
89
Eric Andersen0d3a02e2001-03-15 18:14:25 +000090=item I<basename>
Erik Andersen62dc17a2000-04-13 01:18:23 +000091
Eric Andersen0d3a02e2001-03-15 18:14:25 +000092basename FILE [SUFFIX]
Erik Andersen62dc17a2000-04-13 01:18:23 +000093
Erik Andersenac130e12000-05-10 05:00:31 +000094Strips directory path and suffixes from FILE.
95If specified, also removes any trailing SUFFIX.
Erik Andersen62dc17a2000-04-13 01:18:23 +000096
Pavel Roskin1a804e42000-06-21 21:38:00 +000097Example:
Erik Andersen62dc17a2000-04-13 01:18:23 +000098
John Beppue708cb52001-03-15 21:08:01 +000099 $ basename /usr/local/bin/foo
100 foo
101 $ basename /usr/local/bin/
102 bin
103 $ basename /foo/bar.txt .txt
104 bar
Erik Andersen62dc17a2000-04-13 01:18:23 +0000105
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000106-------------------------------
107
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000108=item I<cat>
John Beppu46a4e762000-01-18 22:33:11 +0000109
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000110cat [FILE]...
Erik Andersen62dc17a2000-04-13 01:18:23 +0000111
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000112Concatenates FILE(s) and prints them to stdout.
Erik Andersen62dc17a2000-04-13 01:18:23 +0000113
114Example:
115
John Beppue708cb52001-03-15 21:08:01 +0000116 $ cat /proc/uptime
117 110716.72 17.67
John Beppu4581b4c2000-01-19 15:04:41 +0000118
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000119-------------------------------
120
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000121=item I<chgrp>
Erik Andersen5e1189e2000-04-15 16:34:54 +0000122
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000123chgrp [OPTION]... GROUP FILE...
Erik Andersen5e1189e2000-04-15 16:34:54 +0000124
125Change the group membership of each FILE to GROUP.
Erik Andersen26702fe2000-04-17 16:44:46 +0000126
Erik Andersen5e1189e2000-04-15 16:34:54 +0000127Options:
128
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000129 -R Changes files and directories recursively.
Erik Andersen26702fe2000-04-17 16:44:46 +0000130
Erik Andersen5e1189e2000-04-15 16:34:54 +0000131Example:
132
John Beppue708cb52001-03-15 21:08:01 +0000133 $ ls -l /tmp/foo
134 -r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo
135 $ chgrp root /tmp/foo
136 $ ls -l /tmp/foo
137 -r--r--r-- 1 andersen root 0 Apr 12 18:25 /tmp/foo
Erik Andersen5e1189e2000-04-15 16:34:54 +0000138
139-------------------------------
140
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000141=item I<chmod>
John Beppu46a4e762000-01-18 22:33:11 +0000142
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000143chmod [B<-R>] MODE[,MODE]... FILE...
John Beppu4581b4c2000-01-19 15:04:41 +0000144
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000145Each MODE is one or more of the letters ugoa, one of the
146symbols +-= and one or more of the letters rwxst.
Erik Andersen62dc17a2000-04-13 01:18:23 +0000147
John Beppu4581b4c2000-01-19 15:04:41 +0000148Options:
149
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000150 -R Changes files and directories recursively.
Pavel Roskin1a804e42000-06-21 21:38:00 +0000151
Erik Andersen62dc17a2000-04-13 01:18:23 +0000152Example:
153
John Beppue708cb52001-03-15 21:08:01 +0000154 $ ls -l /tmp/foo
155 -rw-rw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo
156 $ chmod u+x /tmp/foo
157 $ ls -l /tmp/foo
158 -rwxrw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo*
159 $ chmod 444 /tmp/foo
160 $ ls -l /tmp/foo
161 -r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo
John Beppu4581b4c2000-01-19 15:04:41 +0000162
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000163-------------------------------
164
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000165=item I<chown>
John Beppu46a4e762000-01-18 22:33:11 +0000166
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000167chown [OPTION]... OWNER[<.|:>[GROUP] FILE...
John Beppu4581b4c2000-01-19 15:04:41 +0000168
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000169Change the owner and/or group of each FILE to OWNER and/or GROUP.
John Beppu5a50def2000-04-17 17:46:46 +0000170
John Beppu4581b4c2000-01-19 15:04:41 +0000171Options:
172
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000173 -R Changes files and directories recursively.
Erik Andersen62dc17a2000-04-13 01:18:23 +0000174
175Example:
176
John Beppue708cb52001-03-15 21:08:01 +0000177 $ ls -l /tmp/foo
178 -r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo
179 $ chown root /tmp/foo
180 $ ls -l /tmp/foo
181 -r--r--r-- 1 root andersen 0 Apr 12 18:25 /tmp/foo
182 $ chown root.root /tmp/foo
183 ls -l /tmp/foo
184 -r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo
John Beppu4581b4c2000-01-19 15:04:41 +0000185
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000186-------------------------------
187
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000188=item I<chroot>
John Beppu46a4e762000-01-18 22:33:11 +0000189
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000190chroot NEWROOT [COMMAND...]
John Beppu4581b4c2000-01-19 15:04:41 +0000191
192Run COMMAND with root directory set to NEWROOT.
Pavel Roskin1a804e42000-06-21 21:38:00 +0000193
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000194Example:
Erik Andersen62dc17a2000-04-13 01:18:23 +0000195
John Beppue708cb52001-03-15 21:08:01 +0000196 $ ls -l /bin/ls
197 lrwxrwxrwx 1 root root 12 Apr 13 00:46 /bin/ls -> /BusyBox
198 $ mount /dev/hdc1 /mnt -t minix
199 $ chroot /mnt
200 $ ls -l /bin/ls
201 -rwxr-xr-x 1 root root 40816 Feb 5 07:45 /bin/ls*
John Beppu4581b4c2000-01-19 15:04:41 +0000202
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000203-------------------------------
204
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000205=item I<chvt>
John Beppu46a4e762000-01-18 22:33:11 +0000206
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000207chvt N
John Beppu4581b4c2000-01-19 15:04:41 +0000208
Erik Andersencf8d38a2000-04-21 01:23:36 +0000209Changes the foreground virtual terminal to /dev/ttyN
John Beppu50ed0672000-04-13 23:44:04 +0000210
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000211-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +0000212
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000213=item I<clear>
Eric Andersen028fb622000-07-04 20:07:13 +0000214
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000215clear
216
217Clear screen.
Eric Andersen028fb622000-07-04 20:07:13 +0000218
219-------------------------------
220
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000221=item I<cmp>
John Beppu46a4e762000-01-18 22:33:11 +0000222
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000223cmp FILE1 [FILE2]
John Beppu4581b4c2000-01-19 15:04:41 +0000224
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000225Compare files.
226
227-------------------------------
228
229=item I<cp>
230
231cp [OPTION]... SOURCE DEST
John Beppu4581b4c2000-01-19 15:04:41 +0000232
Erik Andersencf8d38a2000-04-21 01:23:36 +0000233Copies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.
John Beppu4581b4c2000-01-19 15:04:41 +0000234
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000235 -a Same as -dpR
236 -d Preserves links
237 -p Preserves file attributes if possible
238 -f force (implied; ignored) - always set
239 -R Copies directories recursively
John Beppu4581b4c2000-01-19 15:04:41 +0000240
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000241-------------------------------
242
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000243=item I<cut>
Erik Andersen73c8c9c2000-05-13 05:36:13 +0000244
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000245cut [OPTION]... [FILE]...
Erik Andersen73c8c9c2000-05-13 05:36:13 +0000246
247Prints selected fields from each input FILE to standard output.
248
249Options:
250
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000251 -b LIST Output only bytes from LIST
252 -c LIST Output only characters from LIST
253 -d CHAR Use CHAR instead of tab as the field delimiter
254 -s Output only the lines containing delimiter
255 -f N Print only these fields
256 -n Ignored
Erik Andersen73c8c9c2000-05-13 05:36:13 +0000257
258Example:
259
John Beppue708cb52001-03-15 21:08:01 +0000260 $ echo Hello world | cut -f 1 -d ' '
261 Hello
262 $ echo Hello world | cut -f 2 -d ' '
263 world
Erik Andersen73c8c9c2000-05-13 05:36:13 +0000264
265-------------------------------
266
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000267=item I<date>
John Beppu46a4e762000-01-18 22:33:11 +0000268
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000269date [OPTION]... [+FORMAT]
Erik Andersen62dc17a2000-04-13 01:18:23 +0000270
Erik Andersencf8d38a2000-04-21 01:23:36 +0000271Displays the current time in the given FORMAT, or sets the system date.
Erik Andersen62dc17a2000-04-13 01:18:23 +0000272
273Options:
Erik Andersene31c0662000-05-02 05:32:07 +0000274
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000275 -R Outputs RFC-822 compliant date string
276 -d STRING display time described by STRING, not `now'
277 -s Sets time described by STRING
278 -u Prints or sets Coordinated Universal Time
Erik Andersen62dc17a2000-04-13 01:18:23 +0000279
280Example:
John Beppuf17792c2000-04-13 03:16:01 +0000281
John Beppue708cb52001-03-15 21:08:01 +0000282 $ date
283 Wed Apr 12 18:52:41 MDT 2000
John Beppu4581b4c2000-01-19 15:04:41 +0000284
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000285-------------------------------
286
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000287=item I<dc>
John Beppu00216792000-06-21 19:06:16 +0000288
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000289dc expression ...
John Beppu00216792000-06-21 19:06:16 +0000290
291This is a Tiny RPN calculator that understands the
292following operations: +, -, /, *, and, or, not, eor.
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000293i.e. 'dc 2 2 add' -> 4, and 'dc 8 8 \* 2 2 + /' -> 16
John Beppu00216792000-06-21 19:06:16 +0000294
295Example:
296
John Beppue708cb52001-03-15 21:08:01 +0000297 $ dc 2 2 +
298 4
299 $ dc 8 8 * 2 2 + /
300 16
301 $ dc 0 1 and
302 0
303 $ dc 0 1 or
304 1
305 $ echo 72 9 div 8 mul | dc
306 64
John Beppu00216792000-06-21 19:06:16 +0000307
308-------------------------------
309
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000310=item I<dd>
John Beppu46a4e762000-01-18 22:33:11 +0000311
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000312dd [if=FILE] [of=FILE] [bs=N] [count=N] [skip=N]
313 [seek=N] [conv=notrunc|sync]
John Beppu4581b4c2000-01-19 15:04:41 +0000314
315Copy a file, converting and formatting according to options
316
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000317 if=FILE read from FILE instead of stdin
318 of=FILE write to FILE instead of stdout
319 bs=N read and write N bytes at a time
320 count=N copy only N input blocks
321 skip=N skip N input blocks
322 seek=N skip N output blocks
323 conv=notrunc don't truncate output file
324 conv=sync pad blocks with zeros
Erik Andersen62dc17a2000-04-13 01:18:23 +0000325
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000326Numbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024),
327MD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824).
Pavel Roskin1a804e42000-06-21 21:38:00 +0000328
Erik Andersen62dc17a2000-04-13 01:18:23 +0000329Example:
330
John Beppue708cb52001-03-15 21:08:01 +0000331 $ dd if=/dev/zero of=/dev/ram1 bs=1M count=4
332 4+0 records in
333 4+0 records out
Erik Andersen62dc17a2000-04-13 01:18:23 +0000334
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000335-------------------------------
336
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000337=item I<deallocvt>
Eric Andersen028fb622000-07-04 20:07:13 +0000338
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000339deallocvt N
Eric Andersen028fb622000-07-04 20:07:13 +0000340
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000341Deallocate unused virtual terminal /dev/ttyN
Eric Andersen028fb622000-07-04 20:07:13 +0000342
343-------------------------------
344
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000345=item I<df>
John Beppu46a4e762000-01-18 22:33:11 +0000346
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000347df [B<-hmk>] [filesystem ...]
Erik Andersen62dc17a2000-04-13 01:18:23 +0000348
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000349Print the filesystem space used and space available.
Glenn L McGrathfa044322001-01-03 01:06:30 +0000350
351Options:
352
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000353 -h print sizes in human readable format (e.g., 1K 243M 2G )
354 -m print sizes in megabytes
355 -k print sizes in kilobytes(default)
Glenn L McGrathfa044322001-01-03 01:06:30 +0000356
357Example:
358
John Beppue708cb52001-03-15 21:08:01 +0000359 $ df
360 Filesystem 1k-blocks Used Available Use% Mounted on
361 /dev/sda3 8690864 8553540 137324 98% /
362 /dev/sda1 64216 36364 27852 57% /boot
363 $ df /dev/sda3
364 Filesystem 1k-blocks Used Available Use% Mounted on
365 /dev/sda3 8690864 8553540 137324 98% /
Glenn L McGrathfa044322001-01-03 01:06:30 +0000366
367-------------------------------
368
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000369=item I<dirname>
John Beppu46a4e762000-01-18 22:33:11 +0000370
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000371dirname [FILENAME ...]
John Beppu4581b4c2000-01-19 15:04:41 +0000372
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000373Strips non-directory suffix from FILENAME
374
375Example:
376
John Beppue708cb52001-03-15 21:08:01 +0000377 $ dirname /tmp/foo
378 /tmp
379 $ dirname /tmp/foo/
380 /tmp
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000381
382-------------------------------
383
384=item I<dmesg>
385
386dmesg [B<-c>] [B<-n> LEVEL] [B<-s> SIZE]
387
388Prints or controls the kernel ring buffer
Erik Andersen62dc17a2000-04-13 01:18:23 +0000389
390Options:
John Beppuf17792c2000-04-13 03:16:01 +0000391
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000392 -c Clears the ring buffer's contents after printing
393 -n LEVEL Sets console logging level
394 -s SIZE Use a buffer of size SIZE
Pavel Roskin1a804e42000-06-21 21:38:00 +0000395
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000396-------------------------------
397
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000398=item I<dos2unix>
Eric Andersen61dc0572000-07-11 17:29:36 +0000399
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000400dos2unix [option] [file]
401
402Converts a text file to/from dos format to unix format.
403
404Options:
405
406 -u output will be in UNIX format
407 -d output will be in DOS format
408
409- when no option is given then input format will be automaticaly detected
410
411 and converted to the oposite format on output
412- when no file is given, then stdin is used as input and stdout as output
413
414-------------------------------
415
416=item I<dpkg>
417
418dpkg [B<-i>|B<-r>|-B<-unpack>|-B<-configure>] my.deb
419
420WORK IN PROGRESS, only usefull for debian-installer
421
422-------------------------------
423
424=item I<dpkg_deb>
425
426dpkg_deb [B<-cexX>] file directory
427
428Perform actions on debian packages (.debs)
429
430Options:
431
432 -c List contents of filesystem tree (verbose)
433 -l List contents of filesystem tree (.list format)
434 -e Extract control files to directory
435 -x Exctract packages filesystem tree to directory
436 -X Verbose extract
437
438Example:
439
John Beppue708cb52001-03-15 21:08:01 +0000440 $ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000441
442-------------------------------
443
444=item I<du>
445
446du [B<-lshmk>] [FILE]...
447
448Summarizes disk space used for each FILE and/or directory.
449Disk space is printed in units of 1024 bytes.
450
451Options:
452
453 -l count sizes many times if hard linked
454 -s display only a total for each argument
455 -h print sizes in human readable format (e.g., 1K 243M 2G )
456 -m print sizes in megabytes
457 -k print sizes in kilobytes(default)
458
459Example:
460
John Beppue708cb52001-03-15 21:08:01 +0000461 $ du
462 16 ./CVS
463 12 ./kernel-patches/CVS
464 80 ./kernel-patches
465 12 ./tests/CVS
466 36 ./tests
467 12 ./scripts/CVS
468 16 ./scripts
469 12 ./docs/CVS
470 104 ./docs
471 2417 .
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000472
473-------------------------------
474
475=item I<dumpkmap>
476
477dumpkmap > keymap
Eric Andersen61dc0572000-07-11 17:29:36 +0000478
Eric Andersen337ec1b2000-11-17 17:23:16 +0000479Prints out a binary keyboard translation table to standard output.
Eric Andersen61dc0572000-07-11 17:29:36 +0000480
Eric Andersen18a10142000-09-01 16:12:57 +0000481Example:
482
John Beppue708cb52001-03-15 21:08:01 +0000483 $ dumpkmap > keymap
Eric Andersen18a10142000-09-01 16:12:57 +0000484
Eric Andersen61dc0572000-07-11 17:29:36 +0000485-------------------------------
486
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000487=item I<dutmp>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000488
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000489dutmp [FILE]
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000490
491Dump utmp file format (pipe delimited) from FILE
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000492or stdin to stdout. (i.e. 'dutmp /var/run/utmp')
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000493
494Example:
495
John Beppue708cb52001-03-15 21:08:01 +0000496 $ dutmp /var/run/utmp
497 8|7||si|||0|0|0|955637625|760097|0
498 2|0|~|~~|reboot||0|0|0|955637625|782235|0
499 1|20020|~|~~|runlevel||0|0|0|955637625|800089|0
500 8|125||l4|||0|0|0|955637629|998367|0
501 6|245|tty1|1|LOGIN||0|0|0|955637630|998974|0
502 6|246|tty2|2|LOGIN||0|0|0|955637630|999498|0
503 7|336|pts/0|vt00andersen|andersen|:0.0|0|0|0|955637763|0|0
Pavel Roskin1a804e42000-06-21 21:38:00 +0000504
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000505-------------------------------
506
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000507=item I<echo>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000508
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000509echo [B<-neE>] [ARG ...]
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000510
511Prints the specified ARGs to stdout
512
513Options:
514
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000515 -n suppress trailing newline
516 -e interpret backslash-escaped characters (i.e. \t=tab etc)
517 -E disable interpretation of backslash-escaped characters
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000518
519Example:
520
John Beppue708cb52001-03-15 21:08:01 +0000521 $ echo Erik is cool
522 Erik is cool
523 $ echo -e Erik
524 is
525 cool
526 Erik
527 is
528 cool
529 $ echo Erik
530 is
531 cool
532 Erik
533 is
534 cool
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000535
536-------------------------------
537
538=item I<expr>
539
540expr EXPRESSION
Eric Andersen1b355eb2000-09-05 17:37:48 +0000541
542Prints the value of EXPRESSION to standard output.
543
544EXPRESSION may be:
545
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000546 ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2
547 ARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0
548 ARG1 < ARG2 ARG1 is less than ARG2
549 ARG1 <= ARG2 ARG1 is less than or equal to ARG2
550 ARG1 = ARG2 ARG1 is equal to ARG2
551 ARG1 != ARG2 ARG1 is unequal to ARG2
552 ARG1 >= ARG2 ARG1 is greater than or equal to ARG2
553 ARG1 > ARG2 ARG1 is greater than ARG2
554 ARG1 + ARG2 arithmetic sum of ARG1 and ARG2
555 ARG1 - ARG2 arithmetic difference of ARG1 and ARG2
556 ARG1 * ARG2 arithmetic product of ARG1 and ARG2
557 ARG1 / ARG2 arithmetic quotient of ARG1 divided by ARG2
558 ARG1 % ARG2 arithmetic remainder of ARG1 divided by ARG2
Eric Andersen1b355eb2000-09-05 17:37:48 +0000559 STRING : REGEXP anchored pattern match of REGEXP in STRING
560 match STRING REGEXP same as STRING : REGEXP
561 substr STRING POS LENGTH substring of STRING, POS counted from 1
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000562 index STRING CHARS index in STRING where any CHARS is found,
563 or 0
Eric Andersen1b355eb2000-09-05 17:37:48 +0000564 length STRING length of STRING
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000565 quote TOKEN interpret TOKEN as a string, even if
566 it is a keyword like `match' or an
567 operator like `/'
Eric Andersen1b355eb2000-09-05 17:37:48 +0000568 ( EXPRESSION ) value of EXPRESSION
569
570Beware that many operators need to be escaped or quoted for shells.
571Comparisons are arithmetic if both ARGs are numbers, else
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000572lexicographical. Pattern matches return the string matched between
573\( and \) or null; if \( and \) are not used, they return the number
Eric Andersen1b355eb2000-09-05 17:37:48 +0000574of characters matched or 0.
575
576-------------------------------
577
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000578=item I<false>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000579
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000580false
581
582Return an exit code of FALSE (1).
Erik Andersen5e1189e2000-04-15 16:34:54 +0000583
584Example:
585
John Beppue708cb52001-03-15 21:08:01 +0000586 $ false
587 $ echo $?
588 1
Erik Andersen5e1189e2000-04-15 16:34:54 +0000589
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000590-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +0000591
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000592=item I<fbset>
John Beppu46a4e762000-01-18 22:33:11 +0000593
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000594fbset [options] [mode]
John Beppu4581b4c2000-01-19 15:04:41 +0000595
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000596Show and modify frame buffer settings
John Beppu4581b4c2000-01-19 15:04:41 +0000597
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000598Example:
599
John Beppue708cb52001-03-15 21:08:01 +0000600 $ fbset
601 mode 1024x768-76
602 geometry 1024 768 1024 768 16
603 timings 12714 128 32 16 4 128 4
604 accel false
605 rgba 5/11,6/5,5/0,0/0
606 endmode
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000607
608-------------------------------
609
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000610=item I<fdflush>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000611
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000612fdflush DEVICE
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000613
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000614Forces floppy disk drive to detect disk change
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000615
616-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +0000617
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000618=item I<find>
John Beppu46a4e762000-01-18 22:33:11 +0000619
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000620find [PATH...] [EXPRESSION]
John Beppu4581b4c2000-01-19 15:04:41 +0000621
622Search for files in a directory hierarchy. The default PATH is
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000623the current directory; default EXPRESSION is 'B<-print>'
John Beppu4581b4c2000-01-19 15:04:41 +0000624
Erik Andersen62dc17a2000-04-13 01:18:23 +0000625EXPRESSION may consist of:
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000626
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000627 -follow Dereference symbolic links.
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000628 -name PATTERN File name (leading directories removed) matches PATTERN.
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000629 -type X Filetype matches X (where X is one of: f,d,l,b,c,...)
630 -perm PERMS Permissions match any of (+NNN); all of (-NNN);
631 or exactly (NNN)
632 -mtime TIME Modified time is greater than (+N); less than (-N);
633 or exactly (N) days
Erik Andersen62dc17a2000-04-13 01:18:23 +0000634
635Example:
636
John Beppue708cb52001-03-15 21:08:01 +0000637 $ find / -name /etc/passwd
638 /etc/passwd
John Beppu4581b4c2000-01-19 15:04:41 +0000639
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000640-------------------------------
641
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000642=item I<free>
John Beppu46a4e762000-01-18 22:33:11 +0000643
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000644free
John Beppu4581b4c2000-01-19 15:04:41 +0000645
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000646Displays the amount of free and used system memory
Erik Andersen62dc17a2000-04-13 01:18:23 +0000647
648Example:
649
John Beppue708cb52001-03-15 21:08:01 +0000650 $ free
651 total used free shared buffers
652 Mem: 257628 248724 8904 59644 93124
653 Swap: 128516 8404 120112
654 Total: 386144 257128 129016
655
Erik Andersen62dc17a2000-04-13 01:18:23 +0000656
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000657-------------------------------
658
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000659=item I<freeramdisk>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000660
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000661freeramdisk DEVICE
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000662
Erik Andersen7ab9c7e2000-05-12 19:41:47 +0000663Frees all memory used by the specified ramdisk.
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000664
665Example:
666
John Beppue708cb52001-03-15 21:08:01 +0000667 $ freeramdisk /dev/ram2
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000668
669-------------------------------
Erik Andersen62dc17a2000-04-13 01:18:23 +0000670
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000671=item I<fsck_minix>
John Beppu46a4e762000-01-18 22:33:11 +0000672
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000673fsck_minix [B<-larvsmf>] /dev/name
John Beppu4581b4c2000-01-19 15:04:41 +0000674
675Performs a consistency check for MINIX filesystems.
676
Eric Andersen2086e3d2000-07-04 22:17:01 +0000677Options:
John Beppuf17792c2000-04-13 03:16:01 +0000678
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000679 -l Lists all filenames
680 -r Perform interactive repairs
681 -a Perform automatic repairs
682 -v verbose
683 -s Outputs super-block information
684 -m Activates MINIX-like mode not cleared warnings
685 -f Force file system check.
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000686
687-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +0000688
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000689=item I<getopt>
Eric Andersena1f16bb2000-08-21 22:02:34 +0000690
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000691getopt [OPTIONS]...
Eric Andersena1f16bb2000-08-21 22:02:34 +0000692
693Parse command options
694
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000695 -a, --alternative Allow long options starting with single -
696 -l, --longoptions=longopts Long options to be recognized
697 -n, --name=progname The name under which errors are reported
698 -o, --options=optstring Short options to be recognized
699 -q, --quiet Disable error reporting by getopt(3)
700 -Q, --quiet-output No normal output
701 -s, --shell=shell Set shell quoting conventions
702 -T, --test Test for getopt(1) version
703 -u, --unqote Do not quote the output
Eric Andersena1f16bb2000-08-21 22:02:34 +0000704
705Example:
Eric Andersene4c4d692000-08-21 23:29:45 +0000706
John Beppue708cb52001-03-15 21:08:01 +0000707 $ cat getopt.test
708 GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \
709 -n 'example.busybox' -- $@`
710 if [ $? != 0 ] ; then exit 1 ; fi
711 eval set -- $GETOPT
712 while true ; do
713 case $1 in
714 -a|--a-long) echo Option a ; shift ;;
715 -b|--b-long) echo Option b, argument `$2' ; shift 2 ;;
716 -c|--c-long)
717 case $2 in
718 \) echo Option c, no argument; shift 2 ;;
719 *) echo Option c, argument `$2' ; shift 2 ;;
720 esac ;;
721 --) shift ; break ;;
722 *) echo Internal error! ; exit 1 ;;
723 esac
724 done
Eric Andersena1f16bb2000-08-21 22:02:34 +0000725
726-------------------------------
727
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000728=item I<grep>
John Beppu46a4e762000-01-18 22:33:11 +0000729
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000730grep [B<-ihHnqvs>] pattern [files...]
John Beppu4581b4c2000-01-19 15:04:41 +0000731
Erik Andersen62dc17a2000-04-13 01:18:23 +0000732Search for PATTERN in each FILE or standard input.
733
Eric Andersen2086e3d2000-07-04 22:17:01 +0000734Options:
John Beppuf17792c2000-04-13 03:16:01 +0000735
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000736 -H prefix output lines with filename where match was found
737 -h suppress the prefixing filename on output
738 -i ignore case distinctions
739 -n print line number with output lines
740 -q be quiet. Returns 0 if result was found, 1 otherwise
741 -v select non-matching lines
742 -s suppress file open/read error messages
Erik Andersen62dc17a2000-04-13 01:18:23 +0000743
Erik Andersen62dc17a2000-04-13 01:18:23 +0000744Example:
745
John Beppue708cb52001-03-15 21:08:01 +0000746 $ grep root /etc/passwd
747 root:x:0:0:root:/root:/bin/bash
748 $ grep ^[rR]oo. /etc/passwd
749 root:x:0:0:root:/root:/bin/bash
John Beppu4581b4c2000-01-19 15:04:41 +0000750
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000751-------------------------------
752
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000753=item I<gunzip>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000754
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000755gunzip [OPTION]... FILE
Erik Andersen5e1189e2000-04-15 16:34:54 +0000756
757Uncompress FILE (or standard input if FILE is '-').
758
759Options:
760
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000761 -c Write output to standard output
762 -t Test compressed file integrity
Erik Andersen5e1189e2000-04-15 16:34:54 +0000763
764Example:
765
John Beppue708cb52001-03-15 21:08:01 +0000766 $ ls -la /tmp/BusyBox*
767 -rw-rw-r-- 1 andersen andersen 557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz
768 $ gunzip /tmp/BusyBox-0.43.tar.gz
769 $ ls -la /tmp/BusyBox*
770 -rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000771
772-------------------------------
773
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000774=item I<gzip>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000775
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000776gzip [OPTION]... FILE
Erik Andersen5e1189e2000-04-15 16:34:54 +0000777
778Compress FILE with maximum compression.
John Beppu9057b6a2000-04-16 10:22:28 +0000779When FILE is '-', reads standard input. Implies B<-c>.
Erik Andersen5e1189e2000-04-15 16:34:54 +0000780
781Options:
782
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000783 -c Write output to standard output instead of FILE.gz
784 -d decompress
Erik Andersen5e1189e2000-04-15 16:34:54 +0000785
786Example:
787
John Beppue708cb52001-03-15 21:08:01 +0000788 $ ls -la /tmp/BusyBox*
789 -rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar
790 $ gzip /tmp/BusyBox-0.43.tar
791 $ ls -la /tmp/BusyBox*
792 -rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/BusyBox-0.43.tar.gz
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000793
794-------------------------------
795
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000796=item I<halt>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000797
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000798halt
Erik Andersen5e1189e2000-04-15 16:34:54 +0000799
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000800Halt the system.
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000801
802-------------------------------
803
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000804=item I<head>
John Beppu46a4e762000-01-18 22:33:11 +0000805
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000806head [OPTION] [FILE]...
John Beppu4581b4c2000-01-19 15:04:41 +0000807
808Print first 10 lines of each FILE to standard output.
809With more than one FILE, precede each with a header giving the
810file name. With no FILE, or when FILE is -, read standard input.
Erik Andersen62dc17a2000-04-13 01:18:23 +0000811
812Options:
John Beppuf17792c2000-04-13 03:16:01 +0000813
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000814 -n NUM Print first NUM lines instead of first 10
Erik Andersen62dc17a2000-04-13 01:18:23 +0000815
816Example:
817
John Beppue708cb52001-03-15 21:08:01 +0000818 $ head -n 2 /etc/passwd
819 root:x:0:0:root:/root:/bin/bash
820 daemon:x:1:1:daemon:/usr/sbin:/bin/sh
John Beppu4581b4c2000-01-19 15:04:41 +0000821
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000822-------------------------------
823
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000824=item I<hostid>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000825
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000826hostid
Erik Andersen5e1189e2000-04-15 16:34:54 +0000827
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000828Print out a unique 32-bit identifier for the machine.
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000829
830-------------------------------
831
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000832=item I<hostname>
John Beppu46a4e762000-01-18 22:33:11 +0000833
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000834hostname [OPTION] {hostname | B<-F> file}
John Beppu46a4e762000-01-18 22:33:11 +0000835
John Beppu4581b4c2000-01-19 15:04:41 +0000836Get or set the hostname or DNS domain name. If a hostname is given
John Beppuf17792c2000-04-13 03:16:01 +0000837(or a file with the B<-F> parameter), the host name will be set.
John Beppu4581b4c2000-01-19 15:04:41 +0000838
Erik Andersen62dc17a2000-04-13 01:18:23 +0000839Options:
John Beppuf17792c2000-04-13 03:16:01 +0000840
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000841 -s Short
842 -i Addresses for the hostname
843 -d DNS domain name
844 -F, --file FILE Use the contents of FILE to specify the hostname
Erik Andersen62dc17a2000-04-13 01:18:23 +0000845
846Example:
847
John Beppue708cb52001-03-15 21:08:01 +0000848 $ hostname
849 slag
John Beppu46a4e762000-01-18 22:33:11 +0000850
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000851-------------------------------
852
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000853=item I<id>
854
855id [OPTIONS]... [USERNAME]
Erik Andersen73c8c9c2000-05-13 05:36:13 +0000856
857Print information for USERNAME or the current user
858
859Options:
860
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000861 -g prints only the group ID
862 -u prints only the user ID
863 -n print a name instead of a number (with for -ug)
864 -r prints the real user ID instead of the effective ID (with -ug)
Erik Andersen73c8c9c2000-05-13 05:36:13 +0000865
866Example:
867
John Beppue708cb52001-03-15 21:08:01 +0000868 $ id
869 uid=1000(andersen) gid=1000(andersen)
Erik Andersen73c8c9c2000-05-13 05:36:13 +0000870
871-------------------------------
872
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000873=item I<ifconfig>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000874
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000875ifconfig [B<-a>] <interface> [<address>]
876
877configure a network interface
878
879Options:
880
881 [[-]broadcast [<address>]] [[-]pointopoint [<address>]]
882 [netmask <address>] [dstaddr <address>]
883 [outfill <NN>] [keepalive <NN>]
884 [hw ether <address>] [metric <NN>] [mtu <NN>]
885 [[-]trailers] [[-]arp] [[-]allmulti]
886 [multicast] [[-]promisc] [txqueuelen <NN>] [[-]dynamic]
887 [mem_start <NN>] [io_addr <NN>] [irq <NN>]
888 [up|down] ...
889
890-------------------------------
891
892=item I<init>
893
894init
Erik Andersen5e1189e2000-04-15 16:34:54 +0000895
896Init is the parent of all processes.
897
898This version of init is designed to be run only by the kernel.
899
900BusyBox init doesn't support multiple runlevels. The runlevels field of
901the /etc/inittab file is completely ignored by BusyBox init. If you want
902runlevels, use sysvinit.
903
904BusyBox init works just fine without an inittab. If no inittab is found,
905it has the following default behavior:
906
907 ::sysinit:/etc/init.d/rcS
908 ::askfirst:/bin/sh
Eric Andersenc97ec342001-04-03 18:01:51 +0000909 ::ctrlaltdel:/sbin/reboot
910 ::shutdown:/sbin/swapoff -a
911 ::shutdown:/bin/umount -a -r
Erik Andersen5e1189e2000-04-15 16:34:54 +0000912
913if it detects that /dev/console is _not_ a serial console, it will also run:
914
915 tty2::askfirst:/bin/sh
Eric Andersenc97ec342001-04-03 18:01:51 +0000916 tty3::askfirst:/bin/sh
917 tty4::askfirst:/bin/sh
Erik Andersen5e1189e2000-04-15 16:34:54 +0000918
919If you choose to use an /etc/inittab file, the inittab entry format is as follows:
920
921 <id>:<runlevels>:<action>:<process>
922
923 <id>:
924
925 WARNING: This field has a non-traditional meaning for BusyBox init!
926 The id field is used by BusyBox init to specify the controlling tty for
927 the specified process to run on. The contents of this field are
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000928 appended to /dev/ and used as-is. There is no need for this field to
Erik Andersen5e1189e2000-04-15 16:34:54 +0000929 be unique, although if it isn't you may have strange results. If this
Eric Andersen0d2acb02000-12-18 20:36:02 +0000930 field is left blank, the controlling tty is set to the console. Also
931 note that if BusyBox detects that a serial console is in use, then only
932 entries whose controlling tty is either the serial console or /dev/null
933 will be run. BusyBox init does nothing with utmp. We don't need no
934 stinkin' utmp.
Erik Andersen5e1189e2000-04-15 16:34:54 +0000935
936 <runlevels>:
937
938 The runlevels field is completely ignored.
939
940 <action>:
941
942 Valid actions include: sysinit, respawn, askfirst, wait,
Eric Andersenc97ec342001-04-03 18:01:51 +0000943 once, ctrlaltdel, and shutdown.
Erik Andersen5e1189e2000-04-15 16:34:54 +0000944
Eric Anderseneb4218d2000-12-08 20:38:00 +0000945 The available actions can be classified into two groups: actions
946 that are run only once, and actions that are re-run when the specified
947 process exits.
948
949 Run only-once actions:
950
951 'sysinit' is the first item run on boot. init waits until all
952 sysinit actions are completed before continuing. Following the
953 completion of all sysinit actions, all 'wait' actions are run.
954 'wait' actions, like 'sysinit' actions, cause init to wait until
955 the specified task completes. 'once' actions are asyncronous,
956 therefore, init does not wait for them to complete. 'ctrlaltdel'
Eric Andersenc97ec342001-04-03 18:01:51 +0000957 actions are run when the system detects that someone on the system
958 console has pressed the CTRL-ALT-DEL key combination. Typically one
959 wants to run 'reboot' at this point to cause the system to reboot.
960 Finally the 'shutdown' action specifies the actions to taken when
961 init is told to reboot. Unmounting filesystems and disabling swap
962 is a very good here.
Eric Anderseneb4218d2000-12-08 20:38:00 +0000963
964 Run repeatedly actions:
965
966 'respawn' actions are run after the 'once' actions. When a process
967 started with a 'respawn' action exits, init automatically restarts
968 it. Unlike sysvinit, BusyBox init does not stop processes from
969 respawning out of control. The 'askfirst' actions acts just like
970 respawn, except that before running the specified process it
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000971 displays the line Please press Enter to activate this console.
Eric Anderseneb4218d2000-12-08 20:38:00 +0000972 and then waits for the user to press enter before starting the
973 specified process.
974
975 Unrecognized actions (like initdefault) will cause init to emit an
976 error message, and then go along with its business. All actions are
977 run in the reverse order from how they appear in /etc/inittab.
Erik Andersen5e1189e2000-04-15 16:34:54 +0000978
979 <process>:
980
981 Specifies the process to be executed and it's command line.
982
Erik Andersen5e1189e2000-04-15 16:34:54 +0000983Example /etc/inittab file:
Mark Whitleyf71378c2001-03-15 21:20:25 +0000984
Erik Andersen5e1189e2000-04-15 16:34:54 +0000985 ::sysinit:/etc/init.d/rcS
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000986
Mark Whitleyf71378c2001-03-15 21:20:25 +0000987 ::askfirst:-/bin/sh
988 tty2::askfirst:-/bin/sh
Pavel Roskinc9db2e82000-09-15 17:24:13 +0000989 tty3::askfirst:-/bin/sh
990 tty4::askfirst:-/bin/sh
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000991
Pavel Roskinc9db2e82000-09-15 17:24:13 +0000992 tty4::respawn:/sbin/getty 38400 tty5
993 tty5::respawn:/sbin/getty 38400 tty6
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000994
Eric Andersenc97ec342001-04-03 18:01:51 +0000995 ::ctrlaltdel:/sbin/reboot
996 ::shutdown:/bin/umount -a -r
997 ::shutdown:/sbin/swapoff -a
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000998
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000999
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001000-------------------------------
1001
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001002=item I<insmod>
Eric Andersenfeb47c02000-06-21 21:03:13 +00001003
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001004insmod [OPTION]... MODULE [symbol=value]...
Eric Andersenfeb47c02000-06-21 21:03:13 +00001005
1006Loads the specified kernel modules into the kernel.
1007
1008Options:
1009
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001010 -f Force module to load into the wrong kernel version.
1011 -k Make module autoclean-able.
1012 -v verbose output
1013 -L Lock to prevent simultaneous loads of a module
1014 -x do not export externs
Eric Andersenfeb47c02000-06-21 21:03:13 +00001015
1016-------------------------------
1017
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001018=item I<kill>
John Beppu46a4e762000-01-18 22:33:11 +00001019
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001020kill [B<-signal>] process-id [process-id ...]
John Beppu4581b4c2000-01-19 15:04:41 +00001021
Erik Andersen62dc17a2000-04-13 01:18:23 +00001022Send a signal (default is SIGTERM) to the specified process(es).
1023
1024Options:
John Beppuf17792c2000-04-13 03:16:01 +00001025
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001026 -l List all signal names and numbers.
Erik Andersen62dc17a2000-04-13 01:18:23 +00001027
1028Example:
1029
John Beppue708cb52001-03-15 21:08:01 +00001030 $ ps | grep apache
1031 252 root root S [apache]
1032 263 www-data www-data S [apache]
1033 264 www-data www-data S [apache]
1034 265 www-data www-data S [apache]
1035 266 www-data www-data S [apache]
1036 267 www-data www-data S [apache]
1037 $ kill 252
John Beppu4581b4c2000-01-19 15:04:41 +00001038
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001039-------------------------------
1040
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001041=item I<killall>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001042
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001043killall [B<-signal>] process-name [process-name ...]
Erik Andersen5e1189e2000-04-15 16:34:54 +00001044
1045Send a signal (default is SIGTERM) to the specified process(es).
1046
1047Options:
John Beppu9057b6a2000-04-16 10:22:28 +00001048
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001049 -l List all signal names and numbers.
Erik Andersen5e1189e2000-04-15 16:34:54 +00001050
1051Example:
1052
John Beppue708cb52001-03-15 21:08:01 +00001053 $ killall apache
1054
Erik Andersen5e1189e2000-04-15 16:34:54 +00001055
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001056-------------------------------
1057
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001058=item I<klogd>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001059
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001060klogd B<-n>
1061
1062Kernel logger.
1063Options:
1064
1065 -n Run as a foreground process.
1066
1067-------------------------------
1068
1069=item I<length>
1070
1071length STRING
Erik Andersen5e1189e2000-04-15 16:34:54 +00001072
Erik Andersen7ab9c7e2000-05-12 19:41:47 +00001073Prints out the length of the specified STRING.
Erik Andersen5e1189e2000-04-15 16:34:54 +00001074
1075Example:
Erik Andersena19bc642000-05-02 06:40:02 +00001076
John Beppue708cb52001-03-15 21:08:01 +00001077 $ length Hello
1078 5
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001079
1080-------------------------------
1081
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001082=item I<ln>
John Beppu46a4e762000-01-18 22:33:11 +00001083
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001084ln [OPTION] TARGET... LINK_NAME|DIRECTORY
Erik Andersena19bc642000-05-02 06:40:02 +00001085
John Beppu4581b4c2000-01-19 15:04:41 +00001086Create a link named LINK_NAME or DIRECTORY to the specified TARGET
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001087
Eric Andersenaddc9c22000-06-21 22:53:24 +00001088You may use '--' to indicate that all following arguments are non-options.
Pavel Roskin1a804e42000-06-21 21:38:00 +00001089
John Beppu4581b4c2000-01-19 15:04:41 +00001090Options:
1091
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001092 -s make symbolic links instead of hard links
1093 -f remove existing destination files
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001094 -n no dereference symlinks - treat like normal file
Pavel Roskin1a804e42000-06-21 21:38:00 +00001095
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001096Example:
1097
John Beppue708cb52001-03-15 21:08:01 +00001098 $ ln -s BusyBox /tmp/ls
1099 $ ls -l /tmp/ls
1100 lrwxrwxrwx 1 root root 7 Apr 12 18:39 ls -> BusyBox*
1101
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001102
1103-------------------------------
1104
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001105=item I<loadacm>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001106
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001107loadacm < mapfile
Erik Andersen3fe7f9f2000-04-19 03:59:10 +00001108
1109Loads an acm from standard input.
1110
1111Example:
1112
John Beppue708cb52001-03-15 21:08:01 +00001113 $ loadacm < /etc/i18n/acmname
1114
Erik Andersen5e1189e2000-04-15 16:34:54 +00001115
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001116-------------------------------
1117
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001118=item I<loadfont>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001119
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001120loadfont < font
Erik Andersena6c75222000-04-18 00:00:52 +00001121
1122Loads a console font from standard input.
1123
Erik Andersen3fe7f9f2000-04-19 03:59:10 +00001124Example:
1125
John Beppue708cb52001-03-15 21:08:01 +00001126 $ loadfont < /etc/i18n/fontname
1127
Erik Andersen5e1189e2000-04-15 16:34:54 +00001128
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001129-------------------------------
1130
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001131=item I<loadkmap>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001132
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001133loadkmap < keymap
Erik Andersen3fe7f9f2000-04-19 03:59:10 +00001134
1135Loads a binary keyboard translation table from standard input.
1136
1137Example:
1138
John Beppue708cb52001-03-15 21:08:01 +00001139 $ loadkmap < /etc/i18n/lang-keymap
1140
Erik Andersen5e1189e2000-04-15 16:34:54 +00001141
1142-------------------------------
1143
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001144=item I<logger>
Erik Andersen5e1189e2000-04-15 16:34:54 +00001145
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001146logger [OPTION]... [MESSAGE]
Erik Andersen5e1189e2000-04-15 16:34:54 +00001147
Matt Kraai004827d2001-01-02 22:54:12 +00001148Write MESSAGE to the system log. If MESSAGE is omitted, log stdin.
Erik Andersen5e1189e2000-04-15 16:34:54 +00001149
1150Options:
1151
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001152 -s Log to stderr as well as the system log.
1153 -t Log using the specified tag (defaults to user name).
1154 -p Enter the message with the specified priority.
1155 This may be numerical or a ``facility.level'' pair.
Erik Andersen5e1189e2000-04-15 16:34:54 +00001156
1157Example:
1158
John Beppue708cb52001-03-15 21:08:01 +00001159 $ logger hello
1160
Erik Andersen5e1189e2000-04-15 16:34:54 +00001161
1162-------------------------------
1163
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001164=item I<logname>
Erik Andersen5e1189e2000-04-15 16:34:54 +00001165
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001166logname
Erik Andersen5e1189e2000-04-15 16:34:54 +00001167
1168Print the name of the current user.
1169
1170Example:
1171
John Beppue708cb52001-03-15 21:08:01 +00001172 $ logname
1173 root
1174
Erik Andersen5e1189e2000-04-15 16:34:54 +00001175
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001176-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00001177
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001178=item I<logread>
John Beppu46a4e762000-01-18 22:33:11 +00001179
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001180logread
1181
1182Shows the messages from syslogd (using circular buffer).
1183
1184-------------------------------
1185
1186=item I<ls>
1187
1188ls [B<-1AacCdeFilnpLRrSsTtuvwxXhk>] [filenames...]
1189
1190List directory contents
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001191
1192Options:
1193
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001194 -1 list files in a single column
1195 -A do not list implied . and ..
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001196 -a do not hide entries starting with .
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001197 -C list entries by columns
1198 -c with -l: show ctime
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001199 -d list directory entries instead of contents
1200 -e list both full date and full time
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001201 -F append indicator (one of */=@|) to entries
1202 -i list the i-node for each file
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001203 -l use a long listing format
1204 -n list numeric UIDs and GIDs instead of names
1205 -p append indicator (one of /=@|) to entries
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001206 -L list entries pointed to by symbolic links
1207 -R list subdirectories recursively
1208 -r sort the listing in reverse order
1209 -S sort the listing by file size
1210 -s list the size of each file, in blocks
1211 -T NUM assume Tabstop every NUM columns
1212 -t with -l: show modification time
1213 -u with -l: show access time
1214 -v sort the listing by version
1215 -w NUM assume the terminal is NUM columns wide
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001216 -x list entries by lines instead of by columns
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001217 -X sort the listing by extension
1218 -h print sizes in human readable format (e.g., 1K 243M 2G )
1219 -k print sizes in kilobytes(default)
John Beppu50ed0672000-04-13 23:44:04 +00001220
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001221-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00001222
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001223=item I<lsmod>
John Beppu46a4e762000-01-18 22:33:11 +00001224
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001225lsmod
John Beppu4581b4c2000-01-19 15:04:41 +00001226
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001227List the currently loaded kernel modules.
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001228
1229-------------------------------
1230
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001231=item I<makedevs>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001232
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001233makedevs NAME TYPE MAJOR MINOR FIRST LAST [s]
Erik Andersen5e1189e2000-04-15 16:34:54 +00001234
1235Creates a range of block or character special files
1236
1237TYPEs include:
1238
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001239 b: Make a block (buffered) device.
1240 c or u: Make a character (un-buffered) device.
1241 p: Make a named pipe. MAJOR and MINOR are ignored for named pipes.
Erik Andersen5e1189e2000-04-15 16:34:54 +00001242
1243FIRST specifies the number appended to NAME to create the first device.
1244LAST specifies the number of the last item that should be created.
1245If 's' is the last argument, the base device is created as well.
1246
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001247For example:
1248
1249 makedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63
1250 makedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8
1251
Erik Andersen5e1189e2000-04-15 16:34:54 +00001252Example:
1253
John Beppue708cb52001-03-15 21:08:01 +00001254 $ makedevs /dev/ttyS c 4 66 2 63
1255 [creates ttyS2-ttyS63]
1256 $ makedevs /dev/hda b 3 0 0 8 s
1257 [creates hda,hda1-hda8]
1258
Erik Andersen5e1189e2000-04-15 16:34:54 +00001259
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001260-------------------------------
1261
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001262=item I<md5sum>
Eric Andersen2b6ab3c2000-06-13 06:54:53 +00001263
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001264md5sum [OPTION] [FILE]...
1265or: md5sum [OPTION] B<-c> [FILE]
Eric Andersen2b6ab3c2000-06-13 06:54:53 +00001266
1267Print or check MD5 checksums.
1268
1269Options:
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001270With no FILE, or when FILE is -, read standard input.
Eric Andersen2b6ab3c2000-06-13 06:54:53 +00001271
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001272 -b read files in binary mode
1273 -c check MD5 sums against given list
1274 -t read files in text mode (default)
1275 -g read a string
Eric Andersen2b6ab3c2000-06-13 06:54:53 +00001276
1277The following two options are useful only when verifying checksums:
1278
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001279 -s don't output anything, status code shows success
1280 -w warn about improperly formated MD5 checksum lines
Eric Andersen2b6ab3c2000-06-13 06:54:53 +00001281
1282Example:
1283
John Beppue708cb52001-03-15 21:08:01 +00001284 $ md5sum < busybox
1285 6fd11e98b98a58f64ff3398d7b324003
1286 $ md5sum busybox
1287 6fd11e98b98a58f64ff3398d7b324003 busybox
1288 $ md5sum -c -
1289 6fd11e98b98a58f64ff3398d7b324003 busybox
1290 busybox: OK
1291 ^D
Eric Andersen2b6ab3c2000-06-13 06:54:53 +00001292
1293-------------------------------
1294
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001295=item I<mkdir>
John Beppu46a4e762000-01-18 22:33:11 +00001296
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001297mkdir [OPTION] DIRECTORY...
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001298
John Beppu4581b4c2000-01-19 15:04:41 +00001299Create the DIRECTORY(ies), if they do not already exist
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001300
John Beppu4581b4c2000-01-19 15:04:41 +00001301Options:
1302
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001303 -m set permission mode (as in chmod), not rwxrwxrwx - umask
1304 -p no error if existing, make parent directories as needed
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001305
1306Example:
1307
John Beppue708cb52001-03-15 21:08:01 +00001308 $ mkdir /tmp/foo
1309 $ mkdir /tmp/foo
1310 /tmp/foo: File exists
1311 $ mkdir /tmp/foo/bar/baz
1312 /tmp/foo/bar/baz: No such file or directory
1313 $ mkdir -p /tmp/foo/bar/baz
1314
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001315
1316-------------------------------
1317
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001318=item I<mkfifo>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001319
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001320mkfifo [OPTIONS] name
Erik Andersen5e1189e2000-04-15 16:34:54 +00001321
1322Creates a named pipe (identical to 'mknod name p')
1323
1324Options:
John Beppu9057b6a2000-04-16 10:22:28 +00001325
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001326 -m create the pipe using the specified mode (default a=rw)
Erik Andersen5e1189e2000-04-15 16:34:54 +00001327
1328-------------------------------
1329
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001330=item I<mkfs_minix>
Erik Andersen5e1189e2000-04-15 16:34:54 +00001331
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001332mkfs_minix [B<-c> | B<-l> filename] [B<-nXX>] [B<-iXX>] /dev/name [blocks]
Erik Andersen5e1189e2000-04-15 16:34:54 +00001333
1334Make a MINIX filesystem.
1335
Eric Andersen2086e3d2000-07-04 22:17:01 +00001336Options:
Erik Andersen5e1189e2000-04-15 16:34:54 +00001337
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001338 -c Check the device for bad blocks
1339 -n [14|30] Specify the maximum length of filenames
1340 -i INODES Specify the number of inodes for the filesystem
1341 -l FILENAME Read the bad blocks list from FILENAME
1342 -v Make a Minix version 2 filesystem
Erik Andersen5e1189e2000-04-15 16:34:54 +00001343
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001344-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00001345
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001346=item I<mknod>
John Beppu46a4e762000-01-18 22:33:11 +00001347
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001348mknod [OPTIONS] NAME TYPE MAJOR MINOR
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001349
Erik Andersen5e1189e2000-04-15 16:34:54 +00001350Create a special file (block, character, or pipe).
1351
1352Options:
John Beppu9057b6a2000-04-16 10:22:28 +00001353
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001354 -m create the special file using the specified mode (default a=rw)
John Beppu4581b4c2000-01-19 15:04:41 +00001355
1356TYPEs include:
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001357
1358 b: Make a block (buffered) device.
1359 c or u: Make a character (un-buffered) device.
1360 p: Make a named pipe. MAJOR and MINOR are ignored for named pipes.
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001361
1362Example:
1363
John Beppue708cb52001-03-15 21:08:01 +00001364 $ mknod /dev/fd0 b 2 0
1365 $ mknod -m 644 /tmp/pipe p
1366
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001367
1368-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00001369
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001370=item I<mkswap>
John Beppu46a4e762000-01-18 22:33:11 +00001371
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001372mkswap [B<-c>] [B<-v0>|B<-v1>] device [block-count]
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001373
John Beppu4581b4c2000-01-19 15:04:41 +00001374Prepare a disk partition to be used as a swap partition.
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001375
John Beppu4581b4c2000-01-19 15:04:41 +00001376Options:
1377
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001378 -c Check for read-ability.
1379 -v0 Make version 0 swap [max 128 Megs].
1380 -v1 Make version 1 swap [big!] (default for kernels >
1381 2.1.117).
1382 block-count Number of block to use (default is entire partition).
John Beppu50ed0672000-04-13 23:44:04 +00001383
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001384-------------------------------
1385
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001386=item I<mktemp>
Erik Andersen227a59b2000-04-25 23:24:55 +00001387
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001388mktemp [B<-q>] TEMPLATE
Erik Andersen227a59b2000-04-25 23:24:55 +00001389
1390Creates a temporary file with its name based on TEMPLATE.
1391TEMPLATE is any name with six `Xs' (i.e. /tmp/temp.XXXXXX).
1392
1393Example:
Erik Andersena19bc642000-05-02 06:40:02 +00001394
John Beppue708cb52001-03-15 21:08:01 +00001395 $ mktemp /tmp/temp.XXXXXX
1396 /tmp/temp.mWiLjM
1397 $ ls -la /tmp/temp.mWiLjM
1398 -rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM
1399
Erik Andersen227a59b2000-04-25 23:24:55 +00001400
1401-------------------------------
1402
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001403=item I<more>
John Beppu46a4e762000-01-18 22:33:11 +00001404
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001405more [FILE ...]
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001406
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001407More is a filter for viewing FILE one screenful at a time.
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001408
1409Example:
1410
John Beppue708cb52001-03-15 21:08:01 +00001411 $ dmesg | more
1412
John Beppu50ed0672000-04-13 23:44:04 +00001413
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001414-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00001415
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001416=item I<mount>
John Beppu46a4e762000-01-18 22:33:11 +00001417
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001418mount [flags] device directory [B<-o> options,more-options]
1419
1420Mount a filesystem
John Beppu4581b4c2000-01-19 15:04:41 +00001421
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001422Flags:
John Beppu4581b4c2000-01-19 15:04:41 +00001423
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001424 -a: Mount all filesystems in fstab.
1425 -f: Fake Add entry to mount table but don't mount it.
1426 -n: Don't write a mount table entry.
1427 -o option: One of many filesystem options, listed below.
1428 -r: Mount the filesystem read-only.
1429 -t fs-type: Specify the filesystem type.
1430 -w: Mount for reading and writing (default).
John Beppu4581b4c2000-01-19 15:04:41 +00001431
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001432Options for use with the B<-o> flag:
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001433
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001434 async/sync: Writes are asynchronous / synchronous.
1435 atime/noatime: Enable / disable updates to inode access times.
1436 dev/nodev: Allow use of special device files / disallow them.
1437 exec/noexec: Allow use of executable files / disallow them.
1438 loop: Mounts a file via loop device.
1439 suid/nosuid: Allow set-user-id-root programs / disallow them.
1440 remount: Re-mount a mounted filesystem, changing its flags.
1441 ro/rw: Mount for read-only / read-write.
1442
1443There are EVEN MORE flags that are specific to each filesystem.
1444You'll have to see the written documentation for those.
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001445
1446Example:
1447
John Beppue708cb52001-03-15 21:08:01 +00001448 $ mount
1449 /dev/hda3 on / type minix (rw)
1450 proc on /proc type proc (rw)
1451 devpts on /dev/pts type devpts (rw)
1452 $ mount /dev/fd0 /mnt -t msdos -o ro
1453 $ mount /tmp/diskimage /opt -t ext2 -o loop
1454
John Beppu50ed0672000-04-13 23:44:04 +00001455
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001456-------------------------------
1457
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001458=item I<mt>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001459
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001460mt [B<-f> device] opcode value
Erik Andersen5e1189e2000-04-15 16:34:54 +00001461
1462Control magnetic tape drive operation
1463
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001464Available Opcodes:
1465
1466bsf bsfm bsr bss datacompression drvbuffer eof eom erase
1467fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2
1468ras3 reset retension rew rewoffline seek setblk setdensity
1469setpart tell unload unlock weof wset
1470
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001471-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00001472
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001473=item I<mv>
John Beppu46a4e762000-01-18 22:33:11 +00001474
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001475mv SOURCE DEST
1476or: mv SOURCE... DIRECTORY
John Beppu4581b4c2000-01-19 15:04:41 +00001477
1478Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001479
1480Example:
1481
John Beppue708cb52001-03-15 21:08:01 +00001482 $ mv /tmp/foo /bin/bar
1483
John Beppu50ed0672000-04-13 23:44:04 +00001484
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001485-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00001486
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001487=item I<nc>
Eric Andersen028fb622000-07-04 20:07:13 +00001488
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001489nc [IP] [port]
Eric Andersen028fb622000-07-04 20:07:13 +00001490
1491Netcat opens a pipe to IP:port
1492
1493Example:
1494
John Beppue708cb52001-03-15 21:08:01 +00001495 $ nc foobar.somedomain.com 25
1496 220 foobar ESMTP Exim 3.12 help
1497 214-Commands supported:
1498 214- HELO EHLO MAIL RCPT DATA AUTH
1499 214 NOOP QUIT RSET HELP
1500 quit
1501 221 foobar closing connection
1502
Eric Andersen028fb622000-07-04 20:07:13 +00001503
1504-------------------------------
1505
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001506=item I<nslookup>
John Beppu46a4e762000-01-18 22:33:11 +00001507
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001508nslookup [HOST]
John Beppu4581b4c2000-01-19 15:04:41 +00001509
Erik Andersen5e1189e2000-04-15 16:34:54 +00001510Queries the nameserver for the IP address of the given HOST
1511
1512Example:
1513
John Beppue708cb52001-03-15 21:08:01 +00001514 $ nslookup localhost
1515 Server: default
1516 Address: default
1517
1518 Name: debian
1519 Address: 127.0.0.1
1520
John Beppu46a4e762000-01-18 22:33:11 +00001521
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001522-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00001523
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001524=item I<ping>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001525
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001526ping [OPTION]... host
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001527
1528Send ICMP ECHO_REQUEST packets to network hosts.
1529
1530Options:
1531
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001532 -c COUNT Send only COUNT pings.
Pavel Roskin0024abc2000-06-07 20:38:15 +00001533 -s SIZE Send SIZE data bytes in packets (default=56).
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001534 -q Quiet mode, only displays output at start
1535 and when finished.
Erik Andersen5e1189e2000-04-15 16:34:54 +00001536
1537Example:
1538
John Beppue708cb52001-03-15 21:08:01 +00001539 $ ping localhost
1540 PING slag (127.0.0.1): 56 data bytes
1541 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=20.1 ms
1542
1543 --- debian ping statistics ---
1544 1 packets transmitted, 1 packets received, 0% packet loss
1545 round-trip min/avg/max = 20.1/20.1/20.1 ms
1546
Erik Andersen5e1189e2000-04-15 16:34:54 +00001547
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001548-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00001549
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001550=item I<pivot_root>
John Beppu46a4e762000-01-18 22:33:11 +00001551
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001552pivot_root new_root put_old
1553
1554Move the current root file system to put_old and make new_root
1555the new root file system.
1556
1557-------------------------------
1558
1559=item I<poweroff>
1560
1561poweroff
1562
1563Halt the system and request that the kernel shut off the power.
1564
1565-------------------------------
1566
1567=item I<printf>
1568
1569printf FORMAT [ARGUMENT...]
1570
1571Formats and prints ARGUMENT(s) according to FORMAT,
1572Where FORMAT controls the output exactly as in C printf.
1573
1574Example:
1575
John Beppue708cb52001-03-15 21:08:01 +00001576 $ printf Val=%d
1577 5
1578 Val=5
1579
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001580
1581-------------------------------
1582
1583=item I<ps>
1584
1585ps
Erik Andersen5e1189e2000-04-15 16:34:54 +00001586
1587Report process status
1588
1589This version of ps accepts no options.
1590
1591Example:
1592
John Beppue708cb52001-03-15 21:08:01 +00001593 $ ps
1594 PID Uid Gid State Command
1595 1 root root S init
1596 2 root root S [kflushd]
1597 3 root root S [kupdate]
1598 4 root root S [kpiod]
1599 5 root root S [kswapd]
1600 742 andersen andersen S [bash]
1601 743 andersen andersen S -bash
1602 745 root root S [getty]
1603 2990 andersen andersen R ps
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001604
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001605-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00001606
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001607=item I<pwd>
John Beppu46a4e762000-01-18 22:33:11 +00001608
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001609pwd
1610
1611Print the full filename of the current working directory.
Erik Andersen5e1189e2000-04-15 16:34:54 +00001612
1613Example:
1614
John Beppue708cb52001-03-15 21:08:01 +00001615 $ pwd
1616 /root
Erik Andersen5e1189e2000-04-15 16:34:54 +00001617
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001618-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00001619
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001620=item I<rdate>
Eric Andersen918507e2000-08-21 22:46:33 +00001621
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001622rdate [OPTION] HOST
Eric Andersen918507e2000-08-21 22:46:33 +00001623
1624Get and possibly set the system date and time from a remote HOST.
1625
1626Options:
1627
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001628 -s Set the system date and time (default).
1629 -p Print the date and time.
Eric Andersen918507e2000-08-21 22:46:33 +00001630
1631-------------------------------
1632
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001633=item I<readlink>
John Beppu46a4e762000-01-18 22:33:11 +00001634
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001635readlink
1636
1637Read a symbolic link.
Erik Andersen5e1189e2000-04-15 16:34:54 +00001638
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001639-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00001640
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001641=item I<reboot>
Eric Andersenbf960f52000-07-21 21:32:12 +00001642
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001643reboot
1644
1645Reboot the system.
1646
1647-------------------------------
1648
1649=item I<renice>
1650
1651renice priority pid [pid ...]
Eric Andersenbf960f52000-07-21 21:32:12 +00001652
1653Changes priority of running processes. Allowed priorities range
1654from 20 (the process runs only when nothing else is running) to 0
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001655(default priority) to B<-20> (almost nothing else ever gets to run).
Eric Andersenbf960f52000-07-21 21:32:12 +00001656
1657-------------------------------
1658
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001659=item I<reset>
Eric Andersenfa405d02000-08-21 21:18:52 +00001660
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001661reset
Eric Andersenfa405d02000-08-21 21:18:52 +00001662
1663Resets the screen.
1664
1665-------------------------------
1666
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001667=item I<rm>
John Beppu46a4e762000-01-18 22:33:11 +00001668
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001669rm [OPTION]... FILE...
Erik Andersen5e1189e2000-04-15 16:34:54 +00001670
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001671Remove (unlink) the FILE(s). You may use '--' to
Eric Andersen815e9042000-06-06 16:15:23 +00001672indicate that all following arguments are non-options.
Erik Andersen5e1189e2000-04-15 16:34:54 +00001673
1674Options:
1675
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001676 -i always prompt before removing each destinations
1677 -f remove existing destinations, never prompt
1678 -r or -R remove the contents of directories recursively
Erik Andersen5e1189e2000-04-15 16:34:54 +00001679
1680Example:
1681
John Beppue708cb52001-03-15 21:08:01 +00001682 $ rm -rf /tmp/foo
Erik Andersen5e1189e2000-04-15 16:34:54 +00001683
1684-------------------------------
1685
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001686=item I<rmdir>
Erik Andersen5e1189e2000-04-15 16:34:54 +00001687
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001688rmdir [OPTION]... DIRECTORY...
Erik Andersen5e1189e2000-04-15 16:34:54 +00001689
1690Remove the DIRECTORY(ies), if they are empty.
1691
1692Example:
1693
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001694
Erik Andersen5e1189e2000-04-15 16:34:54 +00001695
1696-------------------------------
1697
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001698=item I<rmmod>
Erik Andersen5e1189e2000-04-15 16:34:54 +00001699
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001700rmmod [OPTION]... [MODULE]...
Erik Andersen5e1189e2000-04-15 16:34:54 +00001701
1702Unloads the specified kernel modules from the kernel.
1703
1704Options:
1705
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001706 -a Try to remove all unused kernel modules.
Erik Andersen5e1189e2000-04-15 16:34:54 +00001707
1708Example:
1709
John Beppue708cb52001-03-15 21:08:01 +00001710 $ rmmod tulip
Erik Andersen5e1189e2000-04-15 16:34:54 +00001711
1712-------------------------------
1713
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001714=item I<route>
Erik Andersen5e1189e2000-04-15 16:34:54 +00001715
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001716route [{add|del|flush}]
Erik Andersen5e1189e2000-04-15 16:34:54 +00001717
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001718Edit the kernel's routing tables
Erik Andersen5e1189e2000-04-15 16:34:54 +00001719
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001720-------------------------------
Erik Andersen5e1189e2000-04-15 16:34:54 +00001721
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001722=item I<rpmunpack>
Erik Andersen5e1189e2000-04-15 16:34:54 +00001723
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001724rpmunpack < package.rpm | gunzip | cpio B<-idmuv>
Erik Andersen5e1189e2000-04-15 16:34:54 +00001725
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001726Extracts an rpm archive.
1727
1728-------------------------------
1729
1730=item I<sed>
1731
1732sed [B<-Vhnef>] pattern [files...]
Erik Andersen5e1189e2000-04-15 16:34:54 +00001733
1734Options:
1735
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001736 -n suppress automatic printing of pattern space
1737 -e script add the script to the commands to be executed
1738 -f scriptfile add the contents of script-file to the commands to be executed
1739 -h display this help message
Erik Andersen5e1189e2000-04-15 16:34:54 +00001740
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001741If no B<-e> or B<-f> is given, the first non-option argument is taken as the
1742sed script to interpret. All remaining arguments are names of input
1743files; if no input files are specified, then the standard input is read.
Erik Andersen5e1189e2000-04-15 16:34:54 +00001744
1745Example:
1746
John Beppue708cb52001-03-15 21:08:01 +00001747 $ echo foo | sed -e 's/f[a-zA-Z]o/bar/g'
1748 bar
Erik Andersen5e1189e2000-04-15 16:34:54 +00001749
1750-------------------------------
1751
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001752=item I<setkeycodes>
Erik Andersen4f3f7572000-04-28 00:18:56 +00001753
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001754setkeycodes SCANCODE KEYCODE ...
Erik Andersen4f3f7572000-04-28 00:18:56 +00001755
1756Set entries into the kernel's scancode-to-keycode map,
1757allowing unusual keyboards to generate usable keycodes.
1758
1759SCANCODE may be either xx or e0xx (hexadecimal),
1760and KEYCODE is given in decimal
1761
1762Example:
1763
John Beppue708cb52001-03-15 21:08:01 +00001764 $ setkeycodes e030 127
Erik Andersen4f3f7572000-04-28 00:18:56 +00001765
1766-------------------------------
1767
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001768=item I<sh>
Eric Andersen028fb622000-07-04 20:07:13 +00001769
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001770sh [FILE]...
1771or: sh B<-c> command [args]...
Eric Andersen028fb622000-07-04 20:07:13 +00001772
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001773lash: The BusyBox LAme SHell (command interpreter)
Eric Andersen028fb622000-07-04 20:07:13 +00001774
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001775This command does not yet have proper documentation.
Eric Andersen028fb622000-07-04 20:07:13 +00001776
1777Use lash just as you would use any other shell. It properly handles pipes,
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001778redirects, job control, can be used as the shell for scripts, and has a
1779sufficient set of builtins to do what is needed. It does not (yet) support
1780Bourne Shell syntax. If you need things like if-then-else, while, and such
1781use ash or bash. If you just need a very simple and extremely small shell,
1782this will do the job.
Eric Andersen028fb622000-07-04 20:07:13 +00001783
1784-------------------------------
1785
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001786=item I<sleep>
Erik Andersen5e1189e2000-04-15 16:34:54 +00001787
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001788sleep N
Erik Andersen5e1189e2000-04-15 16:34:54 +00001789
1790Pause for N seconds.
1791
1792Example:
1793
John Beppue708cb52001-03-15 21:08:01 +00001794 $ sleep 2
1795 [2 second delay results]
Erik Andersen5e1189e2000-04-15 16:34:54 +00001796
1797-------------------------------
1798
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001799=item I<sort>
Erik Andersen5e1189e2000-04-15 16:34:54 +00001800
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001801sort [B<-n>] [B<-r>] [FILE]...
Erik Andersen5e1189e2000-04-15 16:34:54 +00001802
1803Sorts lines of text in the specified files
1804
1805Example:
1806
John Beppue708cb52001-03-15 21:08:01 +00001807 $ echo -e e
1808 f
1809 b
1810 d
1811 c
1812 a | sort
1813 a
1814 b
1815 c
1816 d
1817 e
1818 f
Erik Andersen5e1189e2000-04-15 16:34:54 +00001819
1820-------------------------------
1821
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001822=item I<stty>
Eric Andersen028fb622000-07-04 20:07:13 +00001823
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001824stty [B<-a>|g] [B<-F> device] [SETTING]...
1825
1826Without arguments, prints baud rate, line discipline,
1827and deviations from stty sane.
1828
1829Options:
1830
1831 -F device open device instead of stdin
1832 -a print all current settings in human-readable form
1833 -g print in stty-readable form
1834 [SETTING] see documentation
1835
1836-------------------------------
1837
1838=item I<swapoff>
1839
1840swapoff [OPTION] [device]
Eric Andersen028fb622000-07-04 20:07:13 +00001841
1842Stop swapping virtual memory pages on the given device.
1843
1844Options:
1845
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001846 -a Stop swapping on all swap devices
Eric Andersen028fb622000-07-04 20:07:13 +00001847
1848-------------------------------
1849
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001850=item I<swapon>
Eric Andersen028fb622000-07-04 20:07:13 +00001851
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001852swapon [OPTION] [device]
Eric Andersen028fb622000-07-04 20:07:13 +00001853
1854Start swapping virtual memory pages on the given device.
1855
1856Options:
1857
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001858 -a Start swapping on all swap devices
Eric Andersen028fb622000-07-04 20:07:13 +00001859
1860-------------------------------
1861
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001862=item I<sync>
Erik Andersen5e1189e2000-04-15 16:34:54 +00001863
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001864sync
Erik Andersen5e1189e2000-04-15 16:34:54 +00001865
1866Write all buffered filesystem blocks to disk.
1867
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001868-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00001869
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001870=item I<syslogd>
John Beppu46a4e762000-01-18 22:33:11 +00001871
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001872syslogd [OPTION]...
John Beppu4581b4c2000-01-19 15:04:41 +00001873
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001874Linux system and kernel logging utility.
1875Note that this version of syslogd ignores /etc/syslog.conf.
John Beppu4581b4c2000-01-19 15:04:41 +00001876
Erik Andersen5e1189e2000-04-15 16:34:54 +00001877Options:
Pavel Roskin049b7062000-06-07 21:19:49 +00001878
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001879 -m NUM Interval between MARK lines (default=20min, 0=off)
Pavel Roskinda10ec02000-06-07 21:08:25 +00001880 -n Run as a foreground process
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001881 -O FILE Use an alternate log file (default=/var/log/messages)
1882 -R HOST[:PORT] Log to IP or hostname on PORT (default PORT=514/UDP)
1883 -L Log locally and via network logging (default is network only)
Eric Andersenced2cef2000-07-20 23:41:24 +00001884
1885Example:
1886
John Beppue708cb52001-03-15 21:08:01 +00001887 $ syslogd -R masterlog:514
1888 $ syslogd -R 192.168.1.1:601
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001889
1890-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00001891
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001892=item I<tail>
John Beppu46a4e762000-01-18 22:33:11 +00001893
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001894tail [OPTION]... [FILE]...
Erik Andersen5e1189e2000-04-15 16:34:54 +00001895
1896Print last 10 lines of each FILE to standard output.
1897With more than one FILE, precede each with a header giving the
1898file name. With no FILE, or when FILE is -, read standard input.
1899
1900Options:
1901
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001902 -c N[kbm] output the last N bytes
1903 -n N[kbm] print last N lines instead of last 10
1904 -f output data as the file grows
1905 -q never output headers giving file names
1906 -s SEC wait SEC seconds between reads with -f
1907 -v always output headers giving file names
1908
John Beppue708cb52001-03-15 21:08:01 +00001909If the first character of N (bytes or lines) is a '+', output begins with
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001910the Nth item from the start of each file, otherwise, print the last N items
1911in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2).
Erik Andersen5e1189e2000-04-15 16:34:54 +00001912
1913Example:
1914
John Beppue708cb52001-03-15 21:08:01 +00001915 $ tail -n 1 /etc/resolv.conf
1916 nameserver 10.0.0.1
Erik Andersen5e1189e2000-04-15 16:34:54 +00001917
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001918-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00001919
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001920=item I<tar>
John Beppu46a4e762000-01-18 22:33:11 +00001921
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001922tar -[cxtvO] [-B<-exclude> File] [B<-X> File][B<-f> tarFile] [FILE(s)] ...
Erik Andersen5e1189e2000-04-15 16:34:54 +00001923
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001924Create, extract, or list files from a tar file.
Erik Andersen5e1189e2000-04-15 16:34:54 +00001925
1926Main operation mode:
1927
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001928 c create
1929 x extract
1930 t list
Erik Andersen5e1189e2000-04-15 16:34:54 +00001931
1932File selection:
1933
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001934 f name of tarfile or - for stdin
1935 O extract to stdout
1936 exclude file to exclude
1937 X file with names to exclude
Erik Andersen5e1189e2000-04-15 16:34:54 +00001938
1939Informative output:
1940
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001941 v verbosely list files processed
Erik Andersen5e1189e2000-04-15 16:34:54 +00001942
1943Example:
1944
John Beppue708cb52001-03-15 21:08:01 +00001945 $ zcat /tmp/tarball.tar.gz | tar -xf -
1946 $ tar -cf /tmp/tarball.tar /usr/local
Erik Andersen5e1189e2000-04-15 16:34:54 +00001947
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001948-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00001949
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001950=item I<tee>
Eric Andersen028fb622000-07-04 20:07:13 +00001951
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001952tee [OPTION]... [FILE]...
Eric Andersen028fb622000-07-04 20:07:13 +00001953
1954Copy standard input to each FILE, and also to standard output.
1955
1956Options:
1957
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001958 -a append to the given FILEs, do not overwrite
Eric Andersen028fb622000-07-04 20:07:13 +00001959
1960Example:
1961
John Beppue708cb52001-03-15 21:08:01 +00001962 $ echo Hello | tee /tmp/foo
1963 $ cat /tmp/foo
1964 Hello
Eric Andersen028fb622000-07-04 20:07:13 +00001965
1966-------------------------------
1967
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001968=item I<telnet>
Eric Andersen028fb622000-07-04 20:07:13 +00001969
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001970telnet host [port]
Eric Andersen028fb622000-07-04 20:07:13 +00001971
1972Telnet is used to establish interactive communication with another
1973computer over a network using the TELNET protocol.
1974
1975-------------------------------
1976
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001977=item I<test>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00001978
Eric Andersen0d3a02e2001-03-15 18:14:25 +00001979test EXPRESSION
1980 or [ EXPRESSION ]
Erik Andersen5e1189e2000-04-15 16:34:54 +00001981
1982Checks file types and compares values returning an exit
1983code determined by the value of EXPRESSION.
1984
1985Example:
1986
John Beppue708cb52001-03-15 21:08:01 +00001987 $ test 1 -eq 2
1988 $ echo $?
1989 1
1990 $ test 1 -eq 1
1991 $ echo $?
1992 0
1993 $ [ -d /etc ]
1994 $ echo $?
1995 0
1996 $ [ -d /junk ]
1997 $ echo $?
1998 1
Erik Andersen5e1189e2000-04-15 16:34:54 +00001999
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00002000-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00002001
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002002=item I<tftp>
John Beppu46a4e762000-01-18 22:33:11 +00002003
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002004tftp command SOURCE DEST
Erik Andersen5e1189e2000-04-15 16:34:54 +00002005
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002006Transfers a file from/to a tftp server using octet mode.
2007
2008Commands:
2009
2010 get Get file from server SOURCE and store to local DEST.
2011 put Put local file SOURCE to server DEST.
2012
2013When nameing a server, use the syntax server:file.
2014
2015-------------------------------
2016
2017=item I<touch>
2018
2019touch [B<-c>] file [file ...]
2020
2021Update the last-modified date on the given file[s].
2022
2023Options:
2024
2025 -c Do not create any files
Erik Andersen5e1189e2000-04-15 16:34:54 +00002026
2027Example:
2028
John Beppue708cb52001-03-15 21:08:01 +00002029 $ ls -l /tmp/foo
2030 /bin/ls: /tmp/foo: No such file or directory
2031 $ touch /tmp/foo
2032 $ ls -l /tmp/foo
2033 -rw-rw-r-- 1 andersen andersen 0 Apr 15 01:11 /tmp/foo
2034
Erik Andersen5e1189e2000-04-15 16:34:54 +00002035
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00002036-------------------------------
2037
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002038=item I<tr>
Erik Andersena19bc642000-05-02 06:40:02 +00002039
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002040tr [B<-cds>] STRING1 [STRING2]
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00002041
Erik Andersen3c1217c2000-05-01 22:34:24 +00002042Translate, squeeze, and/or delete characters from
2043standard input, writing to standard output.
Erik Andersen5e1189e2000-04-15 16:34:54 +00002044
Erik Andersen3c1217c2000-05-01 22:34:24 +00002045Options:
2046
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002047 -c take complement of STRING1
2048 -d delete input characters coded STRING1
2049 -s squeeze multiple output characters of STRING2 into one character
Erik Andersen5e1189e2000-04-15 16:34:54 +00002050
2051Example:
2052
John Beppue708cb52001-03-15 21:08:01 +00002053 $ echo gdkkn vnqkc | tr [a-y] [b-z]
2054 hello world
2055
Erik Andersen5e1189e2000-04-15 16:34:54 +00002056
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00002057-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00002058
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002059=item I<true>
John Beppu46a4e762000-01-18 22:33:11 +00002060
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002061true
2062
2063Return an exit code of TRUE (0).
Erik Andersen5e1189e2000-04-15 16:34:54 +00002064
2065Example:
2066
John Beppue708cb52001-03-15 21:08:01 +00002067 $ true
2068 $ echo $?
2069 0
Erik Andersen5e1189e2000-04-15 16:34:54 +00002070
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00002071-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00002072
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002073=item I<tty>
John Beppu4581b4c2000-01-19 15:04:41 +00002074
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002075tty
Erik Andersene5b6c7d2000-04-17 16:16:10 +00002076
2077Print the file name of the terminal connected to standard input.
2078
2079Options:
2080
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002081 -s print nothing, only return an exit status
Erik Andersene5b6c7d2000-04-17 16:16:10 +00002082
2083Example:
2084
John Beppue708cb52001-03-15 21:08:01 +00002085 $ tty
2086 /dev/tty2
Erik Andersen5e1189e2000-04-15 16:34:54 +00002087
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00002088-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00002089
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002090=item I<umount>
John Beppu46a4e762000-01-18 22:33:11 +00002091
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002092umount [flags] filesystem|directory
2093
2094Unmount file systems
Erik Andersene5b6c7d2000-04-17 16:16:10 +00002095
2096Flags:
2097
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002098 -a: Unmount all file systems in /etc/mtab
2099 -n: Don't erase /etc/mtab entries
2100 -r: Try to remount devices as read-only if mount is busy
2101 -f: Force filesystem umount (i.e. unreachable NFS server)
2102 -l: Do not free loop device (if a loop device has been used)
Erik Andersene5b6c7d2000-04-17 16:16:10 +00002103
2104Example:
2105
John Beppue708cb52001-03-15 21:08:01 +00002106 $ umount /dev/hdc1
Erik Andersen5e1189e2000-04-15 16:34:54 +00002107
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00002108-------------------------------
John Beppuf17792c2000-04-13 03:16:01 +00002109
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002110=item I<uname>
John Beppuf17792c2000-04-13 03:16:01 +00002111
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002112uname [OPTION]...
Erik Andersene5b6c7d2000-04-17 16:16:10 +00002113
Erik Andersen26702fe2000-04-17 16:44:46 +00002114Print certain system information. With no OPTION, same as B<-s>.
Erik Andersene5b6c7d2000-04-17 16:16:10 +00002115
2116Options:
2117
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002118 -a print all information
2119 -m the machine (hardware) type
2120 -n print the machine's network node hostname
2121 -r print the operating system release
2122 -s print the operating system name
2123 -p print the host processor type
2124 -v print the operating system version
Erik Andersene5b6c7d2000-04-17 16:16:10 +00002125
2126Example:
2127
John Beppue708cb52001-03-15 21:08:01 +00002128 $ uname -a
2129 Linux debian 2.2.15pre13
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00002130
2131-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00002132
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002133=item I<uniq>
John Beppu46a4e762000-01-18 22:33:11 +00002134
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002135uniq [OPTION]... [INPUT [OUTPUT]]
Erik Andersene5b6c7d2000-04-17 16:16:10 +00002136
2137Discard all but one of successive identical lines from INPUT
2138(or standard input), writing to OUTPUT (or standard output).
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002139
Eric Andersen5b5db382000-12-09 16:37:53 +00002140Options:
2141
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002142 -c prefix lines by the number of occurrences
2143 -d only print duplicate lines
2144 -u only print unique lines
Erik Andersene5b6c7d2000-04-17 16:16:10 +00002145
2146Example:
2147
John Beppue708cb52001-03-15 21:08:01 +00002148 $ echo -e a
2149 a
2150 b
2151 c
2152 c
2153 a | sort | uniq
2154 a
2155 b
2156 c
Erik Andersen5e1189e2000-04-15 16:34:54 +00002157
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00002158-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00002159
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002160=item I<unix2dos>
Eric Andersencff3fe32000-09-20 19:22:26 +00002161
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002162unix2dos [option] [file]
Eric Andersencff3fe32000-09-20 19:22:26 +00002163
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002164See 'dos2unix -B<-help>' for help!
Eric Andersencff3fe32000-09-20 19:22:26 +00002165
2166-------------------------------
2167
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002168=item I<update>
Eric Andersencff3fe32000-09-20 19:22:26 +00002169
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002170update [options]
Erik Andersene5b6c7d2000-04-17 16:16:10 +00002171
2172Periodically flushes filesystem buffers.
2173
2174Options:
2175
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002176 -S force use of sync(2) instead of flushing
2177 -s SECS call sync this often (default 30)
2178 -f SECS flush some buffers this often (default 5)
Erik Andersen5e1189e2000-04-15 16:34:54 +00002179
2180-------------------------------
2181
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002182=item I<uptime>
Erik Andersen5e1189e2000-04-15 16:34:54 +00002183
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002184uptime
Erik Andersene5b6c7d2000-04-17 16:16:10 +00002185
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002186Display the time since the last boot.
Erik Andersene5b6c7d2000-04-17 16:16:10 +00002187
2188Example:
2189
John Beppue708cb52001-03-15 21:08:01 +00002190 $ uptime
2191 1:55pm up 2:30, load average: 0.09, 0.04, 0.00
2192
Erik Andersen5e1189e2000-04-15 16:34:54 +00002193
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00002194-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00002195
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002196=item I<usleep>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00002197
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002198usleep N
Erik Andersene5b6c7d2000-04-17 16:16:10 +00002199
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002200Pause for N microseconds.
Erik Andersene5b6c7d2000-04-17 16:16:10 +00002201
2202Example:
2203
John Beppue708cb52001-03-15 21:08:01 +00002204 $ usleep 1000000
2205 [pauses for 1 second]
Erik Andersen5e1189e2000-04-15 16:34:54 +00002206
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00002207-------------------------------
2208
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002209=item I<uudecode>
Eric Andersen028fb622000-07-04 20:07:13 +00002210
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002211uudecode [FILE]...
2212
2213Uudecode a file that is uuencoded.
2214
2215Options:
2216
2217 -o FILE direct output to FILE$ uudecode -o busybox busybox.uu
2218$ ls B<-l> busybox
2219B<-rwxr>-xr-x 1 ams ams 245264 Jun 7 21:35 busybox
2220
2221
2222-------------------------------
2223
2224=item I<uuencode>
2225
2226uuencode [OPTION] [INFILE] REMOTEFILE
Eric Andersen028fb622000-07-04 20:07:13 +00002227
2228Uuencode a file.
2229
2230Options:
2231
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002232 -m use base64 encoding as of RFC1521
Eric Andersen028fb622000-07-04 20:07:13 +00002233
2234Example:
2235
John Beppue708cb52001-03-15 21:08:01 +00002236 $ uuencode busybox busybox
2237 begin 755 busybox
2238 <encoded file snipped>
2239 $ uudecode busybox busybox > busybox.uu
2240 $
Eric Andersen028fb622000-07-04 20:07:13 +00002241
2242-------------------------------
2243
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002244=item I<watchdog>
Eric Andersen028fb622000-07-04 20:07:13 +00002245
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002246watchdog DEV
Eric Andersen028fb622000-07-04 20:07:13 +00002247
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002248Periodically write to watchdog device DEV
Eric Andersen028fb622000-07-04 20:07:13 +00002249
2250-------------------------------
2251
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002252=item I<wc>
Eric Andersenffde8672001-01-25 23:40:32 +00002253
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002254wc [OPTION]... [FILE]...
Erik Andersene5b6c7d2000-04-17 16:16:10 +00002255
2256Print line, word, and byte counts for each FILE, and a total line if
2257more than one FILE is specified. With no FILE, read standard input.
2258
2259Options:
2260
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002261 -c print the byte counts
2262 -l print the newline counts
2263 -L print the length of the longest line
2264 -w print the word counts
Erik Andersene5b6c7d2000-04-17 16:16:10 +00002265
2266Example:
2267
John Beppue708cb52001-03-15 21:08:01 +00002268 $ wc /etc/passwd
2269 31 46 1365 /etc/passwd
2270
Erik Andersen5e1189e2000-04-15 16:34:54 +00002271
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00002272-------------------------------
2273
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002274=item I<wget>
Pavel Roskinafa06622000-06-21 21:43:24 +00002275
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002276wget [B<-c>] [B<-O> file] url
2277
2278wget retrieves files via HTTP
2279
2280Options:
2281
2282 -c continue retrieval of aborted transfers
2283 -O save to filename ('-' for stdout)
2284
2285-------------------------------
2286
2287=item I<which>
2288
2289which [COMMAND ...]
Pavel Roskinafa06622000-06-21 21:43:24 +00002290
2291Locates a COMMAND.
2292
2293Example:
2294
John Beppue708cb52001-03-15 21:08:01 +00002295 $ which login
2296 /bin/login
Pavel Roskinafa06622000-06-21 21:43:24 +00002297
2298-------------------------------
2299
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002300=item I<whoami>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00002301
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002302whoami
Erik Andersene5b6c7d2000-04-17 16:16:10 +00002303
2304Prints the user name associated with the current effective user id.
2305
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00002306-------------------------------
2307
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002308=item I<xargs>
Eric Andersen5b176932000-09-22 20:22:28 +00002309
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002310xargs [COMMAND] [ARGS...]
Eric Andersen5b176932000-09-22 20:22:28 +00002311
2312Executes COMMAND on every item given by standard input.
2313
Eric Andersen5b176932000-09-22 20:22:28 +00002314Example:
2315
John Beppue708cb52001-03-15 21:08:01 +00002316 $ ls | xargs gzip
2317 $ find . -name '*.c' -print | xargs rm
2318
Eric Andersen5b176932000-09-22 20:22:28 +00002319
2320-------------------------------
2321
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002322=item I<yes>
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00002323
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002324yes [OPTION]... [STRING]...
Erik Andersene5b6c7d2000-04-17 16:16:10 +00002325
John Beppue708cb52001-03-15 21:08:01 +00002326Repeatedly outputs a line with all specified STRING(s), or 'y'.
Erik Andersen5e1189e2000-04-15 16:34:54 +00002327
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00002328-------------------------------
John Beppu46a4e762000-01-18 22:33:11 +00002329
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002330=item I<zcat>
John Beppu46a4e762000-01-18 22:33:11 +00002331
Eric Andersen0d3a02e2001-03-15 18:14:25 +00002332zcat FILE
2333
2334Uncompress to stdout.
Erik Andersen5e1189e2000-04-15 16:34:54 +00002335
Erik Andersen9cf3bfa2000-04-13 18:49:43 +00002336-------------------------------
John Beppu4581b4c2000-01-19 15:04:41 +00002337
John Beppu46a4e762000-01-18 22:33:11 +00002338=back
John Beppu3a1b6be2000-01-18 15:45:59 +00002339
Erik Andersena19bc642000-05-02 06:40:02 +00002340=head1 LIBC NSS
2341
2342GNU Libc uses the Name Service Switch (NSS) to configure the behavior of the C
2343library for the local environment, and to configure how it reads system data,
2344such as passwords and group information. BusyBox has made it Policy that it
2345will never use NSS, and will never use and libc calls that make use of NSS.
2346This allows you to run an embedded system without the need for installing an
2347/etc/nsswitch.conf file and without and /lib/libnss_* libraries installed.
2348
2349If you are using a system that is using a remote LDAP server for authentication
2350via GNU libc NSS, and you want to use BusyBox, then you will need to adjust the
2351BusyBox source. Chances are though, that if you have enough space to install
2352of that stuff on your system, then you probably want the full GNU utilities.
2353
John Beppu3a1b6be2000-01-18 15:45:59 +00002354=head1 SEE ALSO
2355
2356textutils(1), shellutils(1), etc...
2357
2358=head1 MAINTAINER
2359
Erik Andersen1101d232000-04-19 05:15:12 +00002360Erik Andersen <andersee@debian.org> <andersen@lineo.com>
John Beppu3a1b6be2000-01-18 15:45:59 +00002361
2362=head1 AUTHORS
2363
John Beppu08fe43d2000-01-19 12:39:16 +00002364The following people have contributed code to BusyBox whether
2365they know it or not.
John Beppu3a1b6be2000-01-18 15:45:59 +00002366
John Beppu3a1b6be2000-01-18 15:45:59 +00002367
John Beppu08fe43d2000-01-19 12:39:16 +00002368=for html <br>
John Beppu46a4e762000-01-18 22:33:11 +00002369
Eric Andersen57f83ff2000-09-24 02:41:44 +00002370Erik Andersen <andersen@lineo.com>, <andersee@debian.org>
2371
2372 Tons of new stuff, major rewrite of most of the
2373 core apps, tons of new apps as noted in header files.
2374
2375=for html <br>
2376
2377Edward Betts <edward@debian.org>
2378
2379 expr, hostid, logname, tty, wc, whoami, yes
2380
2381=for html <br>
2382
John Beppu08fe43d2000-01-19 12:39:16 +00002383John Beppu <beppu@lineo.com>
John Beppu3a1b6be2000-01-18 15:45:59 +00002384
Eric Andersen57f83ff2000-09-24 02:41:44 +00002385 du, head, nslookup, sort, tee, uniq
2386
John Beppu08fe43d2000-01-19 12:39:16 +00002387=for html <br>
John Beppu46a4e762000-01-18 22:33:11 +00002388
John Beppu08fe43d2000-01-19 12:39:16 +00002389Brian Candler <B.Candler@pobox.com>
John Beppu3a1b6be2000-01-18 15:45:59 +00002390
Eric Andersen57f83ff2000-09-24 02:41:44 +00002391 tiny-ls(ls)
2392
John Beppu08fe43d2000-01-19 12:39:16 +00002393=for html <br>
John Beppu46a4e762000-01-18 22:33:11 +00002394
John Beppu08fe43d2000-01-19 12:39:16 +00002395Randolph Chung <tausq@debian.org>
John Beppu3a1b6be2000-01-18 15:45:59 +00002396
Eric Andersen57f83ff2000-09-24 02:41:44 +00002397 fbset, ping, hostname, and mkfifo
2398
John Beppu08fe43d2000-01-19 12:39:16 +00002399=for html <br>
John Beppu46a4e762000-01-18 22:33:11 +00002400
John Beppu08fe43d2000-01-19 12:39:16 +00002401Dave Cinege <dcinege@psychosis.com>
2402
Eric Andersen57f83ff2000-09-24 02:41:44 +00002403 more(v2), makedevs, dutmp, modularization, auto links file,
2404 various fixes, Linux Router Project maintenance
2405
John Beppu08fe43d2000-01-19 12:39:16 +00002406=for html <br>
2407
John Beppu50ed0672000-04-13 23:44:04 +00002408Karl M. Hegbloom <karlheg@debian.org>
2409
Eric Andersen57f83ff2000-09-24 02:41:44 +00002410 cp_mv.c, the test suite, various fixes to utility.c, &c.
2411
2412=for html <br>
2413
2414Daniel Jacobowitz <dan@debian.org>
2415
2416 mktemp.c
2417
2418=for html <br>
2419
2420Matt Kraai <kraai@alumni.carnegiemellon.edu>
2421
2422 documentation, bugfixes
2423
John Beppu50ed0672000-04-13 23:44:04 +00002424=for html <br>
2425
John Beppu4fd10fc2000-04-17 05:13:59 +00002426John Lombardo <john@deltanet.com>
2427
Eric Andersen57f83ff2000-09-24 02:41:44 +00002428 dirname, tr
2429
John Beppu4fd10fc2000-04-17 05:13:59 +00002430=for html <br>
2431
Eric Andersen86ab8a32000-06-02 03:21:42 +00002432Glenn McGrath <bug1@netconnect.com.au>
2433
Eric Andersen57f83ff2000-09-24 02:41:44 +00002434 ar.c
2435
Eric Andersen86ab8a32000-06-02 03:21:42 +00002436=for html <br>
2437
Eric Andersen57f83ff2000-09-24 02:41:44 +00002438Bruce Perens <bruce@pixar.com>
2439
2440 Original author of BusyBox. His code is still in many apps.
2441
2442=for html <br>
2443
2444Chip Rosenthal <chip@unicom.com>, <crosenth@covad.com>
2445
2446 wget - Contributed by permission of Covad Communications
John Beppu08fe43d2000-01-19 12:39:16 +00002447
2448=for html <br>
2449
Pavel Roskin339b8922000-06-20 00:11:07 +00002450Pavel Roskin <proski@gnu.org>
Eric Andersen08e92892000-06-02 03:21:36 +00002451
Eric Andersen57f83ff2000-09-24 02:41:44 +00002452 Lots of bugs fixes and patches.
2453
2454=for html <br>
2455
2456Gyepi Sam <gyepi@praxis-sw.com>
2457
2458 Remote logging feature for syslogd
2459
Eric Andersen08e92892000-06-02 03:21:36 +00002460=for html <br>
2461
John Beppu08fe43d2000-01-19 12:39:16 +00002462Linus Torvalds <torvalds@transmeta.com>
2463
Eric Andersen57f83ff2000-09-24 02:41:44 +00002464 mkswap, fsck.minix, mkfs.minix
2465
John Beppu08fe43d2000-01-19 12:39:16 +00002466=for html <br>
2467
John Beppu2aee9932000-09-15 08:04:42 +00002468Mark Whitley <markw@lineo.com>
2469
Eric Andersen57f83ff2000-09-24 02:41:44 +00002470 sed remix, bug fixes, style-guide, etc.
2471
John Beppu2aee9932000-09-15 08:04:42 +00002472=for html <br>
2473
John Beppu08fe43d2000-01-19 12:39:16 +00002474Charles P. Wright <cpwright@villagenet.com>
2475
Eric Andersen57f83ff2000-09-24 02:41:44 +00002476 gzip, mini-netcat(nc)
2477
John Beppu08fe43d2000-01-19 12:39:16 +00002478=for html <br>
2479
2480Enrique Zanardi <ezanardi@ull.es>
2481
Eric Andersen57f83ff2000-09-24 02:41:44 +00002482 tarcat (since removed), loadkmap, various fixes, Debian maintenance
John Beppu3a1b6be2000-01-18 15:45:59 +00002483
2484=cut
John Beppu08fe43d2000-01-19 12:39:16 +00002485
Eric Andersenc97ec342001-04-03 18:01:51 +00002486# $Id: busybox.pod,v 1.93 2001/04/03 18:01:51 andersen Exp $