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