Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1 | # vi: set sw=4 ts=4: |
John Beppu | 08e7f75 | 2000-04-13 03:22:20 +0000 | [diff] [blame] | 2 | |
John Beppu | 3a1b6be | 2000-01-18 15:45:59 +0000 | [diff] [blame] | 3 | =head1 NAME |
| 4 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 5 | BusyBox - The Swiss Army Knife of Embedded Linux |
John Beppu | 3a1b6be | 2000-01-18 15:45:59 +0000 | [diff] [blame] | 6 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 7 | =head1 SYNTAX |
John Beppu | 3a1b6be | 2000-01-18 15:45:59 +0000 | [diff] [blame] | 8 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 9 | BusyBox <function> [arguments...] # or |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 10 | |
| 11 | <function> [arguments...] # if symlinked |
John Beppu | 3a1b6be | 2000-01-18 15:45:59 +0000 | [diff] [blame] | 12 | |
| 13 | =head1 DESCRIPTION |
| 14 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 15 | BusyBox combines tiny versions of many common UNIX utilities into a single |
| 16 | small executable. It provides minimalist replacements for most of the utilities |
| 17 | you usually find in fileutils, shellutils, findutils, textutils, grep, gzip, |
| 18 | tar, etc. BusyBox provides a fairly complete POSIX environment for any small |
Eric Andersen | 98cd53e | 2000-06-16 19:56:44 +0000 | [diff] [blame] | 19 | or embedded system. The utilities in BusyBox generally have fewer options than |
Eric Andersen | f2fffef | 2000-06-05 17:23:06 +0000 | [diff] [blame] | 20 | their full-featured GNU cousins; however, the options that are included provide |
Pavel Roskin | 1a804e4 | 2000-06-21 21:38:00 +0000 | [diff] [blame] | 21 | the expected functionality and behave very much like their GNU counterparts. |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 22 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 23 | BusyBox has been written with size-optimization and limited resources in mind. |
| 24 | It is also extremely modular so you can easily include or exclude commands (or |
| 25 | features) at compile time. This makes it easy to customize your embedded |
| 26 | systems. To create a working system, just add a kernel, a shell (such as ash), |
| 27 | and an editor (such as elvis-tiny or ae). |
| 28 | |
| 29 | =head1 USAGE |
| 30 | |
| 31 | When you create a link to BusyBox for the function you wish to use, when BusyBox |
| 32 | is called using that link it will behave as if the command itself has been invoked. |
| 33 | |
| 34 | For example, entering |
| 35 | |
| 36 | ln -s ./BusyBox ls |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 37 | ./ls |
| 38 | |
| 39 | will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled |
Pavel Roskin | 1a804e4 | 2000-06-21 21:38:00 +0000 | [diff] [blame] | 40 | into BusyBox). |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 41 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 42 | You can also invoke BusyBox by issuing the command as an argument on the |
| 43 | command line. For example, entering |
| 44 | |
| 45 | ./BusyBox ls |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 46 | |
| 47 | will also cause BusyBox to behave as 'ls'. |
John Beppu | 08fe43d | 2000-01-19 12:39:16 +0000 | [diff] [blame] | 48 | |
Erik Andersen | eef6580 | 2000-04-19 05:12:02 +0000 | [diff] [blame] | 49 | =head1 COMMON OPTIONS |
| 50 | |
| 51 | Most BusyBox commands support the B<--help> option to provide a |
| 52 | terse runtime description of their behavior. |
| 53 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 54 | =head1 COMMANDS |
| 55 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 56 | Currently defined functions include: |
| 57 | |
Eric Andersen | cff3fe3 | 2000-09-20 19:22:26 +0000 | [diff] [blame] | 58 | ar, basename, cat, chgrp, chmod, chown, chroot, chvt, clear, cp, cut, date, dc, |
Glenn L McGrath | fa04432 | 2001-01-03 01:06:30 +0000 | [diff] [blame] | 59 | dd, deallocvt, df, dirname, dmesg, dos2unix, dpkg-deb, du, dumpkmap, dutmp, |
| 60 | echo, false, fbset, fdflush, find, free, freeramdisk, fsck.minix, getopt, grep, |
| 61 | gunzip, gzip, halt, head, hostid, hostname, id, init, insmod, kill, killall, |
| 62 | length, ln, loadacm, loadfont, loadkmap, logger, logname, ls, lsmod, makedevs, |
| 63 | mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp, more, mount, mt, mv, nc, |
| 64 | nslookup, ping, poweroff, printf, ps, pwd, rdate, reboot, renice, reset, rm, |
Eric Andersen | ffde867 | 2001-01-25 23:40:32 +0000 | [diff] [blame] | 65 | rmdir, rmmod, sed, setkeycodes, sh, sleep, sort, swapoff, swapon, sync, |
| 66 | syslogd, tail, tar, tee, telnet, test, touch, tr, true, tty, umount, uname, |
| 67 | uniq, unix2dos, unrpm, update, uptime, usleep, uudecode, uuencode, watchdog, |
| 68 | wc, which, whoami, xargs, yes, zcat, [ |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 69 | |
Erik Andersen | a19bc64 | 2000-05-02 06:40:02 +0000 | [diff] [blame] | 70 | ------------------------------- |
| 71 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 72 | =over 4 |
| 73 | |
Eric Andersen | 86ab8a3 | 2000-06-02 03:21:42 +0000 | [diff] [blame] | 74 | =item ar |
| 75 | |
| 76 | Usage: ar [optxvV] archive [filenames] |
| 77 | |
| 78 | Extract or list files from an ar archive. |
| 79 | |
| 80 | Options: |
| 81 | |
| 82 | o preserve original dates |
| 83 | p extract to stdout |
| 84 | t list |
| 85 | x extract |
| 86 | v verbosely list files processed |
| 87 | |
| 88 | ------------------------------- |
| 89 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 90 | =item basename |
| 91 | |
Erik Andersen | ac130e1 | 2000-05-10 05:00:31 +0000 | [diff] [blame] | 92 | Usage: basename FILE [SUFFIX] |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 93 | |
Erik Andersen | ac130e1 | 2000-05-10 05:00:31 +0000 | [diff] [blame] | 94 | Strips directory path and suffixes from FILE. |
| 95 | If specified, also removes any trailing SUFFIX. |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 96 | |
Pavel Roskin | 1a804e4 | 2000-06-21 21:38:00 +0000 | [diff] [blame] | 97 | Example: |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 98 | |
| 99 | $ basename /usr/local/bin/foo |
| 100 | foo |
| 101 | $ basename /usr/local/bin/ |
| 102 | bin |
Erik Andersen | ac130e1 | 2000-05-10 05:00:31 +0000 | [diff] [blame] | 103 | $ basename /foo/bar.txt .txt |
| 104 | bar |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 105 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 106 | ------------------------------- |
| 107 | |
Erik Andersen | a6c7522 | 2000-04-18 00:00:52 +0000 | [diff] [blame] | 108 | =item cat |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 109 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 110 | Usage: cat [FILE ...] |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 111 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 112 | Concatenates FILE(s) and prints them to the standard output. |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 113 | |
| 114 | Example: |
| 115 | |
| 116 | $ cat /proc/uptime |
| 117 | 110716.72 17.67 |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 118 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 119 | ------------------------------- |
| 120 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 121 | =item chgrp |
| 122 | |
| 123 | Usage: chgrp [OPTION]... GROUP FILE... |
| 124 | |
| 125 | Change the group membership of each FILE to GROUP. |
Erik Andersen | 26702fe | 2000-04-17 16:44:46 +0000 | [diff] [blame] | 126 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 127 | Options: |
| 128 | |
| 129 | -R change files and directories recursively |
Erik Andersen | 26702fe | 2000-04-17 16:44:46 +0000 | [diff] [blame] | 130 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 131 | Example: |
| 132 | |
| 133 | $ 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 |
| 138 | |
| 139 | ------------------------------- |
| 140 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 141 | =item chmod |
| 142 | |
John Beppu | f17792c | 2000-04-13 03:16:01 +0000 | [diff] [blame] | 143 | Usage: chmod [B<-R>] MODE[,MODE]... FILE... |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 144 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 145 | Changes file access permissions for the specified FILE(s) (or directories). |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 146 | Each MODE is defined by combining the letters for WHO has access to the file, |
| 147 | an OPERATOR for selecting how the permissions should be changed, and a |
Eric Andersen | 98cd53e | 2000-06-16 19:56:44 +0000 | [diff] [blame] | 148 | PERMISSION for FILE(s) (or directories). |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 149 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 150 | WHO may be chosen from |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 151 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 152 | u User who owns the file |
| 153 | g Users in the file's Group |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 154 | o Other users not in the file's group |
| 155 | a All users |
| 156 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 157 | OPERATOR may be chosen from |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 158 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 159 | + Add a permission |
| 160 | - Remove a permission |
| 161 | = Assign a permission |
Pavel Roskin | 1a804e4 | 2000-06-21 21:38:00 +0000 | [diff] [blame] | 162 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 163 | PERMISSION may be chosen from |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 164 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 165 | r Read |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 166 | w Write |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 167 | x Execute (or access for directories) |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 168 | s Set user (or group) ID bit |
Eric Andersen | 98cd53e | 2000-06-16 19:56:44 +0000 | [diff] [blame] | 169 | t Sticky bit (for directories prevents removing files by non-owners) |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 170 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 171 | Alternately, permissions can be set numerically where the first three |
| 172 | numbers are calculated by adding the octal values, such as |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 173 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 174 | 4 Read |
| 175 | 2 Write |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 176 | 1 Execute |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 177 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 178 | An optional fourth digit can also be used to specify |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 179 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 180 | 4 Set user ID |
| 181 | 2 Set group ID |
Eric Andersen | 98cd53e | 2000-06-16 19:56:44 +0000 | [diff] [blame] | 182 | 1 Sticky bit |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 183 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 184 | Options: |
| 185 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 186 | -R Change files and directories recursively. |
Pavel Roskin | 1a804e4 | 2000-06-21 21:38:00 +0000 | [diff] [blame] | 187 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 188 | Example: |
| 189 | |
| 190 | $ ls -l /tmp/foo |
| 191 | -rw-rw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo |
| 192 | $ chmod u+x /tmp/foo |
| 193 | $ ls -l /tmp/foo |
| 194 | -rwxrw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo* |
| 195 | $ chmod 444 /tmp/foo |
| 196 | $ ls -l /tmp/foo |
| 197 | -r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 198 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 199 | ------------------------------- |
| 200 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 201 | =item chown |
| 202 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 203 | Usage: chown [OPTION]... OWNER[<.|:>[GROUP] FILE... |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 204 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 205 | Changes the owner and/or group of each FILE to OWNER and/or GROUP. |
John Beppu | 5a50def | 2000-04-17 17:46:46 +0000 | [diff] [blame] | 206 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 207 | Options: |
| 208 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 209 | -R Changes files and directories recursively |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 210 | |
| 211 | Example: |
| 212 | |
| 213 | $ ls -l /tmp/foo |
| 214 | -r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo |
| 215 | $ chown root /tmp/foo |
| 216 | $ ls -l /tmp/foo |
| 217 | -r--r--r-- 1 root andersen 0 Apr 12 18:25 /tmp/foo |
| 218 | $ chown root.root /tmp/foo |
| 219 | ls -l /tmp/foo |
| 220 | -r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 221 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 222 | ------------------------------- |
| 223 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 224 | =item chroot |
| 225 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 226 | Usage: chroot NEWROOT [COMMAND...] |
| 227 | |
| 228 | Run COMMAND with root directory set to NEWROOT. |
Pavel Roskin | 1a804e4 | 2000-06-21 21:38:00 +0000 | [diff] [blame] | 229 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 230 | Example: |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 231 | |
| 232 | $ ls -l /bin/ls |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 233 | lrwxrwxrwx 1 root root 12 Apr 13 00:46 /bin/ls -> /BusyBox |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 234 | $ mount /dev/hdc1 /mnt -t minix |
| 235 | $ chroot /mnt |
| 236 | $ ls -l /bin/ls |
| 237 | -rwxr-xr-x 1 root root 40816 Feb 5 07:45 /bin/ls* |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 238 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 239 | ------------------------------- |
| 240 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 241 | =item chvt |
| 242 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 243 | Usage: chvt N |
| 244 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 245 | Changes the foreground virtual terminal to /dev/ttyN |
John Beppu | 50ed067 | 2000-04-13 23:44:04 +0000 | [diff] [blame] | 246 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 247 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 248 | |
Eric Andersen | 028fb62 | 2000-07-04 20:07:13 +0000 | [diff] [blame] | 249 | =item clear |
| 250 | |
| 251 | Clears the screen. |
| 252 | |
| 253 | ------------------------------- |
| 254 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 255 | =item cp |
| 256 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 257 | Usage: cp [OPTION]... SOURCE DEST |
| 258 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 259 | or: cp [OPTION]... SOURCE... DIRECTORY |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 260 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 261 | Copies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY. |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 262 | |
Erik Andersen | e31c066 | 2000-05-02 05:32:07 +0000 | [diff] [blame] | 263 | Options: |
| 264 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 265 | -a Same as -dpR |
| 266 | -d Preserves links |
Eric Andersen | 98cd53e | 2000-06-16 19:56:44 +0000 | [diff] [blame] | 267 | -p Preserves file attributes if possible |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 268 | -R Copies directories recursively |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 269 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 270 | ------------------------------- |
| 271 | |
Erik Andersen | 73c8c9c | 2000-05-13 05:36:13 +0000 | [diff] [blame] | 272 | =item cut |
| 273 | |
| 274 | Usage: cut [OPTION]... [FILE]... |
| 275 | |
| 276 | Prints selected fields from each input FILE to standard output. |
| 277 | |
| 278 | Options: |
| 279 | |
Eric Andersen | 1386e70 | 2000-06-26 12:14:30 +0000 | [diff] [blame] | 280 | -b LIST Output only bytes from LIST |
| 281 | -c LIST Output only characters from LIST |
| 282 | -d CHAR Use CHAR instead of tab as the field delimiter |
Pavel Roskin | 0010ee4 | 2000-07-21 15:10:57 +0000 | [diff] [blame] | 283 | -s Output only the lines containing delimiter |
Eric Andersen | 1386e70 | 2000-06-26 12:14:30 +0000 | [diff] [blame] | 284 | -f N Print only these fields |
| 285 | -n Ignored |
Erik Andersen | 73c8c9c | 2000-05-13 05:36:13 +0000 | [diff] [blame] | 286 | |
| 287 | Example: |
| 288 | |
| 289 | $ echo "Hello world" | cut -f 1 -d ' ' |
| 290 | Hello |
| 291 | $ echo "Hello world" | cut -f 2 -d ' ' |
| 292 | world |
| 293 | |
| 294 | |
| 295 | ------------------------------- |
| 296 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 297 | =item date |
| 298 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 299 | Usage: date [OPTION]... [+FORMAT] |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 300 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 301 | or: date [OPTION] [MMDDhhmm[[CC]YY][.ss]] |
| 302 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 303 | Displays the current time in the given FORMAT, or sets the system date. |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 304 | |
| 305 | Options: |
Erik Andersen | e31c066 | 2000-05-02 05:32:07 +0000 | [diff] [blame] | 306 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 307 | -R Outputs RFC-822 compliant date string |
| 308 | -s Sets time described by STRING |
| 309 | -u Prints or sets Coordinated Universal Time |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 310 | |
| 311 | Example: |
John Beppu | f17792c | 2000-04-13 03:16:01 +0000 | [diff] [blame] | 312 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 313 | $ date |
| 314 | Wed Apr 12 18:52:41 MDT 2000 |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 315 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 316 | ------------------------------- |
| 317 | |
John Beppu | 0021679 | 2000-06-21 19:06:16 +0000 | [diff] [blame] | 318 | =item dc |
| 319 | |
| 320 | Usage: dc expression ... |
| 321 | |
| 322 | This is a Tiny RPN calculator that understands the |
| 323 | following operations: +, -, /, *, and, or, not, eor. |
| 324 | If no arguments are given, dc will process input from STDIN. |
| 325 | |
| 326 | The behaviour of BusyBox/dc deviates (just a little ;-) from |
| 327 | GNU/dc, but this will be remedied in the future. |
| 328 | |
| 329 | Example: |
| 330 | |
| 331 | $ dc 2 2 + |
| 332 | 4 |
| 333 | $ dc 8 8 \* 2 2 + / |
| 334 | 16 |
| 335 | $ dc 0 1 and |
| 336 | 0 |
| 337 | $ dc 0 1 or |
| 338 | 1 |
| 339 | $ echo 72 9 div 8 mul | dc |
| 340 | 64 |
| 341 | |
| 342 | ------------------------------- |
| 343 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 344 | =item dd |
| 345 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 346 | Usage: dd [if=name] [of=name] [bs=n] [count=n] [skip=n] [seek=n] |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 347 | |
| 348 | Copy a file, converting and formatting according to options |
| 349 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 350 | if=FILE read from FILE instead of stdin |
| 351 | of=FILE write to FILE instead of stdout |
| 352 | bs=n read and write n bytes at a time |
| 353 | count=n copy only n input blocks |
| 354 | skip=n skip n input blocks |
| 355 | seek=n skip n output blocks |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 356 | |
| 357 | Numbers may be suffixed by w (x2), k (x1024), b (x512), or M (x1024^2) |
Pavel Roskin | 1a804e4 | 2000-06-21 21:38:00 +0000 | [diff] [blame] | 358 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 359 | Example: |
| 360 | |
| 361 | $ dd if=/dev/zero of=/dev/ram1 bs=1M count=4 |
| 362 | 4+0 records in |
| 363 | 4+0 records out |
| 364 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 365 | ------------------------------- |
| 366 | |
Eric Andersen | 028fb62 | 2000-07-04 20:07:13 +0000 | [diff] [blame] | 367 | =item deallocvt |
| 368 | |
| 369 | Usage: deallocvt N |
| 370 | |
| 371 | Deallocates unused virtual terminal /dev/ttyN |
| 372 | |
| 373 | ------------------------------- |
| 374 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 375 | =item df |
| 376 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 377 | Usage: df [filesystem ...] |
| 378 | |
| 379 | Prints the filesystem space used and space available. |
| 380 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 381 | Example: |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 382 | |
| 383 | $ df |
| 384 | Filesystem 1k-blocks Used Available Use% Mounted on |
| 385 | /dev/sda3 8690864 8553540 137324 98% / |
| 386 | /dev/sda1 64216 36364 27852 57% /boot |
| 387 | $ df /dev/sda3 |
| 388 | Filesystem 1k-blocks Used Available Use% Mounted on |
| 389 | /dev/sda3 8690864 8553540 137324 98% / |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 390 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 391 | ------------------------------- |
| 392 | |
| 393 | =item dirname |
| 394 | |
| 395 | Usage: dirname NAME |
| 396 | |
| 397 | Strip non-directory suffix from file name |
| 398 | |
| 399 | Example: |
| 400 | |
| 401 | $ dirname /tmp/foo |
| 402 | /tmp |
| 403 | $ dirname /tmp/foo/ |
| 404 | /tmp |
| 405 | |
| 406 | ------------------------------- |
| 407 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 408 | =item dmesg |
| 409 | |
John Beppu | f17792c | 2000-04-13 03:16:01 +0000 | [diff] [blame] | 410 | Usage: dmesg [B<-c>] [B<-n> level] [B<-s> bufsize] |
Pavel Roskin | 1a804e4 | 2000-06-21 21:38:00 +0000 | [diff] [blame] | 411 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 412 | Print or controls the kernel ring buffer. |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 413 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 414 | ------------------------------- |
| 415 | |
Eric Andersen | cff3fe3 | 2000-09-20 19:22:26 +0000 | [diff] [blame] | 416 | =item dos2unix |
| 417 | |
| 418 | Usage: dos2unix < dosfile > unixfile |
| 419 | |
| 420 | Converts a text file from dos format to unix format. |
| 421 | |
| 422 | ------------------------------- |
| 423 | |
Glenn L McGrath | fa04432 | 2001-01-03 01:06:30 +0000 | [diff] [blame] | 424 | =item dpkg-deb |
| 425 | |
| 426 | Usage: dpkg-deb [-cexX] archive-file [directory] |
| 427 | |
| 428 | Debian package archive (.deb) manipulation tool |
| 429 | |
| 430 | Options: |
| 431 | |
| 432 | -c Lists the contents of the filesystem tree archive |
| 433 | portion of the package archive. |
| 434 | |
| 435 | -e Extracts the control information files from a package |
| 436 | archive into the specified directory. |
| 437 | |
| 438 | -x Silently extracts the filesystem tree from a package |
| 439 | archive into the specified directory. |
| 440 | |
| 441 | -X Extracts the filesystem tree from a package archive |
| 442 | into the specified directory, list files as it goes. |
| 443 | |
| 444 | Example: |
| 445 | |
| 446 | dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp |
| 447 | |
| 448 | ------------------------------- |
| 449 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 450 | =item du |
| 451 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 452 | Usage: du [OPTION]... [FILE]... |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 453 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 454 | Summarize disk space used for each FILE and/or directory. |
| 455 | Disk space is printed in units of 1k (i.e. 1024 bytes). |
| 456 | |
| 457 | Options: |
John Beppu | f17792c | 2000-04-13 03:16:01 +0000 | [diff] [blame] | 458 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 459 | -l count sizes many times if hard linked |
| 460 | -s display only a total for each argument |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 461 | |
| 462 | Example: |
| 463 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 464 | $ ./BusyBox du |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 465 | 16 ./CVS |
| 466 | 12 ./kernel-patches/CVS |
| 467 | 80 ./kernel-patches |
| 468 | 12 ./tests/CVS |
| 469 | 36 ./tests |
| 470 | 12 ./scripts/CVS |
| 471 | 16 ./scripts |
| 472 | 12 ./docs/CVS |
| 473 | 104 ./docs |
| 474 | 2417 . |
Pavel Roskin | 1a804e4 | 2000-06-21 21:38:00 +0000 | [diff] [blame] | 475 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 476 | ------------------------------- |
| 477 | |
Eric Andersen | 61dc057 | 2000-07-11 17:29:36 +0000 | [diff] [blame] | 478 | =item dumpkmap |
| 479 | |
| 480 | Usage: dumpkmap |
| 481 | |
Eric Andersen | 337ec1b | 2000-11-17 17:23:16 +0000 | [diff] [blame] | 482 | Prints out a binary keyboard translation table to standard output. |
Eric Andersen | 61dc057 | 2000-07-11 17:29:36 +0000 | [diff] [blame] | 483 | |
Eric Andersen | 18a1014 | 2000-09-01 16:12:57 +0000 | [diff] [blame] | 484 | Example: |
| 485 | |
| 486 | $ dumpkmap > keymap |
| 487 | |
Eric Andersen | 61dc057 | 2000-07-11 17:29:36 +0000 | [diff] [blame] | 488 | ------------------------------- |
| 489 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 490 | =item dutmp |
| 491 | |
| 492 | Usage: dutmp [FILE] |
| 493 | |
| 494 | Dump utmp file format (pipe delimited) from FILE |
| 495 | or stdin to stdout. |
| 496 | |
| 497 | Example: |
| 498 | |
| 499 | $ dutmp /var/run/utmp |
| 500 | 8|7||si|||0|0|0|955637625|760097|0 |
| 501 | 2|0|~|~~|reboot||0|0|0|955637625|782235|0 |
| 502 | 1|20020|~|~~|runlevel||0|0|0|955637625|800089|0 |
| 503 | 8|125||l4|||0|0|0|955637629|998367|0 |
| 504 | 6|245|tty1|1|LOGIN||0|0|0|955637630|998974|0 |
| 505 | 6|246|tty2|2|LOGIN||0|0|0|955637630|999498|0 |
| 506 | 7|336|pts/0|vt00andersen|andersen|:0.0|0|0|0|955637763|0|0 |
Pavel Roskin | 1a804e4 | 2000-06-21 21:38:00 +0000 | [diff] [blame] | 507 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 508 | ------------------------------- |
| 509 | |
| 510 | =item echo |
| 511 | |
| 512 | Usage: echo [-neE] [ARG ...] |
| 513 | |
| 514 | Prints the specified ARGs to stdout |
| 515 | |
| 516 | Options: |
| 517 | |
| 518 | -n suppress trailing newline |
| 519 | -e interpret backslash-escaped characters (i.e. \t=tab etc) |
| 520 | -E disable interpretation of backslash-escaped characters |
| 521 | |
| 522 | Example: |
| 523 | |
| 524 | $ echo "Erik is cool" |
| 525 | Erik is cool |
| 526 | $ echo -e "Erik\nis\ncool" |
| 527 | Erik |
| 528 | is |
| 529 | cool |
| 530 | $ echo "Erik\nis\ncool" |
| 531 | Erik\nis\ncool |
Pavel Roskin | 1a804e4 | 2000-06-21 21:38:00 +0000 | [diff] [blame] | 532 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 533 | ------------------------------- |
| 534 | |
Eric Andersen | 2aa1091 | 2000-11-14 21:28:09 +0000 | [diff] [blame] | 535 | =item expr |
Eric Andersen | 1b355eb | 2000-09-05 17:37:48 +0000 | [diff] [blame] | 536 | |
| 537 | |
| 538 | Usage: expr EXPRESSION |
| 539 | |
| 540 | Prints the value of EXPRESSION to standard output. |
| 541 | |
| 542 | EXPRESSION may be: |
| 543 | |
| 544 | ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2 |
| 545 | ARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0 |
| 546 | ARG1 < ARG2 ARG1 is less than ARG2 |
| 547 | ARG1 <= ARG2 ARG1 is less than or equal to ARG2 |
| 548 | ARG1 = ARG2 ARG1 is equal to ARG2 |
| 549 | ARG1 != ARG2 ARG1 is unequal to ARG2 |
| 550 | ARG1 >= ARG2 ARG1 is greater than or equal to ARG2 |
| 551 | ARG1 > ARG2 ARG1 is greater than ARG2 |
| 552 | ARG1 + ARG2 arithmetic sum of ARG1 and ARG2 |
| 553 | ARG1 - ARG2 arithmetic difference of ARG1 and ARG2 |
| 554 | ARG1 * ARG2 arithmetic product of ARG1 and ARG2 |
| 555 | ARG1 / ARG2 arithmetic quotient of ARG1 divided by ARG2 |
| 556 | ARG1 % ARG2 arithmetic remainder of ARG1 divided by ARG2 |
| 557 | STRING : REGEXP anchored pattern match of REGEXP in STRING |
| 558 | match STRING REGEXP same as STRING : REGEXP |
| 559 | substr STRING POS LENGTH substring of STRING, POS counted from 1 |
| 560 | index STRING CHARS index in STRING where any CHARS is found, or 0 |
| 561 | length STRING length of STRING |
| 562 | quote TOKEN interpret TOKEN as a string, even if it is a |
| 563 | keyword like `match' or an operator like `/' |
| 564 | ( EXPRESSION ) value of EXPRESSION |
| 565 | |
| 566 | Beware that many operators need to be escaped or quoted for shells. |
| 567 | Comparisons are arithmetic if both ARGs are numbers, else |
| 568 | lexicographical. Pattern matches return the string matched between |
| 569 | \( and \) or null; if \( and \) are not used, they return the number |
| 570 | of characters matched or 0. |
| 571 | |
| 572 | ------------------------------- |
| 573 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 574 | =item false |
| 575 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 576 | Returns an exit code of FALSE (1) |
| 577 | |
| 578 | Example: |
| 579 | |
| 580 | $ false |
| 581 | $ echo $? |
| 582 | 1 |
| 583 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 584 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 585 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 586 | =item fbset |
| 587 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 588 | Usage: fbset [options] [mode] |
| 589 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 590 | Show and modify frame buffer device settings |
| 591 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 592 | Options: |
| 593 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 594 | -h |
| 595 | -fb |
| 596 | -db |
| 597 | -a |
| 598 | -i |
| 599 | -g |
| 600 | -t |
| 601 | -accel |
| 602 | -hsync |
| 603 | -vsync |
| 604 | -laced |
| 605 | -double |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 606 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 607 | Example: |
| 608 | |
| 609 | $ fbset |
| 610 | mode "1024x768-76" |
| 611 | # D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz |
| 612 | geometry 1024 768 1024 768 16 |
| 613 | timings 12714 128 32 16 4 128 4 |
| 614 | accel false |
| 615 | rgba 5/11,6/5,5/0,0/0 |
| 616 | endmode |
| 617 | |
| 618 | ------------------------------- |
| 619 | |
| 620 | =item fdflush |
| 621 | |
| 622 | Usage: fdflush device |
| 623 | |
| 624 | Force floppy disk drive to detect disk change |
| 625 | |
| 626 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 627 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 628 | =item find |
| 629 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 630 | Usage: find [PATH...] [EXPRESSION] |
| 631 | |
| 632 | Search for files in a directory hierarchy. The default PATH is |
| 633 | the current directory; default EXPRESSION is '-print' |
| 634 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 635 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 636 | EXPRESSION may consist of: |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 637 | |
| 638 | -follow Dereference symbolic links. |
| 639 | -name PATTERN File name (leading directories removed) matches PATTERN. |
| 640 | -print print the full file name followed by a newline to stdout. |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 641 | |
| 642 | Example: |
| 643 | |
| 644 | $ find / -name /etc/passwd |
| 645 | /etc/passwd |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 646 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 647 | ------------------------------- |
| 648 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 649 | =item free |
| 650 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 651 | Usage: free |
| 652 | |
Erik Andersen | 7ab9c7e | 2000-05-12 19:41:47 +0000 | [diff] [blame] | 653 | Displays the amount of free and used system memory. |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 654 | |
| 655 | Example: |
| 656 | |
| 657 | $ free |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 658 | total used free shared buffers |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 659 | Mem: 257628 248724 8904 59644 93124 |
| 660 | Swap: 128516 8404 120112 |
| 661 | Total: 386144 257128 129016 |
| 662 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 663 | ------------------------------- |
| 664 | |
| 665 | =item freeramdisk |
| 666 | |
| 667 | Usage: freeramdisk DEVICE |
| 668 | |
Erik Andersen | 7ab9c7e | 2000-05-12 19:41:47 +0000 | [diff] [blame] | 669 | Frees all memory used by the specified ramdisk. |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 670 | |
| 671 | Example: |
| 672 | |
| 673 | $ freeramdisk /dev/ram2 |
| 674 | |
| 675 | ------------------------------- |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 676 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 677 | =item fsck.minix |
| 678 | |
John Beppu | f17792c | 2000-04-13 03:16:01 +0000 | [diff] [blame] | 679 | Usage: fsck.minix [B<-larvsmf>] /dev/name |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 680 | |
| 681 | Performs a consistency check for MINIX filesystems. |
| 682 | |
Eric Andersen | 2086e3d | 2000-07-04 22:17:01 +0000 | [diff] [blame] | 683 | Options: |
John Beppu | f17792c | 2000-04-13 03:16:01 +0000 | [diff] [blame] | 684 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 685 | -l Lists all filenames |
| 686 | -r Perform interactive repairs |
| 687 | -a Perform automatic repairs |
| 688 | -v verbose |
| 689 | -s Outputs super-block information |
| 690 | -m Activates MINIX-like "mode not cleared" warnings |
| 691 | -f Force file system check. |
| 692 | |
| 693 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 694 | |
Eric Andersen | a1f16bb | 2000-08-21 22:02:34 +0000 | [diff] [blame] | 695 | =item getopt |
| 696 | |
| 697 | Usage: getopt [OPTIONS]... |
| 698 | |
| 699 | Parse command options |
| 700 | |
| 701 | Options: |
| 702 | |
| 703 | -a, --alternative Allow long options starting with single -\n" |
| 704 | -l, --longoptions=longopts Long options to be recognized\n" |
| 705 | -n, --name=progname The name under which errors are reported\n" |
| 706 | -o, --options=optstring Short options to be recognized\n" |
| 707 | -q, --quiet Disable error reporting by getopt(3)\n" |
| 708 | -Q, --quiet-output No normal output\n" |
| 709 | -s, --shell=shell Set shell quoting conventions\n" |
| 710 | -T, --test Test for getopt(1) version\n" |
| 711 | -u, --unqote Do not quote the output\n" |
| 712 | |
| 713 | Example: |
Eric Andersen | e4c4d69 | 2000-08-21 23:29:45 +0000 | [diff] [blame] | 714 | |
Eric Andersen | a1f16bb | 2000-08-21 22:02:34 +0000 | [diff] [blame] | 715 | $ cat getopt.test |
| 716 | #!/bin/sh |
| 717 | GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \ |
| 718 | -n 'example.busybox' -- "$@"` |
| 719 | if [ $? != 0 ] ; then exit 1 ; fi |
| 720 | eval set -- "$GETOPT" |
| 721 | while true ; do |
| 722 | case $1 in |
| 723 | -a|--a-long) echo "Option a" ; shift ;; |
| 724 | -b|--b-long) echo "Option b, argument \`$2'" ; shift 2 ;; |
| 725 | -c|--c-long) |
| 726 | case "$2" in |
| 727 | "") echo "Option c, no argument"; shift 2 ;; |
| 728 | *) echo "Option c, argument \`$2'" ; shift 2 ;; |
| 729 | esac ;; |
| 730 | --) shift ; break ;; |
| 731 | *) echo "Internal error!" ; exit 1 ;; |
| 732 | esac |
| 733 | done |
| 734 | |
| 735 | |
| 736 | ------------------------------- |
| 737 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 738 | =item grep |
| 739 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 740 | Usage: grep [OPTIONS]... PATTERN [FILE]... |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 741 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 742 | Search for PATTERN in each FILE or standard input. |
| 743 | |
Eric Andersen | 2086e3d | 2000-07-04 22:17:01 +0000 | [diff] [blame] | 744 | Options: |
John Beppu | f17792c | 2000-04-13 03:16:01 +0000 | [diff] [blame] | 745 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 746 | -h suppress the prefixing filename on output |
| 747 | -i ignore case distinctions |
| 748 | -n print line number with output lines |
| 749 | -q be quiet. Returns 0 if result was found, 1 otherwise |
Erik Andersen | a19bc64 | 2000-05-02 06:40:02 +0000 | [diff] [blame] | 750 | -v select non-matching lines |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 751 | |
Eric Andersen | 98cd53e | 2000-06-16 19:56:44 +0000 | [diff] [blame] | 752 | This version of grep matches full regular expressions. |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 753 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 754 | Example: |
| 755 | |
| 756 | $ grep root /etc/passwd |
| 757 | root:x:0:0:root:/root:/bin/bash |
| 758 | $ grep ^[rR]oo. /etc/passwd |
| 759 | root:x:0:0:root:/root:/bin/bash |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 760 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 761 | ------------------------------- |
| 762 | |
| 763 | =item gunzip |
| 764 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 765 | Usage: gunzip [OPTION]... FILE |
| 766 | |
| 767 | Uncompress FILE (or standard input if FILE is '-'). |
| 768 | |
| 769 | Options: |
| 770 | |
| 771 | -c Write output to standard output |
| 772 | -t Test compressed file integrity |
| 773 | |
| 774 | Example: |
| 775 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 776 | $ ls -la /tmp/BusyBox* |
| 777 | -rw-rw-r-- 1 andersen andersen 557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz |
| 778 | $ gunzip /tmp/BusyBox-0.43.tar.gz |
| 779 | $ ls -la /tmp/BusyBox* |
| 780 | -rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 781 | |
| 782 | ------------------------------- |
| 783 | |
| 784 | =item gzip |
| 785 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 786 | Usage: gzip [OPTION]... FILE |
| 787 | |
| 788 | Compress FILE with maximum compression. |
John Beppu | 9057b6a | 2000-04-16 10:22:28 +0000 | [diff] [blame] | 789 | When FILE is '-', reads standard input. Implies B<-c>. |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 790 | |
| 791 | Options: |
| 792 | |
| 793 | -c Write output to standard output instead of FILE.gz |
Eric Andersen | d0fa0a1 | 2000-12-13 17:59:37 +0000 | [diff] [blame] | 794 | -d decompress |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 795 | |
| 796 | Example: |
| 797 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 798 | $ ls -la /tmp/BusyBox* |
| 799 | -rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar |
| 800 | $ gzip /tmp/BusyBox-0.43.tar |
| 801 | $ ls -la /tmp/BusyBox* |
| 802 | -rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/BusyBox-0.43.tar.gz |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 803 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 804 | |
| 805 | ------------------------------- |
| 806 | |
| 807 | =item halt |
| 808 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 809 | Usage: halt |
| 810 | |
Eric Andersen | 98cd53e | 2000-06-16 19:56:44 +0000 | [diff] [blame] | 811 | This command halts the system. |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 812 | |
| 813 | ------------------------------- |
| 814 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 815 | =item head |
| 816 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 817 | Usage: head [OPTION] [FILE]... |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 818 | |
| 819 | Print first 10 lines of each FILE to standard output. |
| 820 | With more than one FILE, precede each with a header giving the |
| 821 | file name. With no FILE, or when FILE is -, read standard input. |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 822 | |
| 823 | Options: |
John Beppu | f17792c | 2000-04-13 03:16:01 +0000 | [diff] [blame] | 824 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 825 | -n NUM Print first NUM lines instead of first 10 |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 826 | |
| 827 | Example: |
| 828 | |
| 829 | $ head -n 2 /etc/passwd |
| 830 | root:x:0:0:root:/root:/bin/bash |
| 831 | daemon:x:1:1:daemon:/usr/sbin:/bin/sh |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 832 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 833 | ------------------------------- |
| 834 | |
| 835 | =item hostid |
| 836 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 837 | Usage: hostid |
| 838 | |
| 839 | Prints out a unique 32-bit identifier for the current |
| 840 | machine. The 32-bit identifier is intended to be unique |
| 841 | among all UNIX systems in existence. |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 842 | |
| 843 | ------------------------------- |
| 844 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 845 | =item hostname |
| 846 | |
John Beppu | f17792c | 2000-04-13 03:16:01 +0000 | [diff] [blame] | 847 | Usage: hostname [OPTION] {hostname | B<-F> file} |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 848 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 849 | Get or set the hostname or DNS domain name. If a hostname is given |
John Beppu | f17792c | 2000-04-13 03:16:01 +0000 | [diff] [blame] | 850 | (or a file with the B<-F> parameter), the host name will be set. |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 851 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 852 | Options: |
John Beppu | f17792c | 2000-04-13 03:16:01 +0000 | [diff] [blame] | 853 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 854 | -s Short |
| 855 | -i Addresses for the hostname |
| 856 | -d DNS domain name |
Eric Andersen | 0d5835a | 2000-10-12 22:30:31 +0000 | [diff] [blame] | 857 | -F, --file FILE Use the contents of FILE to specify the hostname |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 858 | |
| 859 | Example: |
| 860 | |
| 861 | $ hostname |
| 862 | slag |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 863 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 864 | ------------------------------- |
| 865 | |
Erik Andersen | 73c8c9c | 2000-05-13 05:36:13 +0000 | [diff] [blame] | 866 | =item id |
| 867 | |
| 868 | Print information for USERNAME or the current user |
| 869 | |
| 870 | Options: |
| 871 | |
| 872 | -g prints only the group ID |
| 873 | -u prints only the user ID |
Eric Andersen | c1b8f12 | 2001-01-25 05:12:02 +0000 | [diff] [blame] | 874 | -n print a name instead of a number (with for -ug) |
Erik Andersen | 73c8c9c | 2000-05-13 05:36:13 +0000 | [diff] [blame] | 875 | -r prints the real user ID instead of the effective ID (with -ug) |
| 876 | |
| 877 | Example: |
| 878 | |
| 879 | $ id |
| 880 | uid=1000(andersen) gid=1000(andersen) |
| 881 | |
| 882 | ------------------------------- |
| 883 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 884 | =item init |
| 885 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 886 | Usage: init |
| 887 | |
| 888 | Init is the parent of all processes. |
| 889 | |
| 890 | This version of init is designed to be run only by the kernel. |
| 891 | |
| 892 | BusyBox init doesn't support multiple runlevels. The runlevels field of |
| 893 | the /etc/inittab file is completely ignored by BusyBox init. If you want |
| 894 | runlevels, use sysvinit. |
| 895 | |
| 896 | BusyBox init works just fine without an inittab. If no inittab is found, |
| 897 | it has the following default behavior: |
| 898 | |
| 899 | ::sysinit:/etc/init.d/rcS |
| 900 | ::askfirst:/bin/sh |
| 901 | |
| 902 | if it detects that /dev/console is _not_ a serial console, it will also run: |
| 903 | |
| 904 | tty2::askfirst:/bin/sh |
| 905 | |
| 906 | If you choose to use an /etc/inittab file, the inittab entry format is as follows: |
| 907 | |
| 908 | <id>:<runlevels>:<action>:<process> |
| 909 | |
| 910 | <id>: |
| 911 | |
| 912 | WARNING: This field has a non-traditional meaning for BusyBox init! |
| 913 | The id field is used by BusyBox init to specify the controlling tty for |
| 914 | the specified process to run on. The contents of this field are |
| 915 | appended to "/dev/" and used as-is. There is no need for this field to |
| 916 | be unique, although if it isn't you may have strange results. If this |
Eric Andersen | 0d2acb0 | 2000-12-18 20:36:02 +0000 | [diff] [blame] | 917 | field is left blank, the controlling tty is set to the console. Also |
| 918 | note that if BusyBox detects that a serial console is in use, then only |
| 919 | entries whose controlling tty is either the serial console or /dev/null |
| 920 | will be run. BusyBox init does nothing with utmp. We don't need no |
| 921 | stinkin' utmp. |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 922 | |
| 923 | <runlevels>: |
| 924 | |
| 925 | The runlevels field is completely ignored. |
| 926 | |
| 927 | <action>: |
| 928 | |
| 929 | Valid actions include: sysinit, respawn, askfirst, wait, |
| 930 | once, and ctrlaltdel. |
| 931 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 932 | |
Eric Andersen | eb4218d | 2000-12-08 20:38:00 +0000 | [diff] [blame] | 933 | The available actions can be classified into two groups: actions |
| 934 | that are run only once, and actions that are re-run when the specified |
| 935 | process exits. |
| 936 | |
| 937 | Run only-once actions: |
| 938 | |
| 939 | 'sysinit' is the first item run on boot. init waits until all |
| 940 | sysinit actions are completed before continuing. Following the |
| 941 | completion of all sysinit actions, all 'wait' actions are run. |
| 942 | 'wait' actions, like 'sysinit' actions, cause init to wait until |
| 943 | the specified task completes. 'once' actions are asyncronous, |
| 944 | therefore, init does not wait for them to complete. 'ctrlaltdel' |
| 945 | actions are run immediately before init causes the system to reboot |
| 946 | (unmounting filesystems with a 'ctrlaltdel' action is a very good |
| 947 | idea). |
| 948 | |
| 949 | Run repeatedly actions: |
| 950 | |
| 951 | 'respawn' actions are run after the 'once' actions. When a process |
| 952 | started with a 'respawn' action exits, init automatically restarts |
| 953 | it. Unlike sysvinit, BusyBox init does not stop processes from |
| 954 | respawning out of control. The 'askfirst' actions acts just like |
| 955 | respawn, except that before running the specified process it |
| 956 | displays the line "Please press Enter to activate this console." |
| 957 | and then waits for the user to press enter before starting the |
| 958 | specified process. |
| 959 | |
| 960 | Unrecognized actions (like initdefault) will cause init to emit an |
| 961 | error message, and then go along with its business. All actions are |
| 962 | run in the reverse order from how they appear in /etc/inittab. |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 963 | |
| 964 | <process>: |
| 965 | |
| 966 | Specifies the process to be executed and it's command line. |
| 967 | |
| 968 | |
| 969 | Example /etc/inittab file: |
| 970 | |
| 971 | # This is run first except when booting in single-user mode. |
| 972 | # |
| 973 | ::sysinit:/etc/init.d/rcS |
| 974 | |
| 975 | # /bin/sh invocations on selected ttys |
| 976 | # |
| 977 | # Start an "askfirst" shell on the console (whatever that may be) |
Pavel Roskin | c9db2e8 | 2000-09-15 17:24:13 +0000 | [diff] [blame] | 978 | ::askfirst:-/bin/sh |
| 979 | # Start an "askfirst" shell on /dev/tty2-4 |
| 980 | tty2::askfirst:-/bin/sh |
| 981 | tty3::askfirst:-/bin/sh |
| 982 | tty4::askfirst:-/bin/sh |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 983 | |
| 984 | # /sbin/getty invocations for selected ttys |
| 985 | # |
Pavel Roskin | c9db2e8 | 2000-09-15 17:24:13 +0000 | [diff] [blame] | 986 | tty4::respawn:/sbin/getty 38400 tty5 |
| 987 | tty5::respawn:/sbin/getty 38400 tty6 |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 988 | |
| 989 | |
| 990 | # Example of how to put a getty on a serial line (for a terminal) |
| 991 | # |
Eric Andersen | 8ce85ce | 2000-09-26 22:20:06 +0000 | [diff] [blame] | 992 | #::respawn:/sbin/getty -L ttyS0 9600 vt100 |
| 993 | #::respawn:/sbin/getty -L ttyS1 9600 vt100 |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 994 | # |
| 995 | # Example how to put a getty on a modem line. |
Eric Andersen | 8ce85ce | 2000-09-26 22:20:06 +0000 | [diff] [blame] | 996 | #::respawn:/sbin/getty 57600 ttyS2 |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 997 | |
| 998 | # Stuff to do before rebooting |
Pavel Roskin | c9db2e8 | 2000-09-15 17:24:13 +0000 | [diff] [blame] | 999 | ::ctrlaltdel:/bin/umount -a -r |
| 1000 | ::ctrlaltdel:/sbin/swapoff -a |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1001 | |
| 1002 | ------------------------------- |
| 1003 | |
Eric Andersen | feb47c0 | 2000-06-21 21:03:13 +0000 | [diff] [blame] | 1004 | =item insmod |
| 1005 | |
| 1006 | Usage: insmod [OPTION]... MODULE [symbol=value]... |
| 1007 | |
| 1008 | Loads the specified kernel modules into the kernel. |
| 1009 | |
| 1010 | Options: |
| 1011 | |
| 1012 | -f Force module to load into the wrong kernel version. |
| 1013 | -k Make module autoclean-able. |
| 1014 | -v verbose output |
| 1015 | -x do not export externs |
Eric Andersen | 8c5cb31 | 2001-01-24 19:15:07 +0000 | [diff] [blame] | 1016 | -L Prevent simultaneous loads of the same module |
Eric Andersen | feb47c0 | 2000-06-21 21:03:13 +0000 | [diff] [blame] | 1017 | |
| 1018 | ------------------------------- |
| 1019 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1020 | =item kill |
| 1021 | |
John Beppu | f17792c | 2000-04-13 03:16:01 +0000 | [diff] [blame] | 1022 | Usage: kill [B<-signal>] process-id [process-id ...] |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1023 | |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 1024 | Send a signal (default is SIGTERM) to the specified process(es). |
| 1025 | |
| 1026 | Options: |
John Beppu | f17792c | 2000-04-13 03:16:01 +0000 | [diff] [blame] | 1027 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1028 | -l List all signal names and numbers. |
Erik Andersen | 62dc17a | 2000-04-13 01:18:23 +0000 | [diff] [blame] | 1029 | |
| 1030 | Example: |
| 1031 | |
| 1032 | $ ps | grep apache |
| 1033 | 252 root root S [apache] |
| 1034 | 263 www-data www-data S [apache] |
| 1035 | 264 www-data www-data S [apache] |
| 1036 | 265 www-data www-data S [apache] |
| 1037 | 266 www-data www-data S [apache] |
| 1038 | 267 www-data www-data S [apache] |
| 1039 | $ kill 252 |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1040 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1041 | ------------------------------- |
| 1042 | |
| 1043 | =item killall |
| 1044 | |
John Beppu | 9057b6a | 2000-04-16 10:22:28 +0000 | [diff] [blame] | 1045 | Usage: killall [B<-signal>] process-name [process-name ...] |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1046 | |
| 1047 | Send a signal (default is SIGTERM) to the specified process(es). |
| 1048 | |
| 1049 | Options: |
John Beppu | 9057b6a | 2000-04-16 10:22:28 +0000 | [diff] [blame] | 1050 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1051 | -l List all signal names and numbers. |
| 1052 | |
| 1053 | Example: |
| 1054 | |
| 1055 | $ killall apache |
| 1056 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1057 | ------------------------------- |
| 1058 | |
| 1059 | =item length |
| 1060 | |
Erik Andersen | 7ab9c7e | 2000-05-12 19:41:47 +0000 | [diff] [blame] | 1061 | Usage: length STRING |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1062 | |
Erik Andersen | 7ab9c7e | 2000-05-12 19:41:47 +0000 | [diff] [blame] | 1063 | Prints out the length of the specified STRING. |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1064 | |
| 1065 | Example: |
Erik Andersen | a19bc64 | 2000-05-02 06:40:02 +0000 | [diff] [blame] | 1066 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1067 | $ length "Hello" |
| 1068 | 5 |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1069 | |
| 1070 | ------------------------------- |
| 1071 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1072 | =item ln |
| 1073 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1074 | Usage: ln [OPTION] TARGET... LINK_NAME|DIRECTORY |
Erik Andersen | a19bc64 | 2000-05-02 06:40:02 +0000 | [diff] [blame] | 1075 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1076 | Create a link named LINK_NAME or DIRECTORY to the specified TARGET |
Eric Andersen | addc9c2 | 2000-06-21 22:53:24 +0000 | [diff] [blame] | 1077 | You may use '--' to indicate that all following arguments are non-options. |
Pavel Roskin | 1a804e4 | 2000-06-21 21:38:00 +0000 | [diff] [blame] | 1078 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1079 | Options: |
| 1080 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1081 | -s make symbolic links instead of hard links |
| 1082 | -f remove existing destination files |
Pavel Roskin | 1a804e4 | 2000-06-21 21:38:00 +0000 | [diff] [blame] | 1083 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1084 | Example: |
| 1085 | |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 1086 | $ ln -s BusyBox /tmp/ls |
Erik Andersen | a19bc64 | 2000-05-02 06:40:02 +0000 | [diff] [blame] | 1087 | $ ls -l /tmp/ls |
Erik Andersen | cf8d38a | 2000-04-21 01:23:36 +0000 | [diff] [blame] | 1088 | lrwxrwxrwx 1 root root 7 Apr 12 18:39 ls -> BusyBox* |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1089 | |
| 1090 | ------------------------------- |
| 1091 | |
| 1092 | =item loadacm |
| 1093 | |
Erik Andersen | 3fe7f9f | 2000-04-19 03:59:10 +0000 | [diff] [blame] | 1094 | Usage: loadacm |
| 1095 | |
| 1096 | Loads an acm from standard input. |
| 1097 | |
| 1098 | Example: |
| 1099 | |
| 1100 | $ loadacm < /etc/i18n/acmname |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1101 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1102 | ------------------------------- |
| 1103 | |
| 1104 | =item loadfont |
| 1105 | |
Erik Andersen | a6c7522 | 2000-04-18 00:00:52 +0000 | [diff] [blame] | 1106 | Usage: loadfont |
| 1107 | |
| 1108 | Loads a console font from standard input. |
| 1109 | |
Erik Andersen | 3fe7f9f | 2000-04-19 03:59:10 +0000 | [diff] [blame] | 1110 | Example: |
| 1111 | |
| 1112 | $ loadfont < /etc/i18n/fontname |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1113 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1114 | ------------------------------- |
| 1115 | |
| 1116 | =item loadkmap |
| 1117 | |
Erik Andersen | 3fe7f9f | 2000-04-19 03:59:10 +0000 | [diff] [blame] | 1118 | Usage: loadkmap |
| 1119 | |
| 1120 | Loads a binary keyboard translation table from standard input. |
| 1121 | |
| 1122 | Example: |
| 1123 | |
| 1124 | $ loadkmap < /etc/i18n/lang-keymap |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1125 | |
| 1126 | ------------------------------- |
| 1127 | |
| 1128 | =item logger |
| 1129 | |
| 1130 | Usage: logger [OPTION]... [MESSAGE] |
| 1131 | |
Matt Kraai | 004827d | 2001-01-02 22:54:12 +0000 | [diff] [blame] | 1132 | Write MESSAGE to the system log. If MESSAGE is omitted, log stdin. |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1133 | |
| 1134 | Options: |
| 1135 | |
| 1136 | -s Log to stderr as well as the system log. |
| 1137 | -t Log using the specified tag (defaults to user name). |
| 1138 | -p Enter the message with the specified priority. |
| 1139 | This may be numerical or a ``facility.level'' pair. |
| 1140 | |
| 1141 | Example: |
| 1142 | |
| 1143 | $ logger "hello" |
| 1144 | |
| 1145 | ------------------------------- |
| 1146 | |
| 1147 | =item logname |
| 1148 | |
| 1149 | Usage: logname |
| 1150 | |
| 1151 | Print the name of the current user. |
| 1152 | |
| 1153 | Example: |
| 1154 | |
| 1155 | $ logname |
| 1156 | root |
| 1157 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1158 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1159 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1160 | =item ls |
| 1161 | |
Eric Andersen | 5b17693 | 2000-09-22 20:22:28 +0000 | [diff] [blame] | 1162 | Usage: ls [B<-1acdelnpuxACFLR>] [filenames...] |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1163 | |
| 1164 | Options: |
| 1165 | |
| 1166 | -a do not hide entries starting with . |
| 1167 | -c with -l: show ctime (the time of last |
| 1168 | modification of file status information) |
| 1169 | -d list directory entries instead of contents |
| 1170 | -e list both full date and full time |
| 1171 | -l use a long listing format |
| 1172 | -n list numeric UIDs and GIDs instead of names |
| 1173 | -p append indicator (one of /=@|) to entries |
| 1174 | -u with -l: show access time (the time of last |
| 1175 | access of the file) |
| 1176 | -x list entries by lines instead of by columns |
| 1177 | -A do not list implied . and .. |
| 1178 | -C list entries by columns |
| 1179 | -F append indicator (one of */=@|) to entries |
Eric Andersen | a42982e | 2000-06-07 17:28:53 +0000 | [diff] [blame] | 1180 | -R list subdirectories recursively |
Eric Andersen | 5b17693 | 2000-09-22 20:22:28 +0000 | [diff] [blame] | 1181 | -L list entries pointed to by symbolic links |
John Beppu | 50ed067 | 2000-04-13 23:44:04 +0000 | [diff] [blame] | 1182 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1183 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1184 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1185 | =item lsmod |
| 1186 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1187 | Usage: lsmod |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1188 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1189 | Shows a list of all currently loaded kernel modules. |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1190 | |
| 1191 | ------------------------------- |
| 1192 | |
| 1193 | =item makedevs |
| 1194 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1195 | Usage: makedevs NAME TYPE MAJOR MINOR FIRST LAST [s] |
| 1196 | |
| 1197 | Creates a range of block or character special files |
| 1198 | |
| 1199 | TYPEs include: |
| 1200 | |
| 1201 | b: Make a block (buffered) device. |
| 1202 | c or u: Make a character (un-buffered) device. |
| 1203 | p: Make a named pipe. MAJOR and MINOR are ignored for named pipes. |
| 1204 | |
| 1205 | FIRST specifies the number appended to NAME to create the first device. |
| 1206 | LAST specifies the number of the last item that should be created. |
| 1207 | If 's' is the last argument, the base device is created as well. |
| 1208 | |
| 1209 | Example: |
| 1210 | |
| 1211 | $ makedevs /dev/ttyS c 4 66 2 63 |
| 1212 | [creates ttyS2-ttyS63] |
| 1213 | $ makedevs /dev/hda b 3 0 0 8 s |
| 1214 | [creates hda,hda1-hda8] |
| 1215 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1216 | ------------------------------- |
| 1217 | |
Eric Andersen | 2b6ab3c | 2000-06-13 06:54:53 +0000 | [diff] [blame] | 1218 | =item md5sum |
| 1219 | |
| 1220 | Usage: md5sum [OPTION] [file ...] |
| 1221 | |
| 1222 | Print or check MD5 checksums. |
| 1223 | |
| 1224 | Options: |
| 1225 | |
| 1226 | -b read files in binary mode |
| 1227 | -c check MD5 sums against given list |
| 1228 | -t read files in text mode (default) |
| 1229 | -g read a string |
| 1230 | |
| 1231 | The following two options are useful only when verifying checksums: |
| 1232 | |
| 1233 | -s don't output anything, status code shows success |
| 1234 | -w warn about improperly formated MD5 checksum lines |
| 1235 | |
| 1236 | Example: |
| 1237 | |
| 1238 | $ md5sum busybox |
| 1239 | 6fd11e98b98a58f64ff3398d7b324003 busybox |
| 1240 | $ md5sum -c - |
| 1241 | 6fd11e98b98a58f64ff3398d7b324003 busybox |
| 1242 | busybox: OK |
| 1243 | ^D |
| 1244 | |
| 1245 | ------------------------------- |
| 1246 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1247 | =item mkdir |
| 1248 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1249 | Usage: mkdir [OPTION] DIRECTORY... |
| 1250 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1251 | Create the DIRECTORY(ies), if they do not already exist |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1252 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1253 | Options: |
| 1254 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1255 | -m set permission mode (as in chmod), not rwxrwxrwx - umask |
Eric Andersen | 98cd53e | 2000-06-16 19:56:44 +0000 | [diff] [blame] | 1256 | -p no error if directory exists, make parent directories as needed |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1257 | |
| 1258 | Example: |
| 1259 | |
| 1260 | $ mkdir /tmp/foo |
| 1261 | $ mkdir /tmp/foo |
| 1262 | /tmp/foo: File exists |
| 1263 | $ mkdir /tmp/foo/bar/baz |
| 1264 | /tmp/foo/bar/baz: No such file or directory |
| 1265 | $ mkdir -p /tmp/foo/bar/baz |
| 1266 | |
| 1267 | ------------------------------- |
| 1268 | |
| 1269 | =item mkfifo |
| 1270 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1271 | Usage: mkfifo [OPTIONS] name |
| 1272 | |
| 1273 | Creates a named pipe (identical to 'mknod name p') |
| 1274 | |
| 1275 | Options: |
John Beppu | 9057b6a | 2000-04-16 10:22:28 +0000 | [diff] [blame] | 1276 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1277 | -m create the pipe using the specified mode (default a=rw) |
| 1278 | |
| 1279 | ------------------------------- |
| 1280 | |
| 1281 | =item mkfs.minix |
| 1282 | |
| 1283 | Usage: mkfs.minix [B<-c> | B<-l> filename] [B<-nXX>] [B<-iXX>] /dev/name [blocks] |
| 1284 | |
| 1285 | Make a MINIX filesystem. |
| 1286 | |
Eric Andersen | 2086e3d | 2000-07-04 22:17:01 +0000 | [diff] [blame] | 1287 | Options: |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1288 | |
| 1289 | -c Check the device for bad blocks |
| 1290 | -n [14|30] Specify the maximum length of filenames |
| 1291 | -i Specify the number of inodes for the filesystem |
| 1292 | -l FILENAME Read the bad blocks list from FILENAME |
| 1293 | -v Make a Minix version 2 filesystem |
| 1294 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1295 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1296 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1297 | =item mknod |
| 1298 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1299 | Usage: mknod [OPTIONS] NAME TYPE MAJOR MINOR |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1300 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1301 | Create a special file (block, character, or pipe). |
| 1302 | |
| 1303 | Options: |
John Beppu | 9057b6a | 2000-04-16 10:22:28 +0000 | [diff] [blame] | 1304 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1305 | -m create the special file using the specified mode (default a=rw) |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1306 | |
| 1307 | TYPEs include: |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1308 | b: Make a block (buffered) device. |
| 1309 | c or u: Make a character (un-buffered) device. |
| 1310 | p: Make a named pipe. MAJOR and MINOR are ignored for named pipes. |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1311 | |
| 1312 | Example: |
| 1313 | |
| 1314 | $ mknod /dev/fd0 b 2 0 |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1315 | $ mknod -m 644 /tmp/pipe p |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1316 | |
| 1317 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1318 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1319 | =item mkswap |
| 1320 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1321 | Usage: mkswap [B<-c>] [B<-v0>|B<-v1>] device [block-count] |
| 1322 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1323 | Prepare a disk partition to be used as a swap partition. |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1324 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1325 | Options: |
| 1326 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1327 | -c Check for read-ability. |
| 1328 | -v0 Make version 0 swap [max 128 Megs]. |
| 1329 | -v1 Make version 1 swap [big!] (default for kernels > 2.1.117). |
| 1330 | block-count Number of block to use (default is entire partition). |
John Beppu | 50ed067 | 2000-04-13 23:44:04 +0000 | [diff] [blame] | 1331 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1332 | ------------------------------- |
| 1333 | |
Erik Andersen | 227a59b | 2000-04-25 23:24:55 +0000 | [diff] [blame] | 1334 | =item mktemp |
| 1335 | |
Erik Andersen | e31c066 | 2000-05-02 05:32:07 +0000 | [diff] [blame] | 1336 | Usage: mktemp [B<-q>] TEMPLATE |
Erik Andersen | 227a59b | 2000-04-25 23:24:55 +0000 | [diff] [blame] | 1337 | |
| 1338 | Creates a temporary file with its name based on TEMPLATE. |
| 1339 | TEMPLATE is any name with six `Xs' (i.e. /tmp/temp.XXXXXX). |
| 1340 | |
| 1341 | Example: |
Erik Andersen | a19bc64 | 2000-05-02 06:40:02 +0000 | [diff] [blame] | 1342 | |
Erik Andersen | 227a59b | 2000-04-25 23:24:55 +0000 | [diff] [blame] | 1343 | $ mktemp /tmp/temp.XXXXXX |
| 1344 | /tmp/temp.mWiLjM |
| 1345 | $ ls -la /tmp/temp.mWiLjM |
| 1346 | -rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM |
| 1347 | |
| 1348 | ------------------------------- |
| 1349 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1350 | =item more |
| 1351 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1352 | Usage: more [file ...] |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1353 | |
| 1354 | More is a filter for paging through text one screenful at a time. |
| 1355 | |
| 1356 | Example: |
| 1357 | |
| 1358 | $ dmesg | more |
John Beppu | 50ed067 | 2000-04-13 23:44:04 +0000 | [diff] [blame] | 1359 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1360 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1361 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1362 | =item mount |
| 1363 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1364 | Usage: mount [flags] |
| 1365 | mount [flags] device directory [B<-o> options,more-options] |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1366 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1367 | Flags: |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1368 | |
Erik Andersen | 6c5f2c6 | 2000-05-05 19:49:33 +0000 | [diff] [blame] | 1369 | -a: Mount all file systems in fstab. |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1370 | -o option: One of many filesystem options, listed below. |
Erik Andersen | 6c5f2c6 | 2000-05-05 19:49:33 +0000 | [diff] [blame] | 1371 | -r: Mount the filesystem read-only. |
| 1372 | -t fs-type: Specify the filesystem type. |
| 1373 | -w: Mount for reading and writing (default). |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1374 | |
Erik Andersen | 7ab9c7e | 2000-05-12 19:41:47 +0000 | [diff] [blame] | 1375 | Options for use with the "B<-o>" flag: |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1376 | |
Erik Andersen | 6c5f2c6 | 2000-05-05 19:49:33 +0000 | [diff] [blame] | 1377 | async/sync: Writes are asynchronous / synchronous. |
| 1378 | atime/noatime: Enable / disable updates to inode access times. |
| 1379 | dev/nodev: Allow use of special device files / disallow them. |
| 1380 | exec/noexec: Allow use of executable files / disallow them. |
| 1381 | loop: Mounts a file via loop device. |
| 1382 | suid/nosuid: Allow set-user-id-root programs / disallow them. |
| 1383 | remount: Re-mount a currently-mounted filesystem, changing its flags. |
| 1384 | ro/rw: Mount for read-only / read-write. |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1385 | There are EVEN MORE flags that are specific to each filesystem. |
| 1386 | You'll have to see the written documentation for those. |
| 1387 | |
| 1388 | Example: |
| 1389 | |
| 1390 | $ mount |
| 1391 | /dev/hda3 on / type minix (rw) |
| 1392 | proc on /proc type proc (rw) |
| 1393 | devpts on /dev/pts type devpts (rw) |
| 1394 | $ mount /dev/fd0 /mnt -t msdos -o ro |
| 1395 | $ mount /tmp/diskimage /opt -t ext2 -o loop |
John Beppu | 50ed067 | 2000-04-13 23:44:04 +0000 | [diff] [blame] | 1396 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1397 | ------------------------------- |
| 1398 | |
| 1399 | =item mt |
| 1400 | |
John Beppu | 9057b6a | 2000-04-16 10:22:28 +0000 | [diff] [blame] | 1401 | Usage: mt [B<-f> device] opcode value |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1402 | |
| 1403 | Control magnetic tape drive operation |
| 1404 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1405 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1406 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1407 | =item mv |
| 1408 | |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1409 | Usage: mv SOURCE DEST |
| 1410 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1411 | or: mv SOURCE... DIRECTORY |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1412 | |
| 1413 | Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY. |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1414 | |
| 1415 | Example: |
| 1416 | |
| 1417 | $ mv /tmp/foo /bin/bar |
John Beppu | 50ed067 | 2000-04-13 23:44:04 +0000 | [diff] [blame] | 1418 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1419 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1420 | |
Eric Andersen | 028fb62 | 2000-07-04 20:07:13 +0000 | [diff] [blame] | 1421 | =item nc |
| 1422 | |
| 1423 | Usage: nc [IP] [port] |
| 1424 | |
| 1425 | Netcat opens a pipe to IP:port |
| 1426 | |
| 1427 | Example: |
| 1428 | |
| 1429 | $ nc foobar.somedomain.com 25 |
| 1430 | 220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600 |
| 1431 | help |
| 1432 | 214-Commands supported: |
| 1433 | 214- HELO EHLO MAIL RCPT DATA AUTH |
| 1434 | 214 NOOP QUIT RSET HELP |
| 1435 | quit |
| 1436 | 221 foobar closing connection |
| 1437 | |
| 1438 | ------------------------------- |
| 1439 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1440 | =item nslookup |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1441 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1442 | Usage: nslookup [HOST] |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1443 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1444 | Queries the nameserver for the IP address of the given HOST |
| 1445 | |
| 1446 | Example: |
| 1447 | |
| 1448 | $ nslookup localhost |
| 1449 | Server: default |
| 1450 | Address: default |
| 1451 | |
| 1452 | Name: debian |
| 1453 | Address: 127.0.0.1 |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1454 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1455 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1456 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1457 | =item ping |
| 1458 | |
| 1459 | Usage: ping [OPTION]... host |
| 1460 | |
| 1461 | Send ICMP ECHO_REQUEST packets to network hosts. |
| 1462 | |
| 1463 | Options: |
| 1464 | |
| 1465 | -c COUNT Send only COUNT pings. |
Pavel Roskin | 0024abc | 2000-06-07 20:38:15 +0000 | [diff] [blame] | 1466 | -s SIZE Send SIZE data bytes in packets (default=56). |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1467 | -q Quiet mode, only displays output at start |
| 1468 | and when finished. |
| 1469 | Example: |
| 1470 | |
| 1471 | $ ping localhost |
| 1472 | PING slag (127.0.0.1): 56 data bytes |
| 1473 | 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=20.1 ms |
| 1474 | |
| 1475 | --- debian ping statistics --- |
| 1476 | 1 packets transmitted, 1 packets received, 0% packet loss |
| 1477 | round-trip min/avg/max = 20.1/20.1/20.1 ms |
| 1478 | |
| 1479 | ------------------------------- |
| 1480 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1481 | =item poweroff |
| 1482 | |
| 1483 | Shuts down the system, and requests that the kernel turn off power upon halting. |
| 1484 | |
| 1485 | ------------------------------- |
| 1486 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1487 | =item printf |
| 1488 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1489 | Usage: printf format [argument...] |
| 1490 | |
| 1491 | Formats and prints the given data in a manner similar to the C printf command. |
| 1492 | |
| 1493 | Example: |
| 1494 | |
| 1495 | $ printf "Val=%d\n" 5 |
| 1496 | Val=5 |
| 1497 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1498 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1499 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1500 | =item ps |
| 1501 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1502 | Usage: ps |
| 1503 | |
| 1504 | Report process status |
| 1505 | |
| 1506 | This version of ps accepts no options. |
| 1507 | |
| 1508 | Example: |
| 1509 | |
| 1510 | $ ps |
| 1511 | PID Uid Gid State Command |
| 1512 | 1 root root S init |
| 1513 | 2 root root S [kflushd] |
| 1514 | 3 root root S [kupdate] |
| 1515 | 4 root root S [kpiod] |
| 1516 | 5 root root S [kswapd] |
| 1517 | 742 andersen andersen S [bash] |
| 1518 | 743 andersen andersen S -bash |
| 1519 | 745 root root S [getty] |
| 1520 | 2990 andersen andersen R ps |
| 1521 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1522 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1523 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1524 | =item pwd |
| 1525 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1526 | Prints the full filename of the current working directory. |
| 1527 | |
| 1528 | Example: |
| 1529 | |
| 1530 | $ pwd |
| 1531 | /root |
| 1532 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1533 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1534 | |
Eric Andersen | 918507e | 2000-08-21 22:46:33 +0000 | [diff] [blame] | 1535 | =item rdate |
| 1536 | |
| 1537 | Usage: rdate [OPTION] HOST |
| 1538 | |
| 1539 | Get and possibly set the system date and time from a remote HOST. |
| 1540 | |
| 1541 | Options: |
| 1542 | |
| 1543 | -s Set the system date and time (default). |
| 1544 | -p Print the date and time. |
| 1545 | |
| 1546 | ------------------------------- |
| 1547 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1548 | =item reboot |
| 1549 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1550 | Instructs the kernel to reboot the system. |
| 1551 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1552 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1553 | |
Eric Andersen | bf960f5 | 2000-07-21 21:32:12 +0000 | [diff] [blame] | 1554 | =item renice |
| 1555 | |
| 1556 | Usage: renice priority pid [pid ...] |
| 1557 | |
| 1558 | Changes priority of running processes. Allowed priorities range |
| 1559 | from 20 (the process runs only when nothing else is running) to 0 |
| 1560 | (default priority) to -20 (almost nothing else ever gets to run). |
| 1561 | |
| 1562 | ------------------------------- |
| 1563 | |
Eric Andersen | fa405d0 | 2000-08-21 21:18:52 +0000 | [diff] [blame] | 1564 | =item reset |
| 1565 | |
| 1566 | Usage: reset |
| 1567 | |
| 1568 | Resets the screen. |
| 1569 | |
| 1570 | ------------------------------- |
| 1571 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1572 | =item rm |
| 1573 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1574 | Usage: rm [OPTION]... FILE... |
| 1575 | |
Eric Andersen | 815e904 | 2000-06-06 16:15:23 +0000 | [diff] [blame] | 1576 | Remove (unlink) the FILE(s). You may use '--' to |
| 1577 | indicate that all following arguments are non-options. |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1578 | |
| 1579 | Options: |
| 1580 | |
| 1581 | -f remove existing destinations, never prompt |
| 1582 | -r or -R remove the contents of directories recursively |
| 1583 | |
| 1584 | Example: |
| 1585 | |
| 1586 | $ rm -rf /tmp/foo |
| 1587 | |
| 1588 | ------------------------------- |
| 1589 | |
| 1590 | =item rmdir |
| 1591 | |
| 1592 | Usage: rmdir [OPTION]... DIRECTORY... |
| 1593 | |
| 1594 | Remove the DIRECTORY(ies), if they are empty. |
| 1595 | |
| 1596 | Example: |
| 1597 | |
| 1598 | # rmdir /tmp/foo |
| 1599 | |
| 1600 | ------------------------------- |
| 1601 | |
| 1602 | =item rmmod |
| 1603 | |
| 1604 | Usage: rmmod [OPTION]... [MODULE]... |
| 1605 | |
| 1606 | Unloads the specified kernel modules from the kernel. |
| 1607 | |
| 1608 | Options: |
| 1609 | |
| 1610 | -a Try to remove all unused kernel modules. |
| 1611 | |
| 1612 | Example: |
| 1613 | |
| 1614 | $ rmmod tulip |
| 1615 | |
| 1616 | ------------------------------- |
| 1617 | |
| 1618 | =item sed |
| 1619 | |
John Beppu | 9057b6a | 2000-04-16 10:22:28 +0000 | [diff] [blame] | 1620 | Usage: sed [B<-n>] B<-e> script [file...] |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1621 | |
| 1622 | Allowed sed scripts come in the following form: |
| 1623 | |
| 1624 | 'ADDR [!] COMMAND' |
| 1625 | |
| 1626 | where address ADDR can be: |
| 1627 | NUMBER Match specified line number |
| 1628 | $ Match last line |
| 1629 | /REGEXP/ Match specified regexp |
| 1630 | (! inverts the meaning of the match) |
| 1631 | |
| 1632 | and COMMAND can be: |
| 1633 | s/regexp/replacement/[igp] |
| 1634 | which attempt to match regexp against the pattern space |
| 1635 | and if successful replaces the matched portion with replacement. |
| 1636 | |
| 1637 | aTEXT |
| 1638 | which appends TEXT after the pattern space |
| 1639 | |
| 1640 | Options: |
| 1641 | |
| 1642 | -e add the script to the commands to be executed |
| 1643 | -n suppress automatic printing of pattern space |
| 1644 | |
Eric Andersen | 98cd53e | 2000-06-16 19:56:44 +0000 | [diff] [blame] | 1645 | This version of sed matches full regular expressions. |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1646 | |
| 1647 | Example: |
| 1648 | |
| 1649 | $ echo "foo" | sed -e 's/f[a-zA-Z]o/bar/g' |
| 1650 | bar |
| 1651 | |
| 1652 | ------------------------------- |
| 1653 | |
Erik Andersen | 4f3f757 | 2000-04-28 00:18:56 +0000 | [diff] [blame] | 1654 | =item setkeycodes |
| 1655 | |
| 1656 | Usage: setkeycodes SCANCODE KEYCODE ... |
| 1657 | |
| 1658 | Set entries into the kernel's scancode-to-keycode map, |
| 1659 | allowing unusual keyboards to generate usable keycodes. |
| 1660 | |
| 1661 | SCANCODE may be either xx or e0xx (hexadecimal), |
| 1662 | and KEYCODE is given in decimal |
| 1663 | |
| 1664 | Example: |
| 1665 | |
| 1666 | # setkeycodes e030 127 |
| 1667 | |
| 1668 | ------------------------------- |
| 1669 | |
Eric Andersen | 028fb62 | 2000-07-04 20:07:13 +0000 | [diff] [blame] | 1670 | =item sh |
| 1671 | |
| 1672 | Usage: sh |
| 1673 | |
| 1674 | lash -- the BusyBox LAme SHell (command interpreter) |
| 1675 | |
| 1676 | This command does not yet have proper documentation. |
| 1677 | |
| 1678 | Use lash just as you would use any other shell. It properly handles pipes, |
| 1679 | redirects, job control, can be used as the shell for scripts (#!/bin/sh), and |
| 1680 | has a sufficient set of builtins to do what is needed. It does not (yet) |
| 1681 | support Bourne Shell syntax. If you need things like "if-then-else", "while", |
| 1682 | and such, use ash or bash. If you just need a very simple and extremely small |
| 1683 | shell, this will do the job. |
| 1684 | |
| 1685 | ------------------------------- |
| 1686 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1687 | =item sleep |
| 1688 | |
| 1689 | Usage: sleep N |
| 1690 | |
| 1691 | Pause for N seconds. |
| 1692 | |
| 1693 | Example: |
| 1694 | |
| 1695 | $ sleep 2 |
| 1696 | [2 second delay results] |
| 1697 | |
| 1698 | ------------------------------- |
| 1699 | |
| 1700 | =item sort |
| 1701 | |
John Beppu | 9057b6a | 2000-04-16 10:22:28 +0000 | [diff] [blame] | 1702 | Usage: sort [B<-n>] [B<-r>] [FILE]... |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1703 | |
| 1704 | Sorts lines of text in the specified files |
| 1705 | |
| 1706 | Example: |
| 1707 | |
| 1708 | $ echo -e "e\nf\nb\nd\nc\na" | sort |
| 1709 | a |
| 1710 | b |
| 1711 | c |
| 1712 | d |
| 1713 | e |
| 1714 | f |
| 1715 | |
| 1716 | ------------------------------- |
| 1717 | |
Eric Andersen | 028fb62 | 2000-07-04 20:07:13 +0000 | [diff] [blame] | 1718 | =item swapoff |
| 1719 | |
| 1720 | Usage: swapoff [OPTION] [device] |
| 1721 | |
| 1722 | Stop swapping virtual memory pages on the given device. |
| 1723 | |
| 1724 | Options: |
| 1725 | |
| 1726 | -a Stop swapping on all swap devices |
| 1727 | |
| 1728 | ------------------------------- |
| 1729 | |
| 1730 | =item swapon |
| 1731 | |
| 1732 | Usage: swapon [OPTION] [device] |
| 1733 | |
| 1734 | Start swapping virtual memory pages on the given device. |
| 1735 | |
| 1736 | Options: |
| 1737 | |
| 1738 | -a Start swapping on all swap devices |
| 1739 | |
| 1740 | ------------------------------- |
| 1741 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1742 | =item sync |
| 1743 | |
| 1744 | Usage: sync |
| 1745 | |
| 1746 | Write all buffered filesystem blocks to disk. |
| 1747 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1748 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1749 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1750 | =item syslogd |
| 1751 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1752 | Usage: syslogd [OPTION]... |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1753 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1754 | Linux system and kernel (provides klogd) logging utility. |
| 1755 | Note that this version of syslogd/klogd ignores /etc/syslog.conf. |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1756 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1757 | Options: |
Pavel Roskin | 049b706 | 2000-06-07 21:19:49 +0000 | [diff] [blame] | 1758 | |
Eric Andersen | bf2b8ae | 2000-12-08 19:52:01 +0000 | [diff] [blame] | 1759 | -m NUM Interval between MARK lines (default=20min, 0=off) |
Pavel Roskin | da10ec0 | 2000-06-07 21:08:25 +0000 | [diff] [blame] | 1760 | -n Run as a foreground process |
| 1761 | -K Do not start up the klogd process |
Eric Andersen | bf2b8ae | 2000-12-08 19:52:01 +0000 | [diff] [blame] | 1762 | -O FILE Use an alternate log file (default=/var/log/messages) |
Eric Andersen | 70d09ed | 2000-12-11 16:24:16 +0000 | [diff] [blame] | 1763 | -R HOST[:PORT] Log remotely to IP or hostname on PORT (default PORT=514/UDP) |
Eric Andersen | 20c2bdd | 2000-12-11 19:39:25 +0000 | [diff] [blame] | 1764 | -L Log locally as well as network logging (default is network only) |
Eric Andersen | ced2cef | 2000-07-20 23:41:24 +0000 | [diff] [blame] | 1765 | |
| 1766 | Example: |
| 1767 | |
| 1768 | $ syslogd -R masterlog:514 |
| 1769 | $ syslogd -R 192.168.1.1:601 |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1770 | |
| 1771 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1772 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1773 | =item tail |
| 1774 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1775 | Usage: tail [OPTION] [FILE]... |
| 1776 | |
| 1777 | Print last 10 lines of each FILE to standard output. |
| 1778 | With more than one FILE, precede each with a header giving the |
| 1779 | file name. With no FILE, or when FILE is -, read standard input. |
| 1780 | |
| 1781 | Options: |
| 1782 | |
| 1783 | -n NUM Print last NUM lines instead of first 10 |
| 1784 | -f Output data as the file grows. This version |
| 1785 | of 'tail -f' supports only one file at a time. |
| 1786 | |
| 1787 | Example: |
| 1788 | |
| 1789 | $ tail -n 1 /etc/resolv.conf |
| 1790 | nameserver 10.0.0.1 |
| 1791 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1792 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1793 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1794 | =item tar |
| 1795 | |
John Beppu | 9057b6a | 2000-04-16 10:22:28 +0000 | [diff] [blame] | 1796 | Usage: tar -[cxtvO] [B<--exclude> File] [B<-f> tarFile] [FILE] ... |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1797 | |
| 1798 | Create, extract, or list files from a tar file. Note that |
| 1799 | this version of tar treats hard links as separate files. |
| 1800 | |
| 1801 | Main operation mode: |
| 1802 | |
| 1803 | c create |
| 1804 | x extract |
| 1805 | t list |
| 1806 | |
| 1807 | File selection: |
| 1808 | |
| 1809 | f name of tarfile or "-" for stdin |
| 1810 | O extract to stdout |
Eric Andersen | fdd5103 | 2000-08-02 18:48:26 +0000 | [diff] [blame] | 1811 | exclude file to exclude |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1812 | |
| 1813 | Informative output: |
| 1814 | |
| 1815 | v verbosely list files processed |
| 1816 | |
| 1817 | Example: |
| 1818 | |
| 1819 | $ zcat /tmp/tarball.tar.gz | tar -xf - |
| 1820 | $ tar -cf /tmp/tarball.tar /usr/local |
| 1821 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1822 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1823 | |
Eric Andersen | 028fb62 | 2000-07-04 20:07:13 +0000 | [diff] [blame] | 1824 | =item tee |
| 1825 | |
| 1826 | Usage: tee [OPTION]... [FILE]... |
| 1827 | |
| 1828 | Copy standard input to each FILE, and also to standard output. |
| 1829 | |
| 1830 | Options: |
| 1831 | |
| 1832 | -a append to the given FILEs, do not overwrite |
| 1833 | |
| 1834 | Example: |
| 1835 | |
| 1836 | $ echo "Hello" | tee /tmp/foo |
| 1837 | $ cat /tmp/foo |
| 1838 | Hello |
| 1839 | |
| 1840 | ------------------------------- |
| 1841 | |
| 1842 | =item telnet |
| 1843 | |
| 1844 | Usage: telnet host [port] |
| 1845 | |
| 1846 | Telnet is used to establish interactive communication with another |
| 1847 | computer over a network using the TELNET protocol. |
| 1848 | |
| 1849 | ------------------------------- |
| 1850 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1851 | =item test, [ |
| 1852 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1853 | Usage: test EXPRESSION |
| 1854 | or [ EXPRESSION ] |
| 1855 | |
| 1856 | Checks file types and compares values returning an exit |
| 1857 | code determined by the value of EXPRESSION. |
| 1858 | |
| 1859 | Example: |
| 1860 | |
| 1861 | $ test 1 -eq 2 |
| 1862 | $ echo $? |
| 1863 | 1 |
| 1864 | $ test 1 -eq 1 |
| 1865 | $ echo $? |
| 1866 | 0 |
| 1867 | $ [ -d /etc ] |
| 1868 | $ echo $? |
| 1869 | 0 |
| 1870 | $ [ -d /junk ] |
| 1871 | $ echo $? |
| 1872 | 1 |
| 1873 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1874 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1875 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1876 | =item touch |
| 1877 | |
John Beppu | 9057b6a | 2000-04-16 10:22:28 +0000 | [diff] [blame] | 1878 | Usage: touch [B<-c>] file [file ...] |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1879 | |
| 1880 | Update the last-modified date on (or create) the selected file[s]. |
| 1881 | |
| 1882 | Example: |
| 1883 | |
| 1884 | $ ls -l /tmp/foo |
| 1885 | /bin/ls: /tmp/foo: No such file or directory |
| 1886 | $ touch /tmp/foo |
| 1887 | $ ls -l /tmp/foo |
| 1888 | -rw-rw-r-- 1 andersen andersen 0 Apr 15 01:11 /tmp/foo |
| 1889 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1890 | ------------------------------- |
| 1891 | |
| 1892 | =item tr |
Erik Andersen | a19bc64 | 2000-05-02 06:40:02 +0000 | [diff] [blame] | 1893 | |
Erik Andersen | 3c1217c | 2000-05-01 22:34:24 +0000 | [diff] [blame] | 1894 | Usage: tr [-cds] STRING1 [STRING2] |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1895 | |
Erik Andersen | 3c1217c | 2000-05-01 22:34:24 +0000 | [diff] [blame] | 1896 | Translate, squeeze, and/or delete characters from |
| 1897 | standard input, writing to standard output. |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1898 | |
Erik Andersen | 3c1217c | 2000-05-01 22:34:24 +0000 | [diff] [blame] | 1899 | Options: |
| 1900 | |
| 1901 | -c take complement of STRING1 |
| 1902 | -d delete input characters coded STRING1 |
| 1903 | -s squeeze multiple output characters of STRING2 into one character |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1904 | |
| 1905 | Example: |
| 1906 | |
| 1907 | $ echo "gdkkn vnqkc" | tr [a-y] [b-z] |
| 1908 | hello world |
| 1909 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1910 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1911 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1912 | =item true |
| 1913 | |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1914 | Returns an exit code of TRUE (0) |
| 1915 | |
| 1916 | Example: |
| 1917 | |
| 1918 | $ true |
| 1919 | $ echo $? |
| 1920 | 0 |
| 1921 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1922 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1923 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1924 | =item tty |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1925 | |
Erik Andersen | e5b6c7d | 2000-04-17 16:16:10 +0000 | [diff] [blame] | 1926 | Usage: tty |
| 1927 | |
| 1928 | Print the file name of the terminal connected to standard input. |
| 1929 | |
| 1930 | Options: |
| 1931 | |
| 1932 | -s print nothing, only return an exit status |
| 1933 | |
| 1934 | Example: |
| 1935 | |
| 1936 | $ tty |
| 1937 | /dev/tty2 |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1938 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1939 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1940 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1941 | =item umount |
| 1942 | |
Erik Andersen | e5b6c7d | 2000-04-17 16:16:10 +0000 | [diff] [blame] | 1943 | Usage: umount [flags] filesystem|directory |
| 1944 | |
| 1945 | Flags: |
| 1946 | |
Erik Andersen | 6c5f2c6 | 2000-05-05 19:49:33 +0000 | [diff] [blame] | 1947 | -a: Unmount all file systems |
| 1948 | -r: Try to remount devices as read-only if mount is busy |
| 1949 | -f: Force filesystem umount (i.e. unreachable NFS server) |
| 1950 | -l: Do not free loop device (if a loop device has been used) |
Erik Andersen | e5b6c7d | 2000-04-17 16:16:10 +0000 | [diff] [blame] | 1951 | |
| 1952 | Example: |
| 1953 | |
| 1954 | $ umount /dev/hdc1 |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 1955 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1956 | ------------------------------- |
John Beppu | f17792c | 2000-04-13 03:16:01 +0000 | [diff] [blame] | 1957 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1958 | =item uname |
John Beppu | f17792c | 2000-04-13 03:16:01 +0000 | [diff] [blame] | 1959 | |
Erik Andersen | e5b6c7d | 2000-04-17 16:16:10 +0000 | [diff] [blame] | 1960 | Usage: uname [OPTION]... |
| 1961 | |
Erik Andersen | 26702fe | 2000-04-17 16:44:46 +0000 | [diff] [blame] | 1962 | Print certain system information. With no OPTION, same as B<-s>. |
Erik Andersen | e5b6c7d | 2000-04-17 16:16:10 +0000 | [diff] [blame] | 1963 | |
| 1964 | Options: |
| 1965 | |
| 1966 | -a print all information |
| 1967 | -m the machine (hardware) type |
| 1968 | -n print the machine's network node hostname |
| 1969 | -r print the operating system release |
| 1970 | -s print the operating system name |
| 1971 | -p print the host processor type |
| 1972 | -v print the operating system version |
| 1973 | |
| 1974 | Example: |
| 1975 | |
| 1976 | $ uname -a |
| 1977 | Linux debian 2.2.15pre13 #5 Tue Mar 14 16:03:50 MST 2000 i686 unknown |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 1978 | |
| 1979 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 1980 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 1981 | =item uniq |
| 1982 | |
Erik Andersen | e5b6c7d | 2000-04-17 16:16:10 +0000 | [diff] [blame] | 1983 | Usage: uniq [OPTION]... [INPUT [OUTPUT]] |
| 1984 | |
| 1985 | Discard all but one of successive identical lines from INPUT |
| 1986 | (or standard input), writing to OUTPUT (or standard output). |
Eric Andersen | 5b5db38 | 2000-12-09 16:37:53 +0000 | [diff] [blame] | 1987 | |
| 1988 | Options: |
| 1989 | |
| 1990 | -c prefix lines by the number of occurrences |
| 1991 | -d only print duplicate lines |
| 1992 | -u only print unique lines |
Erik Andersen | e5b6c7d | 2000-04-17 16:16:10 +0000 | [diff] [blame] | 1993 | |
| 1994 | Example: |
| 1995 | |
| 1996 | $ echo -e "a\na\nb\nc\nc\na" | sort | uniq |
| 1997 | a |
| 1998 | b |
| 1999 | c |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 2000 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 2001 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 2002 | |
Eric Andersen | cff3fe3 | 2000-09-20 19:22:26 +0000 | [diff] [blame] | 2003 | =item unix2dos |
| 2004 | |
| 2005 | Usage: unix2dos < unixfile > dosfile |
| 2006 | |
| 2007 | Converts a text file from unix format to dos format. |
| 2008 | |
| 2009 | ------------------------------- |
| 2010 | |
| 2011 | =item unrpm |
| 2012 | |
Eric Andersen | 350b3f9 | 2000-09-21 02:06:35 +0000 | [diff] [blame] | 2013 | Usage: unrpm < package.rpm | gzip B<-d> | cpio -idmuv |
Eric Andersen | cff3fe3 | 2000-09-20 19:22:26 +0000 | [diff] [blame] | 2014 | |
| 2015 | Extracts an rpm archive. |
| 2016 | |
| 2017 | ------------------------------- |
| 2018 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 2019 | =item update |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 2020 | |
Erik Andersen | e5b6c7d | 2000-04-17 16:16:10 +0000 | [diff] [blame] | 2021 | Usage: update [options] |
| 2022 | |
| 2023 | Periodically flushes filesystem buffers. |
| 2024 | |
| 2025 | Options: |
| 2026 | |
| 2027 | -S force use of sync(2) instead of flushing |
| 2028 | -s SECS call sync this often (default 30) |
| 2029 | -f SECS flush some buffers this often (default 5) |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 2030 | |
| 2031 | ------------------------------- |
| 2032 | |
| 2033 | =item uptime |
| 2034 | |
Erik Andersen | e5b6c7d | 2000-04-17 16:16:10 +0000 | [diff] [blame] | 2035 | Usage: uptime |
| 2036 | |
| 2037 | Tells how long the system has been running since boot. |
| 2038 | |
| 2039 | Example: |
| 2040 | |
| 2041 | $ uptime |
| 2042 | 1:55pm up 2:30, load average: 0.09, 0.04, 0.00 |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 2043 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 2044 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 2045 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 2046 | =item usleep |
| 2047 | |
Erik Andersen | e5b6c7d | 2000-04-17 16:16:10 +0000 | [diff] [blame] | 2048 | Usage: usleep N |
| 2049 | |
| 2050 | Pauses for N microseconds. |
| 2051 | |
| 2052 | Example: |
| 2053 | |
| 2054 | $ usleep 1000000 |
| 2055 | [pauses for 1 second] |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 2056 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 2057 | ------------------------------- |
| 2058 | |
Eric Andersen | 028fb62 | 2000-07-04 20:07:13 +0000 | [diff] [blame] | 2059 | =item uuencode |
| 2060 | |
| 2061 | Usage: uuencode [OPTION] [INFILE] REMOTEFILE |
| 2062 | |
| 2063 | Uuencode a file. |
| 2064 | |
| 2065 | Options: |
| 2066 | |
| 2067 | -m use base64 encoding as of RFC1521 |
| 2068 | |
| 2069 | Example: |
| 2070 | |
| 2071 | $ uuencode busybox busybox |
| 2072 | begin 755 busybox |
| 2073 | M?T5,1@$!`0````````````(``P`!````L+@$"#0```!0N@,``````#0`(``& |
| 2074 | ..... |
| 2075 | $ uudecode busybox busybox > busybox.uu |
| 2076 | $ |
| 2077 | |
| 2078 | ------------------------------- |
| 2079 | |
| 2080 | =item uudecode |
| 2081 | |
| 2082 | Usage: uudecode [OPTION] [FILE] |
| 2083 | |
| 2084 | Uudecode a uuencoded file |
| 2085 | |
| 2086 | Options: |
| 2087 | |
| 2088 | -o FILE direct output to FILE |
| 2089 | |
| 2090 | Example: |
| 2091 | |
| 2092 | $ uudecode -o busybox busybox.uu |
| 2093 | $ ls -l busybox |
| 2094 | -rwxr-xr-x 1 ams ams 245264 Jun 7 21:35 busybox |
| 2095 | |
| 2096 | ------------------------------- |
| 2097 | |
Eric Andersen | ffde867 | 2001-01-25 23:40:32 +0000 | [diff] [blame] | 2098 | =item watchdog |
| 2099 | |
| 2100 | Usage: watchdog device |
| 2101 | |
| 2102 | Periodically writes to watchdog device B<device>. |
| 2103 | |
| 2104 | ------------------------------- |
| 2105 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 2106 | =item wc |
| 2107 | |
Erik Andersen | e5b6c7d | 2000-04-17 16:16:10 +0000 | [diff] [blame] | 2108 | Usage: wc [OPTION]... [FILE]... |
| 2109 | |
| 2110 | Print line, word, and byte counts for each FILE, and a total line if |
| 2111 | more than one FILE is specified. With no FILE, read standard input. |
| 2112 | |
| 2113 | Options: |
| 2114 | |
| 2115 | -c print the byte counts |
| 2116 | -l print the newline counts |
| 2117 | -L print the length of the longest line |
| 2118 | -w print the word counts |
| 2119 | |
| 2120 | Example: |
| 2121 | |
| 2122 | $ wc /etc/passwd |
| 2123 | 31 46 1365 /etc/passwd |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 2124 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 2125 | ------------------------------- |
| 2126 | |
Pavel Roskin | afa0662 | 2000-06-21 21:43:24 +0000 | [diff] [blame] | 2127 | =item which |
| 2128 | |
| 2129 | Usage: which [COMMAND ...] |
| 2130 | |
| 2131 | Locates a COMMAND. |
| 2132 | |
| 2133 | Example: |
| 2134 | |
| 2135 | $ which login |
| 2136 | /bin/login |
| 2137 | |
| 2138 | ------------------------------- |
| 2139 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 2140 | =item whoami |
| 2141 | |
Erik Andersen | e5b6c7d | 2000-04-17 16:16:10 +0000 | [diff] [blame] | 2142 | Usage: whoami |
| 2143 | |
| 2144 | Prints the user name associated with the current effective user id. |
| 2145 | |
| 2146 | Example: |
| 2147 | |
| 2148 | $ whoami |
| 2149 | andersen |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 2150 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 2151 | ------------------------------- |
| 2152 | |
Eric Andersen | 5b17693 | 2000-09-22 20:22:28 +0000 | [diff] [blame] | 2153 | =item xargs |
| 2154 | |
| 2155 | Usage: xargs [OPTIONS] [COMMAND] [ARGS...] |
| 2156 | |
| 2157 | Executes COMMAND on every item given by standard input. |
| 2158 | |
| 2159 | Options: |
| 2160 | |
| 2161 | -t Print the command just before it is run |
Eric Andersen | 5b17693 | 2000-09-22 20:22:28 +0000 | [diff] [blame] | 2162 | |
| 2163 | Example: |
| 2164 | |
| 2165 | $ ls | xargs gzip |
| 2166 | $ find . -name '*.c' -print | xargs rm |
| 2167 | |
| 2168 | ------------------------------- |
| 2169 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 2170 | =item yes |
| 2171 | |
Erik Andersen | e5b6c7d | 2000-04-17 16:16:10 +0000 | [diff] [blame] | 2172 | Usage: yes [OPTION]... [STRING]... |
| 2173 | |
| 2174 | Repeatedly outputs a line with all specified STRING(s), or `y'. |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 2175 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 2176 | ------------------------------- |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 2177 | |
| 2178 | =item zcat |
| 2179 | |
Erik Andersen | 26702fe | 2000-04-17 16:44:46 +0000 | [diff] [blame] | 2180 | This is essentially an alias for invoking "gunzip B<-c>", where |
Eric Andersen | 98cd53e | 2000-06-16 19:56:44 +0000 | [diff] [blame] | 2181 | it decompresses the file in question and send the output to stdout. |
Erik Andersen | 5e1189e | 2000-04-15 16:34:54 +0000 | [diff] [blame] | 2182 | |
Erik Andersen | 9cf3bfa | 2000-04-13 18:49:43 +0000 | [diff] [blame] | 2183 | ------------------------------- |
John Beppu | 4581b4c | 2000-01-19 15:04:41 +0000 | [diff] [blame] | 2184 | |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 2185 | =back |
John Beppu | 3a1b6be | 2000-01-18 15:45:59 +0000 | [diff] [blame] | 2186 | |
Erik Andersen | a19bc64 | 2000-05-02 06:40:02 +0000 | [diff] [blame] | 2187 | =head1 LIBC NSS |
| 2188 | |
| 2189 | GNU Libc uses the Name Service Switch (NSS) to configure the behavior of the C |
| 2190 | library for the local environment, and to configure how it reads system data, |
| 2191 | such as passwords and group information. BusyBox has made it Policy that it |
| 2192 | will never use NSS, and will never use and libc calls that make use of NSS. |
| 2193 | This allows you to run an embedded system without the need for installing an |
| 2194 | /etc/nsswitch.conf file and without and /lib/libnss_* libraries installed. |
| 2195 | |
| 2196 | If you are using a system that is using a remote LDAP server for authentication |
| 2197 | via GNU libc NSS, and you want to use BusyBox, then you will need to adjust the |
| 2198 | BusyBox source. Chances are though, that if you have enough space to install |
| 2199 | of that stuff on your system, then you probably want the full GNU utilities. |
| 2200 | |
John Beppu | 3a1b6be | 2000-01-18 15:45:59 +0000 | [diff] [blame] | 2201 | =head1 SEE ALSO |
| 2202 | |
| 2203 | textutils(1), shellutils(1), etc... |
| 2204 | |
| 2205 | =head1 MAINTAINER |
| 2206 | |
Erik Andersen | 1101d23 | 2000-04-19 05:15:12 +0000 | [diff] [blame] | 2207 | Erik Andersen <andersee@debian.org> <andersen@lineo.com> |
John Beppu | 3a1b6be | 2000-01-18 15:45:59 +0000 | [diff] [blame] | 2208 | |
| 2209 | =head1 AUTHORS |
| 2210 | |
John Beppu | 08fe43d | 2000-01-19 12:39:16 +0000 | [diff] [blame] | 2211 | The following people have contributed code to BusyBox whether |
| 2212 | they know it or not. |
John Beppu | 3a1b6be | 2000-01-18 15:45:59 +0000 | [diff] [blame] | 2213 | |
John Beppu | 3a1b6be | 2000-01-18 15:45:59 +0000 | [diff] [blame] | 2214 | |
John Beppu | 08fe43d | 2000-01-19 12:39:16 +0000 | [diff] [blame] | 2215 | =for html <br> |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 2216 | |
Eric Andersen | 57f83ff | 2000-09-24 02:41:44 +0000 | [diff] [blame] | 2217 | Erik Andersen <andersen@lineo.com>, <andersee@debian.org> |
| 2218 | |
| 2219 | Tons of new stuff, major rewrite of most of the |
| 2220 | core apps, tons of new apps as noted in header files. |
| 2221 | |
| 2222 | =for html <br> |
| 2223 | |
| 2224 | Edward Betts <edward@debian.org> |
| 2225 | |
| 2226 | expr, hostid, logname, tty, wc, whoami, yes |
| 2227 | |
| 2228 | =for html <br> |
| 2229 | |
John Beppu | 08fe43d | 2000-01-19 12:39:16 +0000 | [diff] [blame] | 2230 | John Beppu <beppu@lineo.com> |
John Beppu | 3a1b6be | 2000-01-18 15:45:59 +0000 | [diff] [blame] | 2231 | |
Eric Andersen | 57f83ff | 2000-09-24 02:41:44 +0000 | [diff] [blame] | 2232 | du, head, nslookup, sort, tee, uniq |
| 2233 | |
John Beppu | 08fe43d | 2000-01-19 12:39:16 +0000 | [diff] [blame] | 2234 | =for html <br> |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 2235 | |
John Beppu | 08fe43d | 2000-01-19 12:39:16 +0000 | [diff] [blame] | 2236 | Brian Candler <B.Candler@pobox.com> |
John Beppu | 3a1b6be | 2000-01-18 15:45:59 +0000 | [diff] [blame] | 2237 | |
Eric Andersen | 57f83ff | 2000-09-24 02:41:44 +0000 | [diff] [blame] | 2238 | tiny-ls(ls) |
| 2239 | |
John Beppu | 08fe43d | 2000-01-19 12:39:16 +0000 | [diff] [blame] | 2240 | =for html <br> |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 2241 | |
John Beppu | 08fe43d | 2000-01-19 12:39:16 +0000 | [diff] [blame] | 2242 | Randolph Chung <tausq@debian.org> |
John Beppu | 3a1b6be | 2000-01-18 15:45:59 +0000 | [diff] [blame] | 2243 | |
Eric Andersen | 57f83ff | 2000-09-24 02:41:44 +0000 | [diff] [blame] | 2244 | fbset, ping, hostname, and mkfifo |
| 2245 | |
John Beppu | 08fe43d | 2000-01-19 12:39:16 +0000 | [diff] [blame] | 2246 | =for html <br> |
John Beppu | 46a4e76 | 2000-01-18 22:33:11 +0000 | [diff] [blame] | 2247 | |
John Beppu | 08fe43d | 2000-01-19 12:39:16 +0000 | [diff] [blame] | 2248 | Dave Cinege <dcinege@psychosis.com> |
| 2249 | |
Eric Andersen | 57f83ff | 2000-09-24 02:41:44 +0000 | [diff] [blame] | 2250 | more(v2), makedevs, dutmp, modularization, auto links file, |
| 2251 | various fixes, Linux Router Project maintenance |
| 2252 | |
John Beppu | 08fe43d | 2000-01-19 12:39:16 +0000 | [diff] [blame] | 2253 | =for html <br> |
| 2254 | |
John Beppu | 50ed067 | 2000-04-13 23:44:04 +0000 | [diff] [blame] | 2255 | Karl M. Hegbloom <karlheg@debian.org> |
| 2256 | |
Eric Andersen | 57f83ff | 2000-09-24 02:41:44 +0000 | [diff] [blame] | 2257 | cp_mv.c, the test suite, various fixes to utility.c, &c. |
| 2258 | |
| 2259 | =for html <br> |
| 2260 | |
| 2261 | Daniel Jacobowitz <dan@debian.org> |
| 2262 | |
| 2263 | mktemp.c |
| 2264 | |
| 2265 | =for html <br> |
| 2266 | |
| 2267 | Matt Kraai <kraai@alumni.carnegiemellon.edu> |
| 2268 | |
| 2269 | documentation, bugfixes |
| 2270 | |
John Beppu | 50ed067 | 2000-04-13 23:44:04 +0000 | [diff] [blame] | 2271 | =for html <br> |
| 2272 | |
John Beppu | 4fd10fc | 2000-04-17 05:13:59 +0000 | [diff] [blame] | 2273 | John Lombardo <john@deltanet.com> |
| 2274 | |
Eric Andersen | 57f83ff | 2000-09-24 02:41:44 +0000 | [diff] [blame] | 2275 | dirname, tr |
| 2276 | |
John Beppu | 4fd10fc | 2000-04-17 05:13:59 +0000 | [diff] [blame] | 2277 | =for html <br> |
| 2278 | |
Eric Andersen | 86ab8a3 | 2000-06-02 03:21:42 +0000 | [diff] [blame] | 2279 | Glenn McGrath <bug1@netconnect.com.au> |
| 2280 | |
Eric Andersen | 57f83ff | 2000-09-24 02:41:44 +0000 | [diff] [blame] | 2281 | ar.c |
| 2282 | |
Eric Andersen | 86ab8a3 | 2000-06-02 03:21:42 +0000 | [diff] [blame] | 2283 | =for html <br> |
| 2284 | |
Eric Andersen | 57f83ff | 2000-09-24 02:41:44 +0000 | [diff] [blame] | 2285 | Bruce Perens <bruce@pixar.com> |
| 2286 | |
| 2287 | Original author of BusyBox. His code is still in many apps. |
| 2288 | |
| 2289 | =for html <br> |
| 2290 | |
| 2291 | Chip Rosenthal <chip@unicom.com>, <crosenth@covad.com> |
| 2292 | |
| 2293 | wget - Contributed by permission of Covad Communications |
John Beppu | 08fe43d | 2000-01-19 12:39:16 +0000 | [diff] [blame] | 2294 | |
| 2295 | =for html <br> |
| 2296 | |
Pavel Roskin | 339b892 | 2000-06-20 00:11:07 +0000 | [diff] [blame] | 2297 | Pavel Roskin <proski@gnu.org> |
Eric Andersen | 08e9289 | 2000-06-02 03:21:36 +0000 | [diff] [blame] | 2298 | |
Eric Andersen | 57f83ff | 2000-09-24 02:41:44 +0000 | [diff] [blame] | 2299 | Lots of bugs fixes and patches. |
| 2300 | |
| 2301 | =for html <br> |
| 2302 | |
| 2303 | Gyepi Sam <gyepi@praxis-sw.com> |
| 2304 | |
| 2305 | Remote logging feature for syslogd |
| 2306 | |
Eric Andersen | 08e9289 | 2000-06-02 03:21:36 +0000 | [diff] [blame] | 2307 | =for html <br> |
| 2308 | |
John Beppu | 08fe43d | 2000-01-19 12:39:16 +0000 | [diff] [blame] | 2309 | Linus Torvalds <torvalds@transmeta.com> |
| 2310 | |
Eric Andersen | 57f83ff | 2000-09-24 02:41:44 +0000 | [diff] [blame] | 2311 | mkswap, fsck.minix, mkfs.minix |
| 2312 | |
John Beppu | 08fe43d | 2000-01-19 12:39:16 +0000 | [diff] [blame] | 2313 | =for html <br> |
| 2314 | |
John Beppu | 2aee993 | 2000-09-15 08:04:42 +0000 | [diff] [blame] | 2315 | Mark Whitley <markw@lineo.com> |
| 2316 | |
Eric Andersen | 57f83ff | 2000-09-24 02:41:44 +0000 | [diff] [blame] | 2317 | sed remix, bug fixes, style-guide, etc. |
| 2318 | |
John Beppu | 2aee993 | 2000-09-15 08:04:42 +0000 | [diff] [blame] | 2319 | =for html <br> |
| 2320 | |
John Beppu | 08fe43d | 2000-01-19 12:39:16 +0000 | [diff] [blame] | 2321 | Charles P. Wright <cpwright@villagenet.com> |
| 2322 | |
Eric Andersen | 57f83ff | 2000-09-24 02:41:44 +0000 | [diff] [blame] | 2323 | gzip, mini-netcat(nc) |
| 2324 | |
John Beppu | 08fe43d | 2000-01-19 12:39:16 +0000 | [diff] [blame] | 2325 | =for html <br> |
| 2326 | |
| 2327 | Enrique Zanardi <ezanardi@ull.es> |
| 2328 | |
Eric Andersen | 57f83ff | 2000-09-24 02:41:44 +0000 | [diff] [blame] | 2329 | tarcat (since removed), loadkmap, various fixes, Debian maintenance |
John Beppu | 3a1b6be | 2000-01-18 15:45:59 +0000 | [diff] [blame] | 2330 | |
| 2331 | =cut |
John Beppu | 08fe43d | 2000-01-19 12:39:16 +0000 | [diff] [blame] | 2332 | |
Eric Andersen | ffde867 | 2001-01-25 23:40:32 +0000 | [diff] [blame] | 2333 | # $Id: busybox.pod,v 1.89 2001/01/25 23:40:32 andersen Exp $ |