diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-04-21 01:23:36 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-04-21 01:23:36 +0000 |
commit | cf8d38a3eb46f4f9c4e674d43cff486cd79c9c0f (patch) | |
tree | a58396b9faa498ccf2bf428ce428dd65579225ad | |
parent | 7d6ba57bba79863d8016c7c3aaf195f1007f3943 (diff) | |
download | busybox-w32-cf8d38a3eb46f4f9c4e674d43cff486cd79c9c0f.tar.gz busybox-w32-cf8d38a3eb46f4f9c4e674d43cff486cd79c9c0f.tar.bz2 busybox-w32-cf8d38a3eb46f4f9c4e674d43cff486cd79c9c0f.zip |
Doc updates
-Erik
-rw-r--r-- | docs/busybox.pod | 145 |
1 files changed, 79 insertions, 66 deletions
diff --git a/docs/busybox.pod b/docs/busybox.pod index 1b52b2964..e6a75b6a0 100644 --- a/docs/busybox.pod +++ b/docs/busybox.pod | |||
@@ -2,35 +2,49 @@ | |||
2 | 2 | ||
3 | =head1 NAME | 3 | =head1 NAME |
4 | 4 | ||
5 | busybox - I am BusyBox of Borg. Unix will be assimilated. | 5 | BusyBox - The Swiss Army Knife of Embedded Linux |
6 | 6 | ||
7 | =head1 SYNOPSIS | 7 | =head1 SYNTAX |
8 | 8 | ||
9 | busybox <function> [arguments...] # or | 9 | BusyBox <function> [arguments...] # or |
10 | 10 | ||
11 | <function> [arguments...] # if symlinked | 11 | <function> [arguments...] # if symlinked |
12 | 12 | ||
13 | =head1 DESCRIPTION | 13 | =head1 DESCRIPTION |
14 | 14 | ||
15 | BusyBox is a multi-call binary that combines many common Unix utilities into a | 15 | BusyBox combines tiny versions of many common UNIX utilities into a single |
16 | single executable. Most people will create a link to busybox for each function | 16 | small executable. It provides minimalist replacements for most of the utilities |
17 | they wish to use, and BusyBox will act like whatever it was invoked as. For | 17 | you usually find in fileutils, shellutils, findutils, textutils, grep, gzip, |
18 | example, | 18 | tar, etc. BusyBox provides a fairly complete POSIX environment for any small |
19 | or emdedded system. While the number of options for the utilities BusyBox | ||
20 | provides have generally been reduced, the provided options behave very much | ||
21 | like they do in their full featured GNU cousins. | ||
19 | 22 | ||
20 | ln -s ./busybox ls | 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 | ||
21 | ./ls | 37 | ./ls |
22 | 38 | ||
23 | will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled | 39 | will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled |
24 | into busybox). You can also invoke BusyBox by providing it the command to run | 40 | into BusyBox). |
25 | on the command line. For example, | ||
26 | 41 | ||
27 | ./busybox ls | 42 | You can also invoke BusyBox by issuing the command as an argument on the |
43 | command line. For example, entering | ||
28 | 44 | ||
29 | will also cause BusyBox to behave as 'ls'. | 45 | ./BusyBox ls |
30 | 46 | ||
31 | BusyBox has been written with size-optimization in mind. It is very easy to | 47 | will also cause BusyBox to behave as 'ls'. |
32 | include or exclude the commands (or features) you want installed. BusyBox | ||
33 | tries to make itself useful to small systems with limited resources. | ||
34 | 48 | ||
35 | =head1 COMMON OPTIONS | 49 | =head1 COMMON OPTIONS |
36 | 50 | ||
@@ -57,7 +71,7 @@ uptime, usleep, wc, whoami, yes, zcat, [ | |||
57 | 71 | ||
58 | Usage: basename [file ...] | 72 | Usage: basename [file ...] |
59 | 73 | ||
60 | Strips directory and suffix from filenames. | 74 | Strips directory path and suffixes from FILE(s). |
61 | 75 | ||
62 | Example: | 76 | Example: |
63 | 77 | ||
@@ -70,9 +84,9 @@ Example: | |||
70 | 84 | ||
71 | =item cat | 85 | =item cat |
72 | 86 | ||
73 | Usage: cat [file ...] | 87 | Usage: cat [FILE ...] |
74 | 88 | ||
75 | Concatenates files and prints them to the standard output. | 89 | Concatenates FILE(s) and prints them to the standard output. |
76 | 90 | ||
77 | Example: | 91 | Example: |
78 | 92 | ||
@@ -105,48 +119,48 @@ Example: | |||
105 | 119 | ||
106 | Usage: chmod [B<-R>] MODE[,MODE]... FILE... | 120 | Usage: chmod [B<-R>] MODE[,MODE]... FILE... |
107 | 121 | ||
108 | Changes file access permissions for the specified file(s) or directory(s). | 122 | Changes file access permissions for the specified FILE(s) (or directories). |
109 | Each MODE is defined by combining the letters for WHO has access to the file, | 123 | Each MODE is defined by combining the letters for WHO has access to the file, |
110 | an OPERATOR for selecting how the permissions should be changed, and a | 124 | an OPERATOR for selecting how the permissions should be changed, and a |
111 | PERISSION for the file(s) or directory(s). | 125 | PERISSION for FILE(s) (or directories). |
112 | 126 | ||
113 | WHO may be chosen from: | 127 | WHO may be chosen from |
114 | 128 | ||
115 | u the User who owns the file | 129 | u User who owns the file |
116 | g users in the file's Group | 130 | g Users in the file's Group |
117 | o Other users not in the file's group | 131 | o Other users not in the file's group |
118 | a All users | 132 | a All users |
119 | 133 | ||
120 | OPERATOR may be chosen from: | 134 | OPERATOR may be chosen from |
121 | 135 | ||
122 | + add a permission | 136 | + Add a permission |
123 | - remove a permission | 137 | - Remove a permission |
124 | = assign a permission | 138 | = Assign a permission |
125 | 139 | ||
126 | PERMISSION may be chosen from: | 140 | PERMISSION may be chosen from |
127 | 141 | ||
128 | r Read | 142 | r Read |
129 | w Write | 143 | w Write |
130 | x eXecute (or access for directories) | 144 | x Execute (or access for directories) |
131 | s Set user (or group) ID bit | 145 | s Set user (or group) ID bit |
132 | t sTickey bit (for directories prevents removing files by non-owners) | 146 | t Stickey bit (for directories prevents removing files by non-owners) |
133 | 147 | ||
134 | Alternately, permissions may be set numerically where the first three | 148 | Alternately, permissions can be set numerically where the first three |
135 | numbers are calculated by adding the octal values: | 149 | numbers are calculated by adding the octal values, such as |
136 | 150 | ||
137 | 4 Read | 151 | 4 Read |
138 | 2 Write | 152 | 2 Write |
139 | 1 eXecute | 153 | 1 Execute |
140 | 154 | ||
141 | An optional fourth digit may also be used to specify | 155 | An optional fourth digit can also be used to specify |
142 | 156 | ||
143 | 4 Set user ID | 157 | 4 Set user ID |
144 | 2 Set group ID | 158 | 2 Set group ID |
145 | 1 sTickey bit | 159 | 1 Stickey bit |
146 | 160 | ||
147 | Options: | 161 | Options: |
148 | 162 | ||
149 | -R change files and directories recursively. | 163 | -R Change files and directories recursively. |
150 | 164 | ||
151 | Example: | 165 | Example: |
152 | 166 | ||
@@ -163,13 +177,13 @@ Example: | |||
163 | 177 | ||
164 | =item chown | 178 | =item chown |
165 | 179 | ||
166 | Usage: chown [OPTION]... OWNER[.[GROUP] FILE... | 180 | Usage: chown [OPTION]... OWNER[<.|:>[GROUP] FILE... |
167 | 181 | ||
168 | Changes the owner and/or group of each FILE to OWNER and/or GROUP. | 182 | Changes the owner and/or group of each FILE to OWNER and/or GROUP. |
169 | 183 | ||
170 | Options: | 184 | Options: |
171 | 185 | ||
172 | -R change files and directories recursively | 186 | -R Changes files and directories recursively |
173 | 187 | ||
174 | Example: | 188 | Example: |
175 | 189 | ||
@@ -193,7 +207,7 @@ Run COMMAND with root directory set to NEWROOT. | |||
193 | Example: | 207 | Example: |
194 | 208 | ||
195 | $ ls -l /bin/ls | 209 | $ ls -l /bin/ls |
196 | lrwxrwxrwx 1 root root 12 Apr 13 00:46 /bin/ls -> /busybox | 210 | lrwxrwxrwx 1 root root 12 Apr 13 00:46 /bin/ls -> /BusyBox |
197 | $ mount /dev/hdc1 /mnt -t minix | 211 | $ mount /dev/hdc1 /mnt -t minix |
198 | $ chroot /mnt | 212 | $ chroot /mnt |
199 | $ ls -l /bin/ls | 213 | $ ls -l /bin/ls |
@@ -211,7 +225,7 @@ Clears the screen. | |||
211 | 225 | ||
212 | Usage: chvt N | 226 | Usage: chvt N |
213 | 227 | ||
214 | Change foreground virtual terminal to /dev/ttyN | 228 | Changes the foreground virtual terminal to /dev/ttyN |
215 | 229 | ||
216 | ------------------------------- | 230 | ------------------------------- |
217 | 231 | ||
@@ -221,12 +235,12 @@ Usage: cp [OPTION]... SOURCE DEST | |||
221 | 235 | ||
222 | or: cp [OPTION]... SOURCE... DIRECTORY | 236 | or: cp [OPTION]... SOURCE... DIRECTORY |
223 | 237 | ||
224 | Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY. | 238 | Copies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY. |
225 | 239 | ||
226 | -a same as -dpR | 240 | -a Same as -dpR |
227 | -d preserve links | 241 | -d Preserves links |
228 | -p preserve file attributes if possable | 242 | -p Preserves file attributes if possable |
229 | -R copy directories recursively | 243 | -R Copies directories recursively |
230 | 244 | ||
231 | ------------------------------- | 245 | ------------------------------- |
232 | 246 | ||
@@ -236,13 +250,12 @@ Usage: date [OPTION]... [+FORMAT] | |||
236 | 250 | ||
237 | or: date [OPTION] [MMDDhhmm[[CC]YY][.ss]] | 251 | or: date [OPTION] [MMDDhhmm[[CC]YY][.ss]] |
238 | 252 | ||
239 | Display the current time in the given FORMAT, or set the system date. | 253 | Displays the current time in the given FORMAT, or sets the system date. |
240 | 254 | ||
241 | Options: | 255 | Options: |
242 | 256 | -R Outputs RFC-822 compliant date string | |
243 | -R output RFC-822 compliant date string | 257 | -s Sets time described by STRING |
244 | -s set time described by STRING | 258 | -u Prints or sets Coordinated Universal Time |
245 | -u print or set Coordinated Universal Time | ||
246 | 259 | ||
247 | Example: | 260 | Example: |
248 | 261 | ||
@@ -329,7 +342,7 @@ Options: | |||
329 | 342 | ||
330 | Example: | 343 | Example: |
331 | 344 | ||
332 | $ ./busybox du | 345 | $ ./BusyBox du |
333 | 16 ./CVS | 346 | 16 ./CVS |
334 | 12 ./kernel-patches/CVS | 347 | 12 ./kernel-patches/CVS |
335 | 80 ./kernel-patches | 348 | 80 ./kernel-patches |
@@ -554,11 +567,11 @@ Options: | |||
554 | 567 | ||
555 | Example: | 568 | Example: |
556 | 569 | ||
557 | $ ls -la /tmp/busybox* | 570 | $ ls -la /tmp/BusyBox* |
558 | -rw-rw-r-- 1 andersen andersen 557009 Apr 11 10:55 /tmp/busybox-0.43.tar.gz | 571 | -rw-rw-r-- 1 andersen andersen 557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz |
559 | $ gunzip /tmp/busybox-0.43.tar.gz | 572 | $ gunzip /tmp/BusyBox-0.43.tar.gz |
560 | $ ls -la /tmp/busybox* | 573 | $ ls -la /tmp/BusyBox* |
561 | -rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/busybox-0.43.tar | 574 | -rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar |
562 | 575 | ||
563 | ------------------------------- | 576 | ------------------------------- |
564 | 577 | ||
@@ -575,11 +588,11 @@ Options: | |||
575 | 588 | ||
576 | Example: | 589 | Example: |
577 | 590 | ||
578 | $ ls -la /tmp/busybox* | 591 | $ ls -la /tmp/BusyBox* |
579 | -rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/busybox-0.43.tar | 592 | -rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar |
580 | $ gzip /tmp/busybox-0.43.tar | 593 | $ gzip /tmp/BusyBox-0.43.tar |
581 | $ ls -la /tmp/busybox* | 594 | $ ls -la /tmp/BusyBox* |
582 | -rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/busybox-0.43.tar.gz | 595 | -rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/BusyBox-0.43.tar.gz |
583 | 596 | ||
584 | 597 | ||
585 | ------------------------------- | 598 | ------------------------------- |
@@ -799,9 +812,9 @@ Options: | |||
799 | 812 | ||
800 | Example: | 813 | Example: |
801 | 814 | ||
802 | $ ln -s busybox /tmp/ls | 815 | $ ln -s BusyBox /tmp/ls |
803 | [andersen@debian busybox]$ ls -l /tmp/ls | 816 | [andersen@debian BusyBox]$ ls -l /tmp/ls |
804 | lrwxrwxrwx 1 root root 7 Apr 12 18:39 ls -> busybox* | 817 | lrwxrwxrwx 1 root root 7 Apr 12 18:39 ls -> BusyBox* |
805 | 818 | ||
806 | ------------------------------- | 819 | ------------------------------- |
807 | 820 | ||
@@ -1803,4 +1816,4 @@ Enrique Zanardi <ezanardi@ull.es> | |||
1803 | 1816 | ||
1804 | =cut | 1817 | =cut |
1805 | 1818 | ||
1806 | # $Id: busybox.pod,v 1.19 2000/04/19 05:15:12 erik Exp $ | 1819 | # $Id: busybox.pod,v 1.20 2000/04/21 01:23:36 erik Exp $ |