aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-04-21 01:23:36 +0000
committerErik Andersen <andersen@codepoet.org>2000-04-21 01:23:36 +0000
commitcf8d38a3eb46f4f9c4e674d43cff486cd79c9c0f (patch)
treea58396b9faa498ccf2bf428ce428dd65579225ad
parent7d6ba57bba79863d8016c7c3aaf195f1007f3943 (diff)
downloadbusybox-w32-cf8d38a3eb46f4f9c4e674d43cff486cd79c9c0f.tar.gz
busybox-w32-cf8d38a3eb46f4f9c4e674d43cff486cd79c9c0f.tar.bz2
busybox-w32-cf8d38a3eb46f4f9c4e674d43cff486cd79c9c0f.zip
Doc updates
-Erik
-rw-r--r--docs/busybox.pod145
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
5busybox - I am BusyBox of Borg. Unix will be assimilated. 5BusyBox - 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
15BusyBox is a multi-call binary that combines many common Unix utilities into a 15BusyBox combines tiny versions of many common UNIX utilities into a single
16single executable. Most people will create a link to busybox for each function 16small executable. It provides minimalist replacements for most of the utilities
17they wish to use, and BusyBox will act like whatever it was invoked as. For 17you usually find in fileutils, shellutils, findutils, textutils, grep, gzip,
18example, 18tar, etc. BusyBox provides a fairly complete POSIX environment for any small
19or emdedded system. While the number of options for the utilities BusyBox
20provides have generally been reduced, the provided options behave very much
21like they do in their full featured GNU cousins.
19 22
20 ln -s ./busybox ls 23BusyBox has been written with size-optimization and limited resources in mind.
24It is also extremely modular so you can easily include or exclude commands (or
25features) at compile time. This makes it easy to customize your embedded
26systems. To create a working system, just add a kernel, a shell (such as ash),
27and an editor (such as elvis-tiny or ae).
28
29=head1 USAGE
30
31When you create a link to BusyBox for the function you wish to use, when BusyBox
32is called using that link it will behave as if the command itself has been invoked.
33
34For example, entering
35
36 ln -s ./BusyBox ls
21 ./ls 37 ./ls
22 38
23will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled 39will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled
24into busybox). You can also invoke BusyBox by providing it the command to run 40into BusyBox).
25on the command line. For example,
26 41
27 ./busybox ls 42You can also invoke BusyBox by issuing the command as an argument on the
43command line. For example, entering
28 44
29will also cause BusyBox to behave as 'ls'. 45 ./BusyBox ls
30 46
31BusyBox has been written with size-optimization in mind. It is very easy to 47will also cause BusyBox to behave as 'ls'.
32include or exclude the commands (or features) you want installed. BusyBox
33tries 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
58Usage: basename [file ...] 72Usage: basename [file ...]
59 73
60Strips directory and suffix from filenames. 74Strips directory path and suffixes from FILE(s).
61 75
62Example: 76Example:
63 77
@@ -70,9 +84,9 @@ Example:
70 84
71=item cat 85=item cat
72 86
73Usage: cat [file ...] 87Usage: cat [FILE ...]
74 88
75Concatenates files and prints them to the standard output. 89Concatenates FILE(s) and prints them to the standard output.
76 90
77Example: 91Example:
78 92
@@ -105,48 +119,48 @@ Example:
105 119
106Usage: chmod [B<-R>] MODE[,MODE]... FILE... 120Usage: chmod [B<-R>] MODE[,MODE]... FILE...
107 121
108Changes file access permissions for the specified file(s) or directory(s). 122Changes file access permissions for the specified FILE(s) (or directories).
109Each MODE is defined by combining the letters for WHO has access to the file, 123Each MODE is defined by combining the letters for WHO has access to the file,
110an OPERATOR for selecting how the permissions should be changed, and a 124an OPERATOR for selecting how the permissions should be changed, and a
111PERISSION for the file(s) or directory(s). 125PERISSION for FILE(s) (or directories).
112 126
113WHO may be chosen from: 127WHO 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
120OPERATOR may be chosen from: 134OPERATOR 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
126PERMISSION may be chosen from: 140PERMISSION 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
134Alternately, permissions may be set numerically where the first three 148Alternately, permissions can be set numerically where the first three
135numbers are calculated by adding the octal values: 149numbers 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
141An optional fourth digit may also be used to specify 155An 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
147Options: 161Options:
148 162
149 -R change files and directories recursively. 163 -R Change files and directories recursively.
150 164
151Example: 165Example:
152 166
@@ -163,13 +177,13 @@ Example:
163 177
164=item chown 178=item chown
165 179
166Usage: chown [OPTION]... OWNER[.[GROUP] FILE... 180Usage: chown [OPTION]... OWNER[<.|:>[GROUP] FILE...
167 181
168Changes the owner and/or group of each FILE to OWNER and/or GROUP. 182Changes the owner and/or group of each FILE to OWNER and/or GROUP.
169 183
170Options: 184Options:
171 185
172 -R change files and directories recursively 186 -R Changes files and directories recursively
173 187
174Example: 188Example:
175 189
@@ -193,7 +207,7 @@ Run COMMAND with root directory set to NEWROOT.
193Example: 207Example:
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
212Usage: chvt N 226Usage: chvt N
213 227
214Change foreground virtual terminal to /dev/ttyN 228Changes 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
224Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY. 238Copies 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
239Display the current time in the given FORMAT, or set the system date. 253Displays the current time in the given FORMAT, or sets the system date.
240 254
241Options: 255Options:
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
247Example: 260Example:
248 261
@@ -329,7 +342,7 @@ Options:
329 342
330Example: 343Example:
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
555Example: 568Example:
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
576Example: 589Example:
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
800Example: 813Example:
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 $