blob: 9ae2bb3ef6aeb4b68d607455bfb0cc8b95d20e55 [file] [log] [blame]
Eric Andersen3570a342000-09-25 21:45:58 +00001#include "busybox.h"
Matt Kraaibf181b92000-07-16 20:57:15 +00002
3#if defined BB_AR
4const char ar_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00005 "ar -[ovR]{ptx} archive filenames"
Matt Kraaibf181b92000-07-16 20:57:15 +00006#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00007 "\n\nExtract or list files from an ar archive.\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00008 "Options:\n"
Glenn L McGrath06aeb6c2000-08-25 03:50:10 +00009 "\t-o\t\tpreserve original dates\n"
10 "\t-p\t\textract to stdout\n"
11 "\t-t\t\tlist\n"
12 "\t-x\t\textract\n"
13 "\t-v\t\tverbosely list files processed\n"
Eric Andersen965fa322001-01-20 21:45:57 +000014 "\t-R\t\trecursive action"
Matt Kraaibf181b92000-07-16 20:57:15 +000015#endif
16 ;
17#endif
18
19#if defined BB_BASENAME
20const char basename_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +000021 "basename FILE [SUFFIX]"
Matt Kraaibf181b92000-07-16 20:57:15 +000022#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +000023 "\n\nStrips directory path and suffixes from FILE.\n"
24 "If specified, also removes any trailing SUFFIX."
Matt Kraaibf181b92000-07-16 20:57:15 +000025#endif
26 ;
27#endif
28
29#if defined BB_CAT
30const char cat_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +000031 "cat [FILE]..."
Matt Kraaibf181b92000-07-16 20:57:15 +000032#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +000033 "\n\nConcatenates FILE(s) and prints them to stdout."
Matt Kraaibf181b92000-07-16 20:57:15 +000034#endif
35 ;
36#endif
37
38#if defined BB_CHMOD_CHOWN_CHGRP
39const char chgrp_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +000040 "chgrp [OPTION]... GROUP FILE..."
Matt Kraaibf181b92000-07-16 20:57:15 +000041#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +000042 "\n\nChange the group membership of each FILE to GROUP.\n"
43 "\nOptions:\n\t-R\tChanges files and directories recursively."
Matt Kraaibf181b92000-07-16 20:57:15 +000044#endif
45 ;
46#endif
47
48#if defined BB_CHMOD_CHOWN_CHGRP
49const char chmod_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +000050 "chmod [-R] MODE[,MODE]... FILE..."
Matt Kraaibf181b92000-07-16 20:57:15 +000051#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +000052 "\n\nEach MODE is one or more of the letters ugoa, one of the symbols +-= and\n"
Matt Kraaibf181b92000-07-16 20:57:15 +000053 "one or more of the letters rwxst.\n\n"
Eric Andersen965fa322001-01-20 21:45:57 +000054 "\nOptions:\n\t-R\tChanges files and directories recursively."
Matt Kraaibf181b92000-07-16 20:57:15 +000055#endif
56 ;
57#endif
58
59#if defined BB_CHMOD_CHOWN_CHGRP
60const char chown_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +000061 "chown [OPTION]... OWNER[<.|:>[GROUP] FILE..."
Matt Kraaibf181b92000-07-16 20:57:15 +000062#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +000063 "\n\nChange the owner and/or group of each FILE to OWNER and/or GROUP.\n"
64 "\nOptions:\n\t-R\tChanges files and directories recursively."
Matt Kraaibf181b92000-07-16 20:57:15 +000065#endif
66 ;
67#endif
68
69#if defined BB_CHROOT
70const char chroot_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +000071 "chroot NEWROOT [COMMAND...]"
Matt Kraaibf181b92000-07-16 20:57:15 +000072#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +000073 "\n\nRun COMMAND with root directory set to NEWROOT."
Matt Kraaibf181b92000-07-16 20:57:15 +000074#endif
75 ;
76#endif
77
78#if defined BB_CHVT
79const char chvt_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +000080 "chvt N"
Matt Kraaibf181b92000-07-16 20:57:15 +000081#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +000082 "\n\nChanges the foreground virtual terminal to /dev/ttyN"
Matt Kraaibf181b92000-07-16 20:57:15 +000083#endif
84 ;
85#endif
86
Matt Kraai2f46b662000-07-19 18:01:00 +000087#if defined BB_CLEAR
88const char clear_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +000089 "clear"
Matt Kraai2f46b662000-07-19 18:01:00 +000090#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +000091 "\n\nClear screen."
Matt Kraai2f46b662000-07-19 18:01:00 +000092#endif
93 ;
94#endif
95
Mark Whitley872138d2000-10-09 18:56:47 +000096#if defined BB_CMP
97const char cmp_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +000098 "cmp FILE1 [FILE2]"
Mark Whitley872138d2000-10-09 18:56:47 +000099#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000100 "\n\nCompare files."
Mark Whitley872138d2000-10-09 18:56:47 +0000101#endif
102 ;
103#endif
104
Matt Kraaibf181b92000-07-16 20:57:15 +0000105#if defined BB_CP_MV
106const char cp_usage[] =
107 "cp [OPTION]... SOURCE DEST\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000108 " or: cp [OPTION]... SOURCE... DIRECTORY"
Matt Kraaibf181b92000-07-16 20:57:15 +0000109#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000110 "\n\nCopies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000111 "\n"
112 "\t-a\tSame as -dpR\n"
113 "\t-d\tPreserves links\n"
114 "\t-p\tPreserves file attributes if possible\n"
115 "\t-f\tforce (implied; ignored) - always set\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000116 "\t-R\tCopies directories recursively"
Matt Kraaibf181b92000-07-16 20:57:15 +0000117#endif
118 ;
119#endif
120
121#if defined BB_CUT
122const char cut_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000123 "cut [OPTION]... [FILE]..."
Matt Kraaibf181b92000-07-16 20:57:15 +0000124#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000125 "\n\nPrints selected fields from each input FILE to standard output.\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000126 "Options:\n"
127 "\t-b LIST\tOutput only bytes from LIST\n"
128 "\t-c LIST\tOutput only characters from LIST\n"
129 "\t-d CHAR\tUse CHAR instead of tab as the field delimiter\n"
Pavel Roskin0010ee42000-07-21 15:10:57 +0000130 "\t-s\tOutput only the lines containing delimiter\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000131 "\t-f N\tPrint only these fields\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000132 "\t-n\tIgnored"
Matt Kraaibf181b92000-07-16 20:57:15 +0000133#endif
134 ;
135#endif
136
137#if defined BB_DATE
138const char date_usage[] =
139 "date [OPTION]... [+FORMAT]\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000140 " or: date [OPTION] [MMDDhhmm[[CC]YY][.ss]]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000141#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000142 "\n\nDisplays the current time in the given FORMAT, or sets the system date.\n"
Eric Andersen7b5d5942000-11-29 22:01:42 +0000143 "\nOptions:\n\t-R\t\tOutputs RFC-822 compliant date string\n"
144 "\t-d STRING\tdisplay time described by STRING, not `now'\n"
145 "\t-s\t\tSets time described by STRING\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000146 "\t-u\t\tPrints or sets Coordinated Universal Time"
Matt Kraaibf181b92000-07-16 20:57:15 +0000147#endif
148 ;
149#endif
150
151#if defined BB_DC
152const char dc_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000153 "dc expression ..."
Matt Kraaibf181b92000-07-16 20:57:15 +0000154#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000155 "\n\nThis is a Tiny RPN calculator that understands the\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000156 "following operations: +, -, /, *, and, or, not, eor.\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000157 "i.e. 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16"
Matt Kraaibf181b92000-07-16 20:57:15 +0000158#endif
159 ;
160#endif
161
162#if defined BB_DD
163const char dd_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000164 "dd [if=FILE] [of=FILE] [bs=N] [count=N] [skip=N] [seek=N] [conv=notrunc|sync]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000165#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000166 "\n\nCopy a file, converting and formatting according to options\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000167 "\tif=FILE\tread from FILE instead of stdin\n"
168 "\tof=FILE\twrite to FILE instead of stdout\n"
169 "\tbs=N\tread and write N bytes at a time\n"
170 "\tcount=N\tcopy only N input blocks\n"
171 "\tskip=N\tskip N input blocks\n"
172 "\tseek=N\tskip N output blocks\n"
Matt Kraai24ac0172000-12-18 21:38:57 +0000173 "\tconv=notrunc\tdon't truncate output file\n"
174 "\tconv=sync\tpad blocks with zeros\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000175 "\n"
Matt Kraai24ac0172000-12-18 21:38:57 +0000176 "Numbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024),\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000177 "MD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)."
Matt Kraaibf181b92000-07-16 20:57:15 +0000178#endif
179 ;
180#endif
181
182#if defined BB_DEALLOCVT
183const char deallocvt_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000184 "deallocvt N"
Matt Kraaibf181b92000-07-16 20:57:15 +0000185#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000186 "\n\nDeallocate unused virtual terminal /dev/ttyN"
Matt Kraaibf181b92000-07-16 20:57:15 +0000187#endif
188 ;
189#endif
190
191#if defined BB_DF
192const char df_usage[] =
Richard June6d0921c2001-01-22 22:35:38 +0000193 "df [-?"
194#ifdef BB_FEATURE_HUMAN_READABLE
195 "hm"
196#endif
197 "k] [filesystem ...]\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000198#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000199 "\n\nPrint the filesystem space used and space available."
Richard June6d0921c2001-01-22 22:35:38 +0000200 "Options:\n"
201 "\t-?\tshow usage information\n"
202#ifdef BB_FEATURE_HUMAN_READABLE
203 "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n"
204 "\t-m\tprint sizes in megabytes\n"
205 "\t-k\tprint sizes in kilobytes(default)\n"
206#else
207 "\t-k\tprint sizes in kilobytes(compatability)\n"
208#endif
Matt Kraaibf181b92000-07-16 20:57:15 +0000209#endif
210 ;
211#endif
212
213#if defined BB_DIRNAME
214const char dirname_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000215 "dirname [FILENAME ...]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000216#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000217 "\n\nStrips non-directory suffix from FILENAME"
Matt Kraaibf181b92000-07-16 20:57:15 +0000218#endif
219 ;
220#endif
221
222#if defined BB_DMESG
223const char dmesg_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000224 "dmesg [-c] [-n LEVEL] [-s SIZE]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000225#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000226 "\n\nPrints or controls the kernel ring buffer\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000227 "Options:\n"
228 "\t-c\t\tClears the ring buffer's contents after printing\n"
229 "\t-n LEVEL\tSets console logging level\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000230 "\t-s SIZE\t\tUse a buffer of size SIZE"
Matt Kraaibf181b92000-07-16 20:57:15 +0000231#endif
232 ;
233#endif
234
Eric Andersencff3fe32000-09-20 19:22:26 +0000235#if defined BB_DOS2UNIX
236const char dos2unix_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000237 "dos2unix < dosfile > unixfile"
Eric Andersencff3fe32000-09-20 19:22:26 +0000238#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000239 "\n\nConverts a text file from dos format to unix format."
Eric Andersencff3fe32000-09-20 19:22:26 +0000240#endif
241 ;
242#endif
243
Glenn L McGrath7541e3a2001-01-02 23:41:50 +0000244#if defined BB_DPKG_DEB
245const char dpkg_deb_usage[] =
246 "dpkg-deb [-cexX] file directory"
247#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000248 "\n\nPerform actions on debian packages (.debs)\n\n"
Glenn L McGrath7541e3a2001-01-02 23:41:50 +0000249 "Options:\n"
250 "\t-c\tList contents of filesystem tree\n"
251 "\t-e\tExtract control files to directory\n"
252 "\t-x\tExctract packages filesystem tree to directory\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000253 "\t-X\tVerbose extract"
Glenn L McGrath7541e3a2001-01-02 23:41:50 +0000254#endif
255 ;
256#endif
257
Matt Kraaibf181b92000-07-16 20:57:15 +0000258#if defined BB_DU
259const char du_usage[] =
Richard June6d0921c2001-01-22 22:35:38 +0000260 "du [-?ls"
261#ifdef BB_FEATURE_HUMAN_READABLE
262 "hm"
263#endif
264 "k] [FILE]...\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000265#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000266 "\n\nSummarizes disk space used for each FILE and/or directory.\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000267 "Disk space is printed in units of 1024 bytes.\n\n"
268 "Options:\n"
Richard June6d0921c2001-01-22 22:35:38 +0000269 "\t-?\tshow usage information\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000270 "\t-l\tcount sizes many times if hard linked\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000271 "\t-s\tdisplay only a total for each argument"
Richard June6d0921c2001-01-22 22:35:38 +0000272#ifdef BB_FEATURE_HUMAN_READABLE
273 "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n"
274 "\t-m\tprint sizes in megabytes\n"
275 "\t-k\tprint sizes in kilobytes(default)\n"
276#else
277 "\t-k\tprint sizes in kilobytes(compatability)\n"
278#endif
Matt Kraaibf181b92000-07-16 20:57:15 +0000279#endif
280 ;
281#endif
282
283#if defined BB_DUMPKMAP
284const char dumpkmap_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000285 "dumpkmap > keymap"
Matt Kraaibf181b92000-07-16 20:57:15 +0000286#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000287 "\n\nPrints out a binary keyboard translation table to standard input."
Matt Kraaibf181b92000-07-16 20:57:15 +0000288#endif
289 ;
290#endif
291
292#if defined BB_DUTMP
293const char dutmp_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000294 "dutmp [FILE]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000295#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000296 "\n\nDump utmp file format (pipe delimited) from FILE\n"
297 "or stdin to stdout. (i.e. 'dutmp /var/run/utmp')"
Matt Kraaibf181b92000-07-16 20:57:15 +0000298#endif
299 ;
300#endif
301
302#if defined BB_ECHO
303const char echo_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000304 "echo [-neE] [ARG ...]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000305#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000306 "\n\nPrints the specified ARGs to stdout\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000307 "Options:\n"
308 "\t-n\tsuppress trailing newline\n"
309 "\t-e\tinterpret backslash-escaped characters (i.e. \\t=tab etc)\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000310 "\t-E\tdisable interpretation of backslash-escaped characters"
Matt Kraaibf181b92000-07-16 20:57:15 +0000311#endif
312 ;
313#endif
314
Eric Andersen1b355eb2000-09-05 17:37:48 +0000315#if defined BB_EXPR
316const char expr_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000317 "expr EXPRESSION"
Eric Andersen1b355eb2000-09-05 17:37:48 +0000318#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000319"\n\nPrints the value of EXPRESSION to standard output.\n\n"
320"EXPRESSION may be:\n"
321"ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2\n"
322"ARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0\n"
323"ARG1 < ARG2 ARG1 is less than ARG2\n"
324"ARG1 <= ARG2 ARG1 is less than or equal to ARG2\n"
325"ARG1 = ARG2 ARG1 is equal to ARG2\n"
326"ARG1 != ARG2 ARG1 is unequal to ARG2\n"
327"ARG1 >= ARG2 ARG1 is greater than or equal to ARG2\n"
328"ARG1 > ARG2 ARG1 is greater than ARG2\n"
329"ARG1 + ARG2 arithmetic sum of ARG1 and ARG2\n"
330"ARG1 - ARG2 arithmetic difference of ARG1 and ARG2\n"
331"ARG1 * ARG2 arithmetic product of ARG1 and ARG2\n"
332"ARG1 / ARG2 arithmetic quotient of ARG1 divided by ARG2\n"
333"ARG1 % ARG2 arithmetic remainder of ARG1 divided by ARG2\n"
334"STRING : REGEXP anchored pattern match of REGEXP in STRING\n"
335"match STRING REGEXP same as STRING : REGEXP\n"
336"substr STRING POS LENGTH substring of STRING, POS counted from 1\n"
337"index STRING CHARS index in STRING where any CHARS is found, or 0\n"
338"length STRING length of STRING\n"
339"quote TOKEN interpret TOKEN as a string, even if it is a \n"
340" keyword like `match' or an operator like `/'\n"
341"( EXPRESSION ) value of EXPRESSION\n\n"
342"Beware that many operators need to be escaped or quoted for shells.\n"
343"Comparisons are arithmetic if both ARGs are numbers, else\n"
344"lexicographical. Pattern matches return the string matched between \n"
345"\\( and \\) or null; if \\( and \\) are not used, they return the number \n"
346"of characters matched or 0."
Eric Andersen1b355eb2000-09-05 17:37:48 +0000347
348#endif
349 ;
350#endif
351
352
Matt Kraai2f46b662000-07-19 18:01:00 +0000353#if defined BB_TRUE_FALSE
354const char false_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000355 "false"
Matt Kraai2f46b662000-07-19 18:01:00 +0000356#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000357 "\n\nReturn an exit code of FALSE (1)."
Matt Kraai2f46b662000-07-19 18:01:00 +0000358#endif
359 ;
360#endif
361
Matt Kraaibf181b92000-07-16 20:57:15 +0000362#if defined BB_FDFLUSH
363const char fdflush_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000364 "fdflush DEVICE"
Matt Kraaibf181b92000-07-16 20:57:15 +0000365#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000366 "\n\nForces floppy disk drive to detect disk change"
Matt Kraaibf181b92000-07-16 20:57:15 +0000367#endif
368 ;
369#endif
370
371#if defined BB_FIND
372const char find_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000373 "find [PATH...] [EXPRESSION]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000374#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000375 "\n\nSearch for files in a directory hierarchy. The default PATH is\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000376 "the current directory; default EXPRESSION is '-print'\n\n"
377 "\nEXPRESSION may consist of:\n"
378 "\t-follow\t\tDereference symbolic links.\n"
379 "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN.\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000380 "\t-print\t\tprint the full file name followed by a newline to stdout."
Matt Kraaibf181b92000-07-16 20:57:15 +0000381#endif
382 ;
383#endif
384
385#if defined BB_FREE
386const char free_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000387 "free"
Matt Kraaibf181b92000-07-16 20:57:15 +0000388#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000389 "\n\nDisplays the amount of free and used system memory"
Matt Kraaibf181b92000-07-16 20:57:15 +0000390#endif
391 ;
392#endif
393
394#if defined BB_FREERAMDISK
395const char freeramdisk_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000396 "freeramdisk DEVICE"
Matt Kraaibf181b92000-07-16 20:57:15 +0000397#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000398 "\n\nFrees all memory used by the specified ramdisk."
Matt Kraaibf181b92000-07-16 20:57:15 +0000399#endif
400 ;
401#endif
402
403#if defined BB_FSCK_MINIX
404const char fsck_minix_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000405 "Usage: fsck.minix [-larvsmf] /dev/name"
Matt Kraaibf181b92000-07-16 20:57:15 +0000406#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000407 "\n\nPerforms a consistency check for MINIX filesystems.\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000408 "Options:\n"
409 "\t-l\tLists all filenames\n"
410 "\t-r\tPerform interactive repairs\n"
411 "\t-a\tPerform automatic repairs\n"
412 "\t-v\tverbose\n"
413 "\t-s\tOutputs super-block information\n"
414 "\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000415 "\t-f\tForce file system check."
Matt Kraaibf181b92000-07-16 20:57:15 +0000416#endif
417 ;
418#endif
419
Mark Whitley60506182000-10-19 22:28:06 +0000420#if defined BB_GETOPT
421const char getopt_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000422"getopt [OPTIONS]..."
Mark Whitley60506182000-10-19 22:28:06 +0000423#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000424"\nParse command options\n"
Mark Whitley60506182000-10-19 22:28:06 +0000425" -a, --alternative Allow long options starting with single -\n"
426" -l, --longoptions=longopts Long options to be recognized\n"
427" -n, --name=progname The name under which errors are reported\n"
428" -o, --options=optstring Short options to be recognized\n"
429" -q, --quiet Disable error reporting by getopt(3)\n"
430" -Q, --quiet-output No normal output\n"
431" -s, --shell=shell Set shell quoting conventions\n"
432" -T, --test Test for getopt(1) version\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000433" -u, --unqote Do not quote the output"
Mark Whitley60506182000-10-19 22:28:06 +0000434#endif
435;
436#endif
437
Matt Kraaibf181b92000-07-16 20:57:15 +0000438#if defined BB_GREP
439const char grep_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000440 "grep [-ihHnqvs] pattern [files...]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000441#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000442 "\n\nSearch for PATTERN in each FILE or standard input.\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000443 "Options:\n"
444 "\t-H\tprefix output lines with filename where match was found\n"
445 "\t-h\tsuppress the prefixing filename on output\n"
446 "\t-i\tignore case distinctions\n"
447 "\t-n\tprint line number with output lines\n"
448 "\t-q\tbe quiet. Returns 0 if result was found, 1 otherwise\n"
449 "\t-v\tselect non-matching lines\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000450 "\t-s\tsuppress file open/read error messages"
Matt Kraaibf181b92000-07-16 20:57:15 +0000451#endif
452 ;
453#endif
454
455#if defined BB_GUNZIP
456const char gunzip_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000457 "gunzip [OPTION]... FILE"
Matt Kraaibf181b92000-07-16 20:57:15 +0000458#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000459 "\n\nUncompress FILE (or standard input if FILE is '-').\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000460 "Options:\n"
461 "\t-c\tWrite output to standard output\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000462 "\t-t\tTest compressed file integrity"
Matt Kraaibf181b92000-07-16 20:57:15 +0000463#endif
464 ;
465#endif
466
467#if defined BB_GZIP
468const char gzip_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000469 "gzip [OPTION]... FILE"
Matt Kraaibf181b92000-07-16 20:57:15 +0000470#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000471 "\n\nCompress FILE with maximum compression.\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000472 "When FILE is '-', reads standard input. Implies -c.\n\n"
473 "Options:\n"
474 "\t-c\tWrite output to standard output instead of FILE.gz\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000475 "\t-d\tdecompress"
Matt Kraaibf181b92000-07-16 20:57:15 +0000476#endif
477 ;
478#endif
479
Matt Kraai2f46b662000-07-19 18:01:00 +0000480#if defined BB_HALT
481const char halt_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000482 "halt"
Matt Kraai2f46b662000-07-19 18:01:00 +0000483#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000484 "\n\nHalt the system."
Matt Kraai2f46b662000-07-19 18:01:00 +0000485#endif
486 ;
Matt Kraai86905722000-07-19 18:20:02 +0000487#endif
Matt Kraai2f46b662000-07-19 18:01:00 +0000488
Matt Kraaibf181b92000-07-16 20:57:15 +0000489#if defined BB_HEAD
490const char head_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000491 "head [OPTION] [FILE]..."
Matt Kraaibf181b92000-07-16 20:57:15 +0000492#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000493 "\n\nPrint first 10 lines of each FILE to standard output.\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000494 "With more than one FILE, precede each with a header giving the\n"
495 "file name. With no FILE, or when FILE is -, read standard input.\n\n"
496
Eric Andersen965fa322001-01-20 21:45:57 +0000497 "Options:\n" "\t-n NUM\t\tPrint first NUM lines instead of first 10"
Matt Kraaibf181b92000-07-16 20:57:15 +0000498#endif
499 ;
500#endif
501
Matt Kraai2f46b662000-07-19 18:01:00 +0000502#if defined BB_HOSTID
503const char hostid_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000504 "hostid"
Matt Kraai2f46b662000-07-19 18:01:00 +0000505#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000506 "\n\nPrint out a unique 32-bit identifier for the machine."
Matt Kraai2f46b662000-07-19 18:01:00 +0000507#endif
508 ;
509#endif
510
Matt Kraaibf181b92000-07-16 20:57:15 +0000511#if defined BB_HOSTNAME
512const char hostname_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000513 "hostname [OPTION] {hostname | -F file}"
Matt Kraaibf181b92000-07-16 20:57:15 +0000514#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000515 "\n\nGet or set the hostname or DNS domain name. If a hostname is given\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000516 "(or a file with the -F parameter), the host name will be set.\n\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000517
Matt Kraaibf181b92000-07-16 20:57:15 +0000518 "Options:\n"
519 "\t-s\t\tShort\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000520 "\t-i\t\tAddresses for the hostname\n"
521 "\t-d\t\tDNS domain name\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000522 "\t-F, --file FILE\tUse the contents of FILE to specify the hostname"
Matt Kraaibf181b92000-07-16 20:57:15 +0000523#endif
524 ;
525#endif
526
527#if defined BB_ID
528const char id_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000529 "id [OPTIONS]... [USERNAME]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000530#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000531 "\n\nPrint information for USERNAME or the current user\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000532 "Options:\n"
533 "\t-g\tprints only the group ID\n"
534 "\t-u\tprints only the user ID\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000535 "\t-r\tprints the real user ID instead of the effective ID (with -ug)"
Matt Kraaibf181b92000-07-16 20:57:15 +0000536#endif
537 ;
538#endif
539
540#if defined BB_INSMOD
541const char insmod_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000542 "insmod [OPTION]... MODULE [symbol=value]..."
Matt Kraaibf181b92000-07-16 20:57:15 +0000543#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000544 "\n\nLoads the specified kernel modules into the kernel.\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000545 "Options:\n"
546 "\t-f\tForce module to load into the wrong kernel version.\n"
547 "\t-k\tMake module autoclean-able.\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000548 "\t-v\tverbose output\n" "\t-x\tdo not export externs"
Matt Kraaibf181b92000-07-16 20:57:15 +0000549#endif
550 ;
551#endif
552
553#if defined BB_KILL
554const char kill_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000555 "kill [-signal] process-id [process-id ...]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000556#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000557 "\n\nSend a signal (default is SIGTERM) to the specified process(es).\n\n"
558 "Options:\n" "\t-l\tList all signal names and numbers."
Matt Kraaibf181b92000-07-16 20:57:15 +0000559#endif
560 ;
561#endif
562
563#if defined BB_KILLALL
564const char killall_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000565 "killall [-signal] process-name [process-name ...]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000566#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000567 "\n\nSend a signal (default is SIGTERM) to the specified process(es).\n\n"
568 "Options:\n" "\t-l\tList all signal names and numbers."
Matt Kraaibf181b92000-07-16 20:57:15 +0000569#endif
570 ;
571#endif
572
573#if defined BB_LENGTH
574const char length_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000575 "length STRING"
Matt Kraaibf181b92000-07-16 20:57:15 +0000576#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000577 "\n\nPrints out the length of the specified STRING."
Matt Kraaibf181b92000-07-16 20:57:15 +0000578#endif
579 ;
580#endif
581
582#if defined BB_LN
583const char ln_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000584 "ln [OPTION] TARGET... LINK_NAME|DIRECTORY"
Matt Kraaibf181b92000-07-16 20:57:15 +0000585#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000586 "\n\nCreate a link named LINK_NAME or DIRECTORY to the specified TARGET\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000587 "\nYou may use '--' to indicate that all following arguments are non-options.\n\n"
588 "Options:\n"
589 "\t-s\tmake symbolic links instead of hard links\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000590 "\t-f\tremove existing destination files\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000591 "\t-n\tno dereference symlinks - treat like normal file"
Matt Kraaibf181b92000-07-16 20:57:15 +0000592#endif
593 ;
594#endif
595
596#if defined BB_LOADACM
597const char loadacm_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000598 "loadacm < mapfile"
Matt Kraaibf181b92000-07-16 20:57:15 +0000599#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000600 "\n\nLoads an acm from standard input."
Matt Kraaibf181b92000-07-16 20:57:15 +0000601#endif
602 ;
603#endif
604
605#if defined BB_LOADFONT
606const char loadfont_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000607 "loadfont < font"
Matt Kraaibf181b92000-07-16 20:57:15 +0000608#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000609 "\n\nLoads a console font from standard input."
Matt Kraaibf181b92000-07-16 20:57:15 +0000610#endif
611 ;
612#endif
613
614#if defined BB_LOADKMAP
615const char loadkmap_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000616 "loadkmap < keymap"
Matt Kraaibf181b92000-07-16 20:57:15 +0000617#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000618 "\n\nLoads a binary keyboard translation table from standard input."
Matt Kraaibf181b92000-07-16 20:57:15 +0000619#endif
620 ;
621#endif
622
623#if defined BB_LOGGER
624const char logger_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000625 "logger [OPTION]... [MESSAGE]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000626#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000627 "\n\nWrite MESSAGE to the system log. If MESSAGE is omitted, log stdin.\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000628 "Options:\n"
629 "\t-s\tLog to stderr as well as the system log.\n"
630 "\t-t\tLog using the specified tag (defaults to user name).\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000631 "\t-p\tEnter the message with the specified priority.\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000632 "\t\tThis may be numerical or a ``facility.level'' pair."
Matt Kraaibf181b92000-07-16 20:57:15 +0000633#endif
634 ;
635#endif
636
637#if defined BB_LOGNAME
638const char logname_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000639 "logname"
Matt Kraaibf181b92000-07-16 20:57:15 +0000640#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000641 "\n\nPrint the name of the current user."
Matt Kraaibf181b92000-07-16 20:57:15 +0000642#endif
643 ;
644#endif
645
646#if defined BB_LS
647const char ls_usage[] =
Eric Andersen11c65522000-09-07 17:24:47 +0000648 "ls [-1Aa"
Matt Kraaibf181b92000-07-16 20:57:15 +0000649#ifdef BB_FEATURE_LS_TIMESTAMPS
650 "c"
651#endif
Eric Andersen11c65522000-09-07 17:24:47 +0000652 "Cd"
Matt Kraaibf181b92000-07-16 20:57:15 +0000653#ifdef BB_FEATURE_LS_TIMESTAMPS
654 "e"
655#endif
Matt Kraaibf181b92000-07-16 20:57:15 +0000656#ifdef BB_FEATURE_LS_FILETYPES
657 "F"
658#endif
Eric Andersen11c65522000-09-07 17:24:47 +0000659 "iln"
660#ifdef BB_FEATURE_LS_FILETYPES
661 "p"
662#endif
Eric Andersen5b176932000-09-22 20:22:28 +0000663#ifdef BB_FEATURE_LS_FOLLOWLINKS
664 "L"
665#endif
Matt Kraaibf181b92000-07-16 20:57:15 +0000666#ifdef BB_FEATURE_LS_RECURSIVE
667 "R"
668#endif
Eric Andersen11c65522000-09-07 17:24:47 +0000669#ifdef BB_FEATURE_LS_SORTFILES
670 "rS"
671#endif
672 "s"
673#ifdef BB_FEATURE_AUTOWIDTH
674 "T"
675#endif
676#ifdef BB_FEATURE_LS_TIMESTAMPS
677 "tu"
678#endif
679#ifdef BB_FEATURE_LS_SORTFILES
680 "v"
681#endif
682#ifdef BB_FEATURE_AUTOWIDTH
683 "w"
684#endif
685 "x"
686#ifdef BB_FEATURE_LS_SORTFILES
687 "X"
688#endif
Richard June6d0921c2001-01-22 22:35:38 +0000689#ifdef BB_FEATURE_HUMAN_READABLE
690 "h"
691#endif
692 "k] [filenames...]\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000693#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000694 "\n\nList directory contents\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000695 "Options:\n"
Eric Andersen11c65522000-09-07 17:24:47 +0000696 "\t-1\tlist files in a single column\n"
697 "\t-A\tdo not list implied . and ..\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000698 "\t-a\tdo not hide entries starting with .\n"
Eric Andersen11c65522000-09-07 17:24:47 +0000699 "\t-C\tlist entries by columns\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000700#ifdef BB_FEATURE_LS_TIMESTAMPS
701 "\t-c\twith -l: show ctime (the time of last\n"
702 "\t\tmodification of file status information)\n"
703#endif
704 "\t-d\tlist directory entries instead of contents\n"
705#ifdef BB_FEATURE_LS_TIMESTAMPS
706 "\t-e\tlist both full date and full time\n"
707#endif
Eric Andersen11c65522000-09-07 17:24:47 +0000708#ifdef BB_FEATURE_LS_FILETYPES
709 "\t-F\tappend indicator (one of */=@|) to entries\n"
710#endif
711 "\t-i\tlist the i-node for each file\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000712 "\t-l\tuse a long listing format\n"
713 "\t-n\tlist numeric UIDs and GIDs instead of names\n"
714#ifdef BB_FEATURE_LS_FILETYPES
715 "\t-p\tappend indicator (one of /=@|) to entries\n"
716#endif
Eric Andersen5b176932000-09-22 20:22:28 +0000717#ifdef BB_FEATURE_LS_FOLLOWLINKS
Eric Andersen965fa322001-01-20 21:45:57 +0000718 "\t-L\tlist entries pointed to by symbolic links\n"
Eric Andersen5b176932000-09-22 20:22:28 +0000719#endif
Matt Kraaibf181b92000-07-16 20:57:15 +0000720#ifdef BB_FEATURE_LS_RECURSIVE
721 "\t-R\tlist subdirectories recursively\n"
722#endif
Eric Andersen11c65522000-09-07 17:24:47 +0000723#ifdef BB_FEATURE_LS_SORTFILES
724 "\t-r\tsort the listing in reverse order\n"
725 "\t-S\tsort the listing by file size\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000726#endif
Eric Andersen11c65522000-09-07 17:24:47 +0000727 "\t-s\tlist the size of each file, in blocks\n"
728#ifdef BB_FEATURE_AUTOWIDTH
729 "\t-T NUM\tassume Tabstop every NUM columns\n"
730#endif
731#ifdef BB_FEATURE_LS_TIMESTAMPS
732 "\t-t\twith -l: show modification time (the time of last\n"
733 "\t\tchange of the file)\n"
734 "\t-u\twith -l: show access time (the time of last\n"
735 "\t\taccess of the file)\n"
736#endif
737#ifdef BB_FEATURE_LS_SORTFILES
738 "\t-v\tsort the listing by version\n"
739#endif
740#ifdef BB_FEATURE_AUTOWIDTH
741 "\t-w NUM\tassume the terminal is NUM columns wide\n"
742#endif
743 "\t-x\tlist entries by lines instead of by columns\n"
744#ifdef BB_FEATURE_LS_SORTFILES
745 "\t-X\tsort the listing by extension\n"
746#endif
Richard June6d0921c2001-01-22 22:35:38 +0000747
748#ifdef BB_FEATURE_HUMAN_READABLE
749 "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n"
750 "\t-k\tprint sizes in kilobytes(default)\n"
751#else
752 "\t-k\tprint sizes in kilobytes(compatability)"
753#endif
754
Eric Andersen11c65522000-09-07 17:24:47 +0000755#endif /* BB_FEATURE_TRIVIAL_HELP */
Matt Kraaibf181b92000-07-16 20:57:15 +0000756 ;
Eric Andersen11c65522000-09-07 17:24:47 +0000757#endif /* BB_LS */
Matt Kraaibf181b92000-07-16 20:57:15 +0000758
Matt Kraai2f46b662000-07-19 18:01:00 +0000759#if defined BB_LSMOD
760const char lsmod_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000761 "lsmod"
Matt Kraai2f46b662000-07-19 18:01:00 +0000762#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000763 "\n\nList the currently loaded kernel modules."
Matt Kraai2f46b662000-07-19 18:01:00 +0000764#endif
765 ;
766#endif
767
Matt Kraaibf181b92000-07-16 20:57:15 +0000768#if defined BB_MAKEDEVS
769const char makedevs_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000770 "makedevs NAME TYPE MAJOR MINOR FIRST LAST [s]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000771#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000772 "\n\nCreates a range of block or character special files\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000773 "TYPEs include:\n"
774 "\tb:\tMake a block (buffered) device.\n"
775 "\tc or u:\tMake a character (un-buffered) device.\n"
776 "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes.\n\n"
777 "FIRST specifies the number appended to NAME to create the first device.\n"
778 "LAST specifies the number of the last item that should be created.\n"
779 "If 's' is the last argument, the base device is created as well.\n\n"
780 "For example:\n"
781 "\tmakedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000782 "\tmakedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8"
Matt Kraaibf181b92000-07-16 20:57:15 +0000783#endif
784 ;
785#endif
786
787#if defined BB_MD5SUM
788const char md5sum_usage[] =
789 "md5sum [OPTION] [FILE]...\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000790 "or: md5sum [OPTION] -c [FILE]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000791#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000792 "\n\nPrint or check MD5 checksums.\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000793 "Options:\n"
794 "With no FILE, or when FILE is -, read standard input.\n\n"
795 "\t-b\tread files in binary mode\n"
796 "\t-c\tcheck MD5 sums against given list\n"
797 "\t-t\tread files in text mode (default)\n"
798 "\t-g\tread a string\n"
799 "\nThe following two options are useful only when verifying checksums:\n"
800 "\t-s,\tdon't output anything, status code shows success\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000801 "\t-w,\twarn about improperly formated MD5 checksum lines"
Matt Kraaibf181b92000-07-16 20:57:15 +0000802#endif
803 ;
804#endif
805
806#if defined BB_MKDIR
807const char mkdir_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000808 "mkdir [OPTION] DIRECTORY..."
Matt Kraaibf181b92000-07-16 20:57:15 +0000809#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000810 "\n\nCreate the DIRECTORY(ies), if they do not already exist\n\n"
811
Matt Kraaibf181b92000-07-16 20:57:15 +0000812 "Options:\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000813 "\t-m\tset permission mode (as in chmod), not rwxrwxrwx - umask\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000814 "\t-p\tno error if existing, make parent directories as needed"
Matt Kraaibf181b92000-07-16 20:57:15 +0000815#endif
816 ;
817#endif
818
819#if defined BB_MKFIFO
820const char mkfifo_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000821 "mkfifo [OPTIONS] name"
Matt Kraaibf181b92000-07-16 20:57:15 +0000822#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000823 "\n\nCreates a named pipe (identical to 'mknod name p')\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000824 "Options:\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000825 "\t-m\tcreate the pipe using the specified mode (default a=rw)"
Matt Kraaibf181b92000-07-16 20:57:15 +0000826#endif
827 ;
828#endif
829
830#if defined BB_MKFS_MINIX
831const char mkfs_minix_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000832 "mkfs.minix [-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000833#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000834 "\n\nMake a MINIX filesystem.\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000835 "Options:\n"
836 "\t-c\t\tCheck the device for bad blocks\n"
837 "\t-n [14|30]\tSpecify the maximum length of filenames\n"
838 "\t-i INODES\tSpecify the number of inodes for the filesystem\n"
839 "\t-l FILENAME\tRead the bad blocks list from FILENAME\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000840 "\t-v\t\tMake a Minix version 2 filesystem"
Matt Kraaibf181b92000-07-16 20:57:15 +0000841#endif
842 ;
843#endif
844
845#if defined BB_MKNOD
846const char mknod_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000847 "mknod [OPTIONS] NAME TYPE MAJOR MINOR"
Matt Kraaibf181b92000-07-16 20:57:15 +0000848#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000849 "\n\nCreate a special file (block, character, or pipe).\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000850 "Options:\n"
851 "\t-m\tcreate the special file using the specified mode (default a=rw)\n\n"
852 "TYPEs include:\n"
853 "\tb:\tMake a block (buffered) device.\n"
854 "\tc or u:\tMake a character (un-buffered) device.\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000855 "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes."
Matt Kraaibf181b92000-07-16 20:57:15 +0000856#endif
857 ;
858#endif
859
860#if defined BB_MKSWAP
861const char mkswap_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000862 "mkswap [-c] [-v0|-v1] device [block-count]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000863#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000864 "\n\nPrepare a disk partition to be used as a swap partition.\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000865 "Options:\n" "\t-c\t\tCheck for read-ability.\n"
866 "\t-v0\t\tMake version 0 swap [max 128 Megs].\n"
867 "\t-v1\t\tMake version 1 swap [big!] (default for kernels > 2.1.117).\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000868 "\tblock-count\tNumber of block to use (default is entire partition)."
Matt Kraaibf181b92000-07-16 20:57:15 +0000869#endif
870 ;
871#endif
872
873#if defined BB_MKTEMP
874const char mktemp_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000875 "mktemp [-q] TEMPLATE"
Matt Kraaibf181b92000-07-16 20:57:15 +0000876#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000877 "\n\nCreates a temporary file with its name based on TEMPLATE.\n"
878 "TEMPLATE is any name with six `Xs' (i.e. /tmp/temp.XXXXXX)."
Matt Kraaibf181b92000-07-16 20:57:15 +0000879#endif
880 ;
881#endif
882
883#if defined BB_MORE
884const char more_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000885 "more [FILE ...]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000886#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000887 "\n\nMore is a filter for viewing FILE one screenful at a time."
Matt Kraaibf181b92000-07-16 20:57:15 +0000888#endif
889 ;
890#endif
891
892#if defined BB_MOUNT
893const char mount_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000894 "mount [flags] device directory [-o options,more-options]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000895#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000896 "\n\nMount a filesystem\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000897 "Flags:\n"
898 "\t-a:\t\tMount all filesystems in fstab.\n"
899#ifdef BB_MTAB
900 "\t-f:\t\t\"Fake\" mount. Add entry to mount table but don't mount it.\n"
901 "\t-n:\t\tDon't write a mount table entry.\n"
902#endif
903 "\t-o option:\tOne of many filesystem options, listed below.\n"
904 "\t-r:\t\tMount the filesystem read-only.\n"
905 "\t-t fs-type:\tSpecify the filesystem type.\n"
906 "\t-w:\t\tMount for reading and writing (default).\n"
907 "\n"
908 "Options for use with the \"-o\" flag:\n"
909 "\tasync/sync:\tWrites are asynchronous / synchronous.\n"
910 "\tatime/noatime:\tEnable / disable updates to inode access times.\n"
911 "\tdev/nodev:\tAllow use of special device files / disallow them.\n"
912 "\texec/noexec:\tAllow use of executable files / disallow them.\n"
913#if defined BB_FEATURE_MOUNT_LOOP
914 "\tloop:\t\tMounts a file via loop device.\n"
915#endif
916 "\tsuid/nosuid:\tAllow set-user-id-root programs / disallow them.\n"
917 "\tremount:\tRe-mount a currently-mounted filesystem, changing its flags.\n"
918 "\tro/rw:\t\tMount for read-only / read-write.\n"
919 "\nThere are EVEN MORE flags that are specific to each filesystem.\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000920 "You'll have to see the written documentation for those."
Matt Kraaibf181b92000-07-16 20:57:15 +0000921#endif
922 ;
923#endif
924
925#if defined BB_MT
926const char mt_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000927 "mt [-f device] opcode value"
Matt Kraaibf181b92000-07-16 20:57:15 +0000928#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000929 "\n\nControl magnetic tape drive operation\n"
Eric Andersen8cbac442000-08-11 20:14:11 +0000930 "\nAvailable Opcodes:\n\n"
931 "bsf bsfm bsr bss datacompression drvbuffer eof eom erase\n"
932 "fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2\n"
933 "ras3 reset retension rew rewoffline seek setblk setdensity\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000934 "setpart tell unload unlock weof wset"
Matt Kraaibf181b92000-07-16 20:57:15 +0000935#endif
936 ;
937#endif
938
939#if defined BB_CP_MV
940const char mv_usage[] =
941 "mv SOURCE DEST\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000942 " or: mv SOURCE... DIRECTORY"
Matt Kraaibf181b92000-07-16 20:57:15 +0000943#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000944 "\n\nRename SOURCE to DEST, or move SOURCE(s) to DIRECTORY."
Matt Kraaibf181b92000-07-16 20:57:15 +0000945#endif
946 ;
947#endif
948
949#if defined BB_NC
950const char nc_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000951 "nc [IP] [port]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000952#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000953 "\n\nNetcat opens a pipe to IP:port"
Matt Kraaibf181b92000-07-16 20:57:15 +0000954#endif
955 ;
956#endif
957
958#if defined BB_NSLOOKUP
959const char nslookup_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000960 "nslookup [HOST]"
Matt Kraaibf181b92000-07-16 20:57:15 +0000961#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000962 "\n\nQueries the nameserver for the IP address of the given HOST"
Matt Kraaibf181b92000-07-16 20:57:15 +0000963#endif
964;
965#endif
966
967#if defined BB_PING
968#if defined BB_FEATURE_SIMPLE_PING
969const char ping_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000970 "ping host"
Matt Kraaibf181b92000-07-16 20:57:15 +0000971#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000972 "\n\nSend ICMP ECHO_REQUEST packets to network hosts"
Matt Kraaibf181b92000-07-16 20:57:15 +0000973#endif
974 ;
975#else /* ! defined BB_FEATURE_SIMPLE_PING */
976const char ping_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000977 "ping [OPTION]... host"
Matt Kraaibf181b92000-07-16 20:57:15 +0000978#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000979 "\n\nSend ICMP ECHO_REQUEST packets to network hosts.\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +0000980 "Options:\n"
981 "\t-c COUNT\tSend only COUNT pings.\n"
982 "\t-s SIZE\t\tSend SIZE data bytes in packets (default=56).\n"
983 "\t-q\t\tQuiet mode, only displays output at start\n"
Eric Andersen965fa322001-01-20 21:45:57 +0000984 "\t\t\tand when finished."
Matt Kraaibf181b92000-07-16 20:57:15 +0000985#endif
986 ;
987#endif
988#endif
989
Matt Kraai2f46b662000-07-19 18:01:00 +0000990#if defined BB_POWEROFF
991const char poweroff_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +0000992 "poweroff"
Matt Kraai2f46b662000-07-19 18:01:00 +0000993#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +0000994 "\n\nHalt the system and request that the kernel shut off the power."
Matt Kraai2f46b662000-07-19 18:01:00 +0000995#endif
996 ;
997#endif
998
Matt Kraaibf181b92000-07-16 20:57:15 +0000999#if defined BB_PRINTF
1000const char printf_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001001 "printf FORMAT [ARGUMENT...]"
Matt Kraaibf181b92000-07-16 20:57:15 +00001002#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001003 "\n\nFormats and prints ARGUMENT(s) according to FORMAT,\n"
1004 "Where FORMAT controls the output exactly as in C printf."
Matt Kraaibf181b92000-07-16 20:57:15 +00001005#endif
1006 ;
1007#endif
1008
1009#if defined BB_PS
1010const char ps_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001011 "ps"
Matt Kraaibf181b92000-07-16 20:57:15 +00001012#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001013 "\n\nReport process status\n"
1014 "\nThis version of ps accepts no options."
Matt Kraaibf181b92000-07-16 20:57:15 +00001015#endif
1016 ;
1017#endif
1018
Matt Kraai2f46b662000-07-19 18:01:00 +00001019#if defined BB_PWD
1020const char pwd_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001021 "pwd"
Matt Kraai2f46b662000-07-19 18:01:00 +00001022#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001023 "\n\nPrint the full filename of the current working directory."
Matt Kraai2f46b662000-07-19 18:01:00 +00001024#endif
1025 ;
1026#endif
1027
Eric Andersen918507e2000-08-21 22:46:33 +00001028#if defined BB_RDATE
1029const char rdate_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001030 "rdate [OPTION] HOST"
Eric Andersen918507e2000-08-21 22:46:33 +00001031#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001032 "\n\nGet and possibly set the system date and time from a remote HOST.\n"
Eric Andersen918507e2000-08-21 22:46:33 +00001033 "Options:\n"
1034 "\t-s\tSet the system date and time (default).\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001035 "\t-p\tPrint the date and time."
Eric Andersen918507e2000-08-21 22:46:33 +00001036#endif
1037 ;
1038#endif
1039
Mark Whitley872138d2000-10-09 18:56:47 +00001040#if defined BB_READLINK
1041const char readlink_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001042 "readlink"
Mark Whitley872138d2000-10-09 18:56:47 +00001043#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001044 "\n\nRead a symbolic link."
Mark Whitley872138d2000-10-09 18:56:47 +00001045#endif
1046 ;
1047#endif
1048
Matt Kraai2f46b662000-07-19 18:01:00 +00001049#if defined BB_REBOOT
1050const char reboot_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001051 "reboot"
Matt Kraai2f46b662000-07-19 18:01:00 +00001052#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001053 "\n\nReboot the system."
Matt Kraai2f46b662000-07-19 18:01:00 +00001054#endif
1055 ;
1056#endif
Eric Andersenbf960f52000-07-21 21:32:12 +00001057
1058#if defined BB_RENICE
1059const char renice_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001060 "renice priority pid [pid ...]"
Eric Andersenbf960f52000-07-21 21:32:12 +00001061#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001062 "\n\nChanges priority of running processes. Allowed priorities range\n"
Eric Andersenbf960f52000-07-21 21:32:12 +00001063 "from 20 (the process runs only when nothing else is running) to 0\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001064 "(default priority) to -20 (almost nothing else ever gets to run)."
Eric Andersenbf960f52000-07-21 21:32:12 +00001065#endif
1066 ;
1067#endif
1068
Eric Andersenfa405d02000-08-21 21:18:52 +00001069
1070#if defined BB_RESET
1071const char reset_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001072 "reset"
Eric Andersenfa405d02000-08-21 21:18:52 +00001073#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001074 "\n\nResets the screen."
Eric Andersenfa405d02000-08-21 21:18:52 +00001075#endif
1076 ;
1077#endif
1078
Matt Kraaibf181b92000-07-16 20:57:15 +00001079#if defined BB_RM
1080const char rm_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001081 "rm [OPTION]... FILE..."
Matt Kraaibf181b92000-07-16 20:57:15 +00001082#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001083 "\n\nRemove (unlink) the FILE(s). You may use '--' to\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001084 "indicate that all following arguments are non-options.\n\n"
1085 "Options:\n"
1086 "\t-f\t\tremove existing destinations, never prompt\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001087 "\t-r or -R\tremove the contents of directories recursively"
Matt Kraaibf181b92000-07-16 20:57:15 +00001088#endif
1089 ;
1090#endif
1091
1092#if defined BB_RMDIR
1093const char rmdir_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001094 "rmdir [OPTION]... DIRECTORY..."
Matt Kraaibf181b92000-07-16 20:57:15 +00001095#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001096 "\n\nRemove the DIRECTORY(ies), if they are empty."
Matt Kraaibf181b92000-07-16 20:57:15 +00001097#endif
1098 ;
1099#endif
1100
1101#if defined BB_RMMOD
1102const char rmmod_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001103 "rmmod [OPTION]... [MODULE]..."
Matt Kraaibf181b92000-07-16 20:57:15 +00001104#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001105 "\n\nUnloads the specified kernel modules from the kernel.\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001106 "Options:\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001107 "\t-a\tTry to remove all unused kernel modules."
Matt Kraaibf181b92000-07-16 20:57:15 +00001108#endif
1109 ;
1110#endif
1111
Eric Andersene500d202000-11-29 21:38:11 +00001112#if defined BB_RPMUNPACK
1113const char rpmunpack_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001114 "rpmunpack < package.rpm | gunzip | cpio -idmuv"
Eric Andersene500d202000-11-29 21:38:11 +00001115#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001116 "\n\nExtracts an rpm archive."
Eric Andersene500d202000-11-29 21:38:11 +00001117#endif
1118 ;
1119#endif
1120
Matt Kraaibf181b92000-07-16 20:57:15 +00001121#if defined BB_SED
1122const char sed_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001123 "sed [-Vhnef] pattern [files...]"
Matt Kraaibf181b92000-07-16 20:57:15 +00001124#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001125 "\n\n"
Eric Andersen4d5ac2f2000-08-25 00:23:36 +00001126 "-n\t\tsuppress automatic printing of pattern space\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001127 "-e script\tadd the script to the commands to be executed\n"
1128 "-f scriptfile\tadd the contents of script-file to the commands to be executed\n"
Eric Andersen4d5ac2f2000-08-25 00:23:36 +00001129 "-h\t\tdisplay this help message\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001130 "\n"
1131 "If no -e or -f is given, the first non-option argument is taken as the\n"
1132 "sed script to interpret. All remaining arguments are names of input\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001133 "files; if no input files are specified, then the standard input is read."
Matt Kraaibf181b92000-07-16 20:57:15 +00001134#endif
1135 ;
1136#endif
1137
1138#if defined BB_SETKEYCODES
1139const char setkeycodes_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001140 "setkeycodes SCANCODE KEYCODE ..."
Matt Kraaibf181b92000-07-16 20:57:15 +00001141#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001142 "\n\nSet entries into the kernel's scancode-to-keycode map,\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001143 "allowing unusual keyboards to generate usable keycodes.\n\n"
1144 "SCANCODE may be either xx or e0xx (hexadecimal),\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001145 "and KEYCODE is given in decimal"
Matt Kraaibf181b92000-07-16 20:57:15 +00001146#endif
1147 ;
1148#endif
1149
1150#if defined BB_SH
1151const char shell_usage[] =
1152 "sh [FILE]...\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001153 " or: sh -c command [args]..."
Matt Kraaibf181b92000-07-16 20:57:15 +00001154#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001155 "\n\nlash: The BusyBox command interpreter (shell)."
Matt Kraaibf181b92000-07-16 20:57:15 +00001156#endif
1157 ;
1158#endif
1159
1160#if defined BB_SLEEP
1161const char sleep_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001162 "sleep N"
Matt Kraaibf181b92000-07-16 20:57:15 +00001163#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001164 "\n\nPause for N seconds."
Matt Kraaibf181b92000-07-16 20:57:15 +00001165#endif
1166 ;
1167#endif
1168
1169#if defined BB_SORT
1170const char sort_usage[] =
1171 "sort [-n]"
1172#ifdef BB_FEATURE_SORT_REVERSE
1173 " [-r]"
1174#endif
Eric Andersen965fa322001-01-20 21:45:57 +00001175 " [FILE]..."
Matt Kraaibf181b92000-07-16 20:57:15 +00001176#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001177 "\n\nSorts lines of text in the specified files"
Matt Kraaibf181b92000-07-16 20:57:15 +00001178#endif
1179 ;
1180#endif
1181
1182#if defined BB_SWAPONOFF
1183const char swapoff_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001184 "swapoff [OPTION] [device]"
Matt Kraaibf181b92000-07-16 20:57:15 +00001185#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001186 "\n\nStop swapping virtual memory pages on the given device.\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001187 "Options:\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001188 "\t-a\tStop swapping on all swap devices"
Matt Kraaibf181b92000-07-16 20:57:15 +00001189#endif
1190 ;
1191#endif
1192
1193#if defined BB_SWAPONOFF
1194const char swapon_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001195 "swapon [OPTION] [device]"
Matt Kraaibf181b92000-07-16 20:57:15 +00001196#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001197 "\n\nStart swapping virtual memory pages on the given device.\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001198 "Options:\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001199 "\t-a\tStart swapping on all swap devices"
Matt Kraaibf181b92000-07-16 20:57:15 +00001200#endif
1201 ;
1202#endif
1203
1204#if defined BB_SYNC
1205const char sync_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001206 "sync"
Matt Kraaibf181b92000-07-16 20:57:15 +00001207#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001208 "\n\nWrite all buffered filesystem blocks to disk."
Matt Kraaibf181b92000-07-16 20:57:15 +00001209#endif
1210 ;
1211#endif
1212
1213#if defined BB_SYSLOGD
1214const char syslogd_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001215 "syslogd [OPTION]..."
Matt Kraaibf181b92000-07-16 20:57:15 +00001216#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001217 "\n\nLinux system and kernel (provides klogd) logging utility.\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001218 "Note that this version of syslogd/klogd ignores /etc/syslog.conf.\n\n"
1219 "Options:\n"
1220 "\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n"
1221 "\t-n\t\tRun as a foreground process\n"
1222#ifdef BB_FEATURE_KLOGD
1223 "\t-K\t\tDo not start up the klogd process\n"
1224#endif
Eric Andersen965fa322001-01-20 21:45:57 +00001225 "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)"
Eric Andersenced2cef2000-07-20 23:41:24 +00001226#ifdef BB_FEATURE_REMOTE_LOG
Eric Andersen965fa322001-01-20 21:45:57 +00001227 "\n\t-R HOST[:PORT]\t\tLog remotely to IP or hostname on PORT (default PORT=514/UDP)\n"
1228 "\t-L\t\tLog locally as well as network logging (default is network only)"
Eric Andersenced2cef2000-07-20 23:41:24 +00001229#endif
Matt Kraaibf181b92000-07-16 20:57:15 +00001230#endif
1231 ;
1232#endif
1233
1234#if defined BB_TAIL
Matt Kraaibf181b92000-07-16 20:57:15 +00001235const char tail_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001236 "tail [OPTION]... [FILE]..."
Matt Kraaibf181b92000-07-16 20:57:15 +00001237#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001238 "\n\nPrint last 10 lines of each FILE to standard output.\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001239 "With more than one FILE, precede each with a header giving the\n"
1240 "file name. With no FILE, or when FILE is -, read standard input.\n\n"
1241 "Options:\n"
Eric Andersend5fa3e32000-08-02 16:42:58 +00001242#ifndef BB_FEATURE_SIMPLE_TAIL
Matt Kraai24ac0172000-12-18 21:38:57 +00001243 "\t-c N[kbm]\toutput the last N bytes\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001244#endif
Matt Kraai24ac0172000-12-18 21:38:57 +00001245 "\t-n N[kbm]\tprint last N lines instead of last 10\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001246 "\t-f\t\toutput data as the file grows"
Eric Andersend5fa3e32000-08-02 16:42:58 +00001247#ifndef BB_FEATURE_SIMPLE_TAIL
Eric Andersen965fa322001-01-20 21:45:57 +00001248 "\n\t-q\t\tnever output headers giving file names\n"
Matt Kraai24ac0172000-12-18 21:38:57 +00001249 "\t-s SEC\t\twait SEC seconds between reads with -f\n"
Eric Andersend5fa3e32000-08-02 16:42:58 +00001250 "\t-v\t\talways output headers giving file names\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001251 "If the first character of N (bytes or lines) is a `+', output begins with \n"
1252 "the Nth item from the start of each file, otherwise, print the last N items\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001253 "in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2)."
Eric Andersend5fa3e32000-08-02 16:42:58 +00001254//#else
1255// "\nIf the first character of N (bytes or lines) is a `+', output begins with \n"
Eric Andersen965fa322001-01-20 21:45:57 +00001256// "the Nth item from the start of each file."
Eric Andersend5fa3e32000-08-02 16:42:58 +00001257#endif
Matt Kraaibf181b92000-07-16 20:57:15 +00001258#endif
1259 ;
1260#endif
Matt Kraaibf181b92000-07-16 20:57:15 +00001261
1262#if defined BB_TAR
1263const char tar_usage[] =
1264#ifdef BB_FEATURE_TAR_CREATE
1265 "tar -[cxtvO] "
1266#else
1267 "tar -[xtvO] "
1268#endif
1269#if defined BB_FEATURE_TAR_EXCLUDE
Eric Andersenfdd51032000-08-02 18:48:26 +00001270 "[--exclude File] "
Eric Andersen8cede002000-12-04 18:51:09 +00001271 "[-X File]"
Matt Kraaibf181b92000-07-16 20:57:15 +00001272#endif
Eric Andersen965fa322001-01-20 21:45:57 +00001273 "[-f tarFile] [FILE(s)] ..."
Matt Kraaibf181b92000-07-16 20:57:15 +00001274#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001275 "\n\nCreate, extract, or list files from a tar file.\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001276 "Main operation mode:\n"
1277#ifdef BB_FEATURE_TAR_CREATE
1278 "\tc\t\tcreate\n"
1279#endif
1280 "\tx\t\textract\n"
1281 "\tt\t\tlist\n"
1282 "\nFile selection:\n"
1283 "\tf\t\tname of tarfile or \"-\" for stdin\n"
1284 "\tO\t\textract to stdout\n"
1285#if defined BB_FEATURE_TAR_EXCLUDE
Eric Andersenfdd51032000-08-02 18:48:26 +00001286 "\texclude\t\tfile to exclude\n"
Eric Andersen8cede002000-12-04 18:51:09 +00001287 "\tX\t\tfile with names to exclude\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001288#endif
1289 "\nInformative output:\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001290 "\tv\t\tverbosely list files processed"
Matt Kraaibf181b92000-07-16 20:57:15 +00001291#endif
1292 ;
1293#endif
1294
1295#if defined BB_TEE
1296const char tee_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001297 "tee [OPTION]... [FILE]..."
Matt Kraaibf181b92000-07-16 20:57:15 +00001298#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001299 "\n\nCopy standard input to each FILE, and also to standard output.\n\n"
1300 "Options:\n" "\t-a\tappend to the given FILEs, do not overwrite"
Matt Kraaibf181b92000-07-16 20:57:15 +00001301#endif
1302 ;
1303#endif
1304
1305#if defined BB_TELNET
1306const char telnet_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001307 "telnet host [port]"
Matt Kraaibf181b92000-07-16 20:57:15 +00001308#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001309 "\n\nTelnet is used to establish interactive communication with another\n"
1310 "computer over a network using the TELNET protocol."
Matt Kraaibf181b92000-07-16 20:57:15 +00001311#endif
1312 ;
1313#endif
1314
1315#if defined BB_TEST
1316const char test_usage[] =
1317 "test EXPRESSION\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001318 "or [ EXPRESSION ]"
Matt Kraaibf181b92000-07-16 20:57:15 +00001319#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001320 "\n\nChecks file types and compares values returning an exit\n"
1321 "code determined by the value of EXPRESSION."
Matt Kraaibf181b92000-07-16 20:57:15 +00001322#endif
1323 ;
1324#endif
1325
1326#if defined BB_TOUCH
1327const char touch_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001328 "touch [-c] file [file ...]"
Matt Kraaibf181b92000-07-16 20:57:15 +00001329#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001330 "\n\nUpdate the last-modified date on the given file[s].\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001331 "Options:\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001332 "\t-c\tDo not create any files"
Matt Kraaibf181b92000-07-16 20:57:15 +00001333#endif
1334 ;
1335#endif
1336
1337#if defined BB_TR
1338const char tr_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001339 "tr [-cds] STRING1 [STRING2]"
Matt Kraaibf181b92000-07-16 20:57:15 +00001340#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001341 "\n\nTranslate, squeeze, and/or delete characters from\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001342 "standard input, writing to standard output.\n\n"
1343 "Options:\n"
1344 "\t-c\ttake complement of STRING1\n"
1345 "\t-d\tdelete input characters coded STRING1\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001346 "\t-s\tsqueeze multiple output characters of STRING2 into one character"
Matt Kraaibf181b92000-07-16 20:57:15 +00001347#endif
1348 ;
1349#endif
1350
Matt Kraai2f46b662000-07-19 18:01:00 +00001351#if defined BB_TRUE_FALSE
1352const char true_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001353 "true"
Matt Kraai2f46b662000-07-19 18:01:00 +00001354#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001355 "\n\nReturn an exit code of TRUE (0)."
Matt Kraai2f46b662000-07-19 18:01:00 +00001356#endif
1357 ;
1358#endif
1359
Matt Kraaibf181b92000-07-16 20:57:15 +00001360#if defined BB_TTY
1361const char tty_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001362 "tty"
Matt Kraaibf181b92000-07-16 20:57:15 +00001363#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001364 "\n\nPrint the file name of the terminal connected to standard input.\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001365 "Options:\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001366 "\t-s\tprint nothing, only return an exit status"
Matt Kraaibf181b92000-07-16 20:57:15 +00001367#endif
1368 ;
1369#endif
1370
1371#if defined BB_UMOUNT
1372const char umount_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001373 "umount [flags] filesystem|directory"
Matt Kraaibf181b92000-07-16 20:57:15 +00001374#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001375 "\nUnmount file systems\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001376 "\nFlags:\n" "\t-a:\tUnmount all file systems"
1377#ifdef BB_MTAB
1378 " in /etc/mtab\n\t-n:\tDon't erase /etc/mtab entries\n"
1379#else
1380 "\n"
1381#endif
Eric Andersen965fa322001-01-20 21:45:57 +00001382 "\t-r:\tTry to remount devices as read-only if mount is busy"
Matt Kraaibf181b92000-07-16 20:57:15 +00001383#if defined BB_FEATURE_MOUNT_FORCE
Eric Andersen965fa322001-01-20 21:45:57 +00001384 "\n\t-f:\tForce filesystem umount (i.e. unreachable NFS server)"
Matt Kraaibf181b92000-07-16 20:57:15 +00001385#endif
1386#if defined BB_FEATURE_MOUNT_LOOP
Eric Andersen965fa322001-01-20 21:45:57 +00001387 "\n\t-l:\tDo not free loop device (if a loop device has been used)"
Matt Kraaibf181b92000-07-16 20:57:15 +00001388#endif
1389#endif
1390 ;
1391#endif
1392
1393#if defined BB_UNAME
1394const char uname_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001395 "uname [OPTION]..."
Matt Kraaibf181b92000-07-16 20:57:15 +00001396#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001397 "\n\nPrint certain system information. With no OPTION, same as -s.\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001398 "Options:\n"
1399 "\t-a\tprint all information\n"
1400 "\t-m\tthe machine (hardware) type\n"
1401 "\t-n\tprint the machine's network node hostname\n"
1402 "\t-r\tprint the operating system release\n"
1403 "\t-s\tprint the operating system name\n"
1404
1405 "\t-p\tprint the host processor type\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001406 "\t-v\tprint the operating system version"
Matt Kraaibf181b92000-07-16 20:57:15 +00001407#endif
1408 ;
1409#endif
1410
1411#if defined BB_UNIQ
1412const char uniq_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001413 "uniq [OPTION]... [INPUT [OUTPUT]]"
Matt Kraaibf181b92000-07-16 20:57:15 +00001414#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001415 "\n\nDiscard all but one of successive identical lines from INPUT\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001416 "(or standard input), writing to OUTPUT (or standard output).\n"
Eric Andersen5b5db382000-12-09 16:37:53 +00001417 "Options:\n"
1418 "\t-c\tprefix lines by the number of occurrences\n"
1419 "\t-d\tonly print duplicate lines\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001420 "\t-u\tonly print unique lines"
Matt Kraaibf181b92000-07-16 20:57:15 +00001421#endif
1422 ;
1423#endif
1424
Eric Andersencff3fe32000-09-20 19:22:26 +00001425#if defined BB_UNIX2DOS
1426const char unix2dos_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001427 "unix2dos < unixfile > dosfile"
Eric Andersencff3fe32000-09-20 19:22:26 +00001428#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001429 "\n\nConverts a text file from unix format to dos format."
Eric Andersencff3fe32000-09-20 19:22:26 +00001430#endif
1431 ;
1432#endif
1433
Matt Kraaibf181b92000-07-16 20:57:15 +00001434#if defined BB_UPDATE
1435const char update_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001436 "update [options]"
Matt Kraaibf181b92000-07-16 20:57:15 +00001437#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001438 "\n\nPeriodically flushes filesystem buffers.\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001439 "Options:\n"
1440 "\t-S\tforce use of sync(2) instead of flushing\n"
1441 "\t-s SECS\tcall sync this often (default 30)\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001442 "\t-f SECS\tflush some buffers this often (default 5)"
Matt Kraaibf181b92000-07-16 20:57:15 +00001443#endif
1444 ;
1445#endif
1446
Matt Kraai2f46b662000-07-19 18:01:00 +00001447#if defined BB_UPTIME
1448const char uptime_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001449 "uptime"
Matt Kraai2f46b662000-07-19 18:01:00 +00001450#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001451 "\n\nDisplay the time since the last boot."
Matt Kraai2f46b662000-07-19 18:01:00 +00001452#endif
1453 ;
1454#endif
1455
Matt Kraaibf181b92000-07-16 20:57:15 +00001456#if defined BB_USLEEP
1457const char usleep_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001458 "usleep N"
Matt Kraaibf181b92000-07-16 20:57:15 +00001459#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001460 "\n\nPause for N microseconds."
Matt Kraaibf181b92000-07-16 20:57:15 +00001461#endif
1462 ;
1463#endif
1464
1465#if defined BB_UUDECODE
1466const char uudecode_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001467 "uudecode [FILE]..."
Matt Kraaibf181b92000-07-16 20:57:15 +00001468#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001469 "\n\nUudecode a file that is uuencoded.\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001470 "Options:\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001471 "\t-o FILE\tdirect output to FILE"
Matt Kraaibf181b92000-07-16 20:57:15 +00001472#endif
1473 ;
1474#endif
1475
1476#if defined BB_UUENCODE
1477const char uuencode_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001478 "uuencode [OPTION] [INFILE] REMOTEFILE"
Matt Kraaibf181b92000-07-16 20:57:15 +00001479#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001480 "\n\nUuencode a file.\n\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001481 "Options:\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001482 "\t-m\tuse base64 encoding as of RFC1521"
Matt Kraaibf181b92000-07-16 20:57:15 +00001483#endif
1484 ;
1485#endif
1486
1487#if defined BB_WC
1488const char wc_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001489 "wc [OPTION]... [FILE]..."
Matt Kraaibf181b92000-07-16 20:57:15 +00001490#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001491 "\n\nPrint line, word, and byte counts for each FILE, and a total line if\n"
Matt Kraaibf181b92000-07-16 20:57:15 +00001492 "more than one FILE is specified. With no FILE, read standard input.\n\n"
1493 "Options:\n"
1494 "\t-c\tprint the byte counts\n"
1495 "\t-l\tprint the newline counts\n"
1496
1497 "\t-L\tprint the length of the longest line\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001498 "\t-w\tprint the word counts"
Matt Kraaibf181b92000-07-16 20:57:15 +00001499#endif
1500 ;
1501#endif
1502
Eric Andersen61a9d8d2000-09-04 15:16:51 +00001503#if defined BB_WGET
Eric Andersen965fa322001-01-20 21:45:57 +00001504const char wget_usage[] = "wget [-c] [-O file] url"
Eric Andersen61a9d8d2000-09-04 15:16:51 +00001505#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001506 "\n\nwget retrieves files via HTTP\n\n"
Eric Andersen61a9d8d2000-09-04 15:16:51 +00001507 "Options:\n"
1508 "\t-c\tcontinue retrieval of aborted transfers\n"
Eric Andersen965fa322001-01-20 21:45:57 +00001509 "\t-O\tsave to filename ('-' for stdout)"
Eric Andersen61a9d8d2000-09-04 15:16:51 +00001510#endif
1511 ;
1512#endif
1513
Matt Kraaibf181b92000-07-16 20:57:15 +00001514#if defined BB_WHICH
1515const char which_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001516 "which [COMMAND ...]"
Matt Kraaibf181b92000-07-16 20:57:15 +00001517#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001518 "\n\nLocates a COMMAND."
Matt Kraaibf181b92000-07-16 20:57:15 +00001519#endif
1520 ;
1521#endif
1522
1523#if defined BB_WHOAMI
1524const char whoami_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001525 "whoami"
Matt Kraaibf181b92000-07-16 20:57:15 +00001526#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001527 "\n\nPrints the user name associated with the current effective user id."
Matt Kraaibf181b92000-07-16 20:57:15 +00001528#endif
1529 ;
1530#endif
1531
Eric Andersen92a61c12000-09-22 20:01:23 +00001532#if defined BB_XARGS
Eric Andersen965fa322001-01-20 21:45:57 +00001533const char xargs_usage[] = "xargs [COMMAND] [ARGS...]"
Eric Andersen5b176932000-09-22 20:22:28 +00001534#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001535 "\n\nExecutes COMMAND on every item given by standard input."
Eric Andersen5b176932000-09-22 20:22:28 +00001536#endif
1537 ;
Eric Andersen92a61c12000-09-22 20:01:23 +00001538#endif
1539
Matt Kraaibf181b92000-07-16 20:57:15 +00001540#if defined BB_YES
1541const char yes_usage[] =
Eric Andersen965fa322001-01-20 21:45:57 +00001542 "yes [OPTION]... [STRING]..."
Matt Kraaibf181b92000-07-16 20:57:15 +00001543#ifndef BB_FEATURE_TRIVIAL_HELP
Eric Andersen965fa322001-01-20 21:45:57 +00001544 "\n\nRepeatedly outputs a line with all specified STRING(s), or `y'."
Matt Kraaibf181b92000-07-16 20:57:15 +00001545#endif
1546 ;
1547#endif
Mark Whitley60506182000-10-19 22:28:06 +00001548