blob: 56ea80d0886c7a2035197b25326f5c386b8754b1 [file] [log] [blame]
Matt Kraaibf181b92000-07-16 20:57:15 +00001#include "internal.h"
2
3#if defined BB_AR
4const char ar_usage[] =
5 "ar [optxvV] archive [filenames] \n"
6#ifndef BB_FEATURE_TRIVIAL_HELP
7 "\nExtract or list files from an ar archive.\n\n"
8 "Options:\n"
9 "\to\t\tpreserve original dates\n"
10 "\tp\t\textract to stdout\n"
11 "\tt\t\tlist\n"
12 "\tx\t\textract\n"
13 "\tv\t\tverbosely list files processed\n"
14#endif
15 ;
16#endif
17
18#if defined BB_BASENAME
19const char basename_usage[] =
20 "basename FILE [SUFFIX]\n"
21#ifndef BB_FEATURE_TRIVIAL_HELP
22 "\nStrips directory path and suffixes from FILE.\n"
23 "If specified, also removes any trailing SUFFIX.\n"
24#endif
25 ;
26#endif
27
28#if defined BB_CAT
29const char cat_usage[] =
30 "cat [FILE]...\n"
31#ifndef BB_FEATURE_TRIVIAL_HELP
32 "\nConcatenates FILE(s) and prints them to stdout.\n"
33#endif
34 ;
35#endif
36
37#if defined BB_CHMOD_CHOWN_CHGRP
38const char chgrp_usage[] =
39 "chgrp [OPTION]... GROUP FILE...\n"
40#ifndef BB_FEATURE_TRIVIAL_HELP
41 "\nChange the group membership of each FILE to GROUP.\n"
42 "\nOptions:\n\t-R\tChanges files and directories recursively.\n"
43#endif
44 ;
45#endif
46
47#if defined BB_CHMOD_CHOWN_CHGRP
48const char chmod_usage[] =
49 "chmod [-R] MODE[,MODE]... FILE...\n"
50#ifndef BB_FEATURE_TRIVIAL_HELP
51 "\nEach MODE is one or more of the letters ugoa, one of the symbols +-= and\n"
52 "one or more of the letters rwxst.\n\n"
53 "\nOptions:\n\t-R\tChanges files and directories recursively.\n"
54#endif
55 ;
56#endif
57
58#if defined BB_CHMOD_CHOWN_CHGRP
59const char chown_usage[] =
60 "chown [OPTION]... OWNER[<.|:>[GROUP] FILE...\n"
61#ifndef BB_FEATURE_TRIVIAL_HELP
62 "\nChange the owner and/or group of each FILE to OWNER and/or GROUP.\n"
63 "\nOptions:\n\t-R\tChanges files and directories recursively.\n"
64#endif
65 ;
66#endif
67
68#if defined BB_CHROOT
69const char chroot_usage[] =
70 "chroot NEWROOT [COMMAND...]\n"
71#ifndef BB_FEATURE_TRIVIAL_HELP
72 "\nRun COMMAND with root directory set to NEWROOT.\n"
73#endif
74 ;
75#endif
76
77#if defined BB_CHVT
78const char chvt_usage[] =
79 "chvt N\n"
80#ifndef BB_FEATURE_TRIVIAL_HELP
81 "\nChanges the foreground virtual terminal to /dev/ttyN\n"
82#endif
83 ;
84#endif
85
Matt Kraai2f46b662000-07-19 18:01:00 +000086#if defined BB_CLEAR
87const char clear_usage[] =
88 "clear\n"
89#ifndef BB_FEATURE_TRIVIAL_HELP
90 "\nClear screen.\n"
91#endif
92 ;
93#endif
94
Matt Kraaibf181b92000-07-16 20:57:15 +000095#if defined BB_CP_MV
96const char cp_usage[] =
97 "cp [OPTION]... SOURCE DEST\n"
98 " or: cp [OPTION]... SOURCE... DIRECTORY\n"
99#ifndef BB_FEATURE_TRIVIAL_HELP
100 "\nCopies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n"
101 "\n"
102 "\t-a\tSame as -dpR\n"
103 "\t-d\tPreserves links\n"
104 "\t-p\tPreserves file attributes if possible\n"
105 "\t-f\tforce (implied; ignored) - always set\n"
106 "\t-R\tCopies directories recursively\n"
107#endif
108 ;
109#endif
110
111#if defined BB_CUT
112const char cut_usage[] =
113 "cut [OPTION]... [FILE]...\n"
114#ifndef BB_FEATURE_TRIVIAL_HELP
115 "\nPrints selected fields from each input FILE to standard output.\n\n"
116 "Options:\n"
117 "\t-b LIST\tOutput only bytes from LIST\n"
118 "\t-c LIST\tOutput only characters from LIST\n"
119 "\t-d CHAR\tUse CHAR instead of tab as the field delimiter\n"
120 "\t-s\tOnly output Lines if the include DELIM\n"
121 "\t-f N\tPrint only these fields\n"
122 "\t-n\tIgnored\n"
123#endif
124 ;
125#endif
126
127#if defined BB_DATE
128const char date_usage[] =
129 "date [OPTION]... [+FORMAT]\n"
130 " or: date [OPTION] [MMDDhhmm[[CC]YY][.ss]]\n"
131#ifndef BB_FEATURE_TRIVIAL_HELP
132 "\nDisplays the current time in the given FORMAT, or sets the system date.\n"
133 "\nOptions:\n\t-R\tOutputs RFC-822 compliant date string\n"
134 "\t-s\tSets time described by STRING\n"
135 "\t-u\tPrints or sets Coordinated Universal Time\n"
136#endif
137 ;
138#endif
139
140#if defined BB_DC
141const char dc_usage[] =
142 "dc expression ...\n"
143#ifndef BB_FEATURE_TRIVIAL_HELP
144 "\nThis is a Tiny RPN calculator that understands the\n"
145 "following operations: +, -, /, *, and, or, not, eor.\n"
146 "i.e. 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16\n"
147#endif
148 ;
149#endif
150
151#if defined BB_DD
152const char dd_usage[] =
153 "dd [if=FILE] [of=FILE] [bs=N] [count=N] [skip=N] [seek=N]\n"
154#ifndef BB_FEATURE_TRIVIAL_HELP
155 "\nCopy a file, converting and formatting according to options\n\n"
156 "\tif=FILE\tread from FILE instead of stdin\n"
157 "\tof=FILE\twrite to FILE instead of stdout\n"
158 "\tbs=N\tread and write N bytes at a time\n"
159 "\tcount=N\tcopy only N input blocks\n"
160 "\tskip=N\tskip N input blocks\n"
161 "\tseek=N\tskip N output blocks\n"
162 "\n"
163 "Numbers may be suffixed by w (x2), k (x1024), b (x512), or M (x1024^2)\n"
164#endif
165 ;
166#endif
167
168#if defined BB_DEALLOCVT
169const char deallocvt_usage[] =
170 "deallocvt N\n"
171#ifndef BB_FEATURE_TRIVIAL_HELP
172 "\nDeallocate unused virtual terminal /dev/ttyN\n"
173#endif
174 ;
175#endif
176
177#if defined BB_DF
178const char df_usage[] =
179 "df [filesystem ...]\n"
180#ifndef BB_FEATURE_TRIVIAL_HELP
181 "\nPrint the filesystem space used and space available.\n"
182#endif
183 ;
184#endif
185
186#if defined BB_DIRNAME
187const char dirname_usage[] =
188 "dirname [FILENAME ...]\n"
189#ifndef BB_FEATURE_TRIVIAL_HELP
190 "\nStrips non-directory suffix from FILENAME\n"
191#endif
192 ;
193#endif
194
195#if defined BB_DMESG
196const char dmesg_usage[] =
197 "dmesg [-c] [-n LEVEL] [-s SIZE]\n"
198#ifndef BB_FEATURE_TRIVIAL_HELP
199 "\nPrints or controls the kernel ring buffer\n\n"
200 "Options:\n"
201 "\t-c\t\tClears the ring buffer's contents after printing\n"
202 "\t-n LEVEL\tSets console logging level\n"
203 "\t-s SIZE\t\tUse a buffer of size SIZE\n"
204#endif
205 ;
206#endif
207
208#if defined BB_DU
209const char du_usage[] =
210 "du [OPTION]... [FILE]...\n"
211#ifndef BB_FEATURE_TRIVIAL_HELP
212 "\nSummarizes disk space used for each FILE and/or directory.\n"
213 "Disk space is printed in units of 1024 bytes.\n\n"
214 "Options:\n"
215 "\t-l\tcount sizes many times if hard linked\n"
216 "\t-s\tdisplay only a total for each argument\n"
217#endif
218 ;
219#endif
220
221#if defined BB_DUMPKMAP
222const char dumpkmap_usage[] =
223 "dumpkmap\n"
224#ifndef BB_FEATURE_TRIVIAL_HELP
225 "\nPrints out a binary keyboard translation table to standard input.\n"
226#endif
227 ;
228#endif
229
230#if defined BB_DUTMP
231const char dutmp_usage[] =
232 "dutmp [FILE]\n"
233#ifndef BB_FEATURE_TRIVIAL_HELP
234 "\nDump utmp file format (pipe delimited) from FILE\n"
235 "or stdin to stdout. (i.e. 'dutmp /var/run/utmp')\n"
236#endif
237 ;
238#endif
239
240#if defined BB_ECHO
241const char echo_usage[] =
242 "echo [-neE] [ARG ...]\n"
243#ifndef BB_FEATURE_TRIVIAL_HELP
244 "\nPrints the specified ARGs to stdout\n\n"
245 "Options:\n"
246 "\t-n\tsuppress trailing newline\n"
247 "\t-e\tinterpret backslash-escaped characters (i.e. \\t=tab etc)\n"
248 "\t-E\tdisable interpretation of backslash-escaped characters\n"
249#endif
250 ;
251#endif
252
Matt Kraai2f46b662000-07-19 18:01:00 +0000253#if defined BB_TRUE_FALSE
254const char false_usage[] =
255 "false\n"
256#ifndef BB_FEATURE_TRIVIAL_HELP
257 "\nReturn an exit code of FALSE (1).\n"
258#endif
259 ;
260#endif
261
Matt Kraaibf181b92000-07-16 20:57:15 +0000262#if defined BB_FDFLUSH
263const char fdflush_usage[] =
264 "fdflush DEVICE\n"
265#ifndef BB_FEATURE_TRIVIAL_HELP
266 "\nForces floppy disk drive to detect disk change\n"
267#endif
268 ;
269#endif
270
271#if defined BB_FIND
272const char find_usage[] =
273 "find [PATH...] [EXPRESSION]\n"
274#ifndef BB_FEATURE_TRIVIAL_HELP
275 "\nSearch for files in a directory hierarchy. The default PATH is\n"
276 "the current directory; default EXPRESSION is '-print'\n\n"
277 "\nEXPRESSION may consist of:\n"
278 "\t-follow\t\tDereference symbolic links.\n"
279 "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN.\n"
280 "\t-print\t\tprint the full file name followed by a newline to stdout.\n"
281#endif
282 ;
283#endif
284
285#if defined BB_FREE
286const char free_usage[] =
287 "free\n"
288#ifndef BB_FEATURE_TRIVIAL_HELP
289 "\nDisplays the amount of free and used system memory\n"
290#endif
291 ;
292#endif
293
294#if defined BB_FREERAMDISK
295const char freeramdisk_usage[] =
296 "freeramdisk DEVICE\n"
297#ifndef BB_FEATURE_TRIVIAL_HELP
298 "\nFrees all memory used by the specified ramdisk.\n"
299#endif
300 ;
301#endif
302
303#if defined BB_FSCK_MINIX
304const char fsck_minix_usage[] =
305 "Usage: fsck.minix [-larvsmf] /dev/name\n"
306#ifndef BB_FEATURE_TRIVIAL_HELP
307 "\nPerforms a consistency check for MINIX filesystems.\n\n"
308 "Options:\n"
309 "\t-l\tLists all filenames\n"
310 "\t-r\tPerform interactive repairs\n"
311 "\t-a\tPerform automatic repairs\n"
312 "\t-v\tverbose\n"
313 "\t-s\tOutputs super-block information\n"
314 "\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n"
315 "\t-f\tForce file system check.\n\n"
316#endif
317 ;
318#endif
319
320#if defined BB_GREP
321const char grep_usage[] =
322 "grep [-ihHnqvs] pattern [files...]\n"
323#ifndef BB_FEATURE_TRIVIAL_HELP
324 "\nSearch for PATTERN in each FILE or standard input.\n\n"
325 "Options:\n"
326 "\t-H\tprefix output lines with filename where match was found\n"
327 "\t-h\tsuppress the prefixing filename on output\n"
328 "\t-i\tignore case distinctions\n"
329 "\t-n\tprint line number with output lines\n"
330 "\t-q\tbe quiet. Returns 0 if result was found, 1 otherwise\n"
331 "\t-v\tselect non-matching lines\n"
332 "\t-s\tsuppress file open/read error messages\n\n"
333#endif
334 ;
335#endif
336
337#if defined BB_GUNZIP
338const char gunzip_usage[] =
339 "gunzip [OPTION]... FILE\n"
340#ifndef BB_FEATURE_TRIVIAL_HELP
341 "\nUncompress FILE (or standard input if FILE is '-').\n\n"
342 "Options:\n"
343 "\t-c\tWrite output to standard output\n"
344 "\t-t\tTest compressed file integrity\n"
345#endif
346 ;
347#endif
348
349#if defined BB_GZIP
350const char gzip_usage[] =
351 "gzip [OPTION]... FILE\n"
352#ifndef BB_FEATURE_TRIVIAL_HELP
353 "\nCompress FILE with maximum compression.\n"
354 "When FILE is '-', reads standard input. Implies -c.\n\n"
355 "Options:\n"
356 "\t-c\tWrite output to standard output instead of FILE.gz\n"
357#endif
358 ;
359#endif
360
Matt Kraai2f46b662000-07-19 18:01:00 +0000361#if defined BB_HALT
362const char halt_usage[] =
363 "halt\n"
364#ifndef BB_FEATURE_TRIVIAL_HELP
365 "\nHalt the system.\n"
366#endif
367 ;
368
Matt Kraaibf181b92000-07-16 20:57:15 +0000369#if defined BB_HEAD
370const char head_usage[] =
371 "head [OPTION] [FILE]...\n"
372#ifndef BB_FEATURE_TRIVIAL_HELP
373 "\nPrint first 10 lines of each FILE to standard output.\n"
374 "With more than one FILE, precede each with a header giving the\n"
375 "file name. With no FILE, or when FILE is -, read standard input.\n\n"
376
377 "Options:\n" "\t-n NUM\t\tPrint first NUM lines instead of first 10\n"
378#endif
379 ;
380#endif
381
Matt Kraai2f46b662000-07-19 18:01:00 +0000382#if defined BB_HOSTID
383const char hostid_usage[] =
384 "hostid\n"
385#ifndef BB_FEATURE_TRIVIAL_HELP
386 "\nPrint out a unique 32-bit identifier for the machine.\n"
387#endif
388 ;
389#endif
390
Matt Kraaibf181b92000-07-16 20:57:15 +0000391#if defined BB_HOSTNAME
392const char hostname_usage[] =
393 "hostname [OPTION] {hostname | -F file}\n"
394#ifndef BB_FEATURE_TRIVIAL_HELP
395 "\nGet or set the hostname or DNS domain name. If a hostname is given\n"
396 "(or a file with the -F parameter), the host name will be set.\n\n"
397 "Options:\n"
398 "\t-s\t\tShort\n"
399
400 "\t-i\t\tAddresses for the hostname\n"
401 "\t-d\t\tDNS domain name\n"
402 "\t-F FILE\t\tUse the contents of FILE to specify the hostname\n"
403#endif
404 ;
405#endif
406
407#if defined BB_ID
408const char id_usage[] =
409 "id [OPTIONS]... [USERNAME]\n"
410#ifndef BB_FEATURE_TRIVIAL_HELP
411 "\nPrint information for USERNAME or the current user\n\n"
412 "Options:\n"
413 "\t-g\tprints only the group ID\n"
414 "\t-u\tprints only the user ID\n"
415 "\t-r\tprints the real user ID instead of the effective ID (with -ug)\n\n"
416#endif
417 ;
418#endif
419
420#if defined BB_INSMOD
421const char insmod_usage[] =
422 "insmod [OPTION]... MODULE [symbol=value]...\n"
423#ifndef BB_FEATURE_TRIVIAL_HELP
424 "\nLoads the specified kernel modules into the kernel.\n\n"
425 "Options:\n"
426 "\t-f\tForce module to load into the wrong kernel version.\n"
427 "\t-k\tMake module autoclean-able.\n"
428 "\t-v\tverbose output\n" "\t-x\tdo not export externs\n"
429#endif
430 ;
431#endif
432
433#if defined BB_KILL
434const char kill_usage[] =
435 "kill [-signal] process-id [process-id ...]\n"
436#ifndef BB_FEATURE_TRIVIAL_HELP
437 "\nSend a signal (default is SIGTERM) to the specified process(es).\n\n"
438 "Options:\n" "\t-l\tList all signal names and numbers.\n\n"
439#endif
440 ;
441#endif
442
443#if defined BB_KILLALL
444const char killall_usage[] =
445 "killall [-signal] process-name [process-name ...]\n"
446#ifndef BB_FEATURE_TRIVIAL_HELP
447 "\nSend a signal (default is SIGTERM) to the specified process(es).\n\n"
448 "Options:\n" "\t-l\tList all signal names and numbers.\n\n"
449#endif
450 ;
451#endif
452
453#if defined BB_LENGTH
454const char length_usage[] =
455 "length STRING\n"
456#ifndef BB_FEATURE_TRIVIAL_HELP
457 "\nPrints out the length of the specified STRING.\n"
458#endif
459 ;
460#endif
461
462#if defined BB_LN
463const char ln_usage[] =
464 "ln [OPTION] TARGET... LINK_NAME|DIRECTORY\n"
465#ifndef BB_FEATURE_TRIVIAL_HELP
466 "\nCreate a link named LINK_NAME or DIRECTORY to the specified TARGET\n"
467 "\nYou may use '--' to indicate that all following arguments are non-options.\n\n"
468 "Options:\n"
469 "\t-s\tmake symbolic links instead of hard links\n"
470
471 "\t-f\tremove existing destination files\n"
472 "\t-n\tno dereference symlinks - treat like normal file\n"
473#endif
474 ;
475#endif
476
477#if defined BB_LOADACM
478const char loadacm_usage[] =
479 "loadacm\n"
480#ifndef BB_FEATURE_TRIVIAL_HELP
481 "\nLoads an acm from standard input.\n"
482#endif
483 ;
484#endif
485
486#if defined BB_LOADFONT
487const char loadfont_usage[] =
488 "loadfont\n"
489#ifndef BB_FEATURE_TRIVIAL_HELP
490 "Loads a console font from standard input.\n"
491#endif
492 ;
493#endif
494
495#if defined BB_LOADKMAP
496const char loadkmap_usage[] =
497 "loadkmap\n"
498#ifndef BB_FEATURE_TRIVIAL_HELP
499 "\nLoads a binary keyboard translation table from standard input.\n"
500#endif
501 ;
502#endif
503
504#if defined BB_LOGGER
505const char logger_usage[] =
506 "logger [OPTION]... [MESSAGE]\n"
507#ifndef BB_FEATURE_TRIVIAL_HELP
508 "\nWrite MESSAGE to the system log. If MESSAGE is '-', log stdin.\n\n"
509 "Options:\n"
510 "\t-s\tLog to stderr as well as the system log.\n"
511 "\t-t\tLog using the specified tag (defaults to user name).\n"
512
513 "\t-p\tEnter the message with the specified priority.\n"
514 "\t\tThis may be numerical or a ``facility.level'' pair.\n"
515#endif
516 ;
517#endif
518
519#if defined BB_LOGNAME
520const char logname_usage[] =
521 "logname\n"
522#ifndef BB_FEATURE_TRIVIAL_HELP
523 "\nPrint the name of the current user.\n"
524#endif
525 ;
526#endif
527
528#if defined BB_LS
529const char ls_usage[] =
530 "ls [-1a"
531#ifdef BB_FEATURE_LS_TIMESTAMPS
532 "c"
533#endif
534 "d"
535#ifdef BB_FEATURE_LS_TIMESTAMPS
536 "e"
537#endif
538 "ln"
539#ifdef BB_FEATURE_LS_FILETYPES
540 "p"
541#endif
542#ifdef BB_FEATURE_LS_TIMESTAMPS
543 "u"
544#endif
545 "xAC"
546#ifdef BB_FEATURE_LS_FILETYPES
547 "F"
548#endif
549#ifdef BB_FEATURE_LS_RECURSIVE
550 "R"
551#endif
552 "] [filenames...]\n"
553#ifndef BB_FEATURE_TRIVIAL_HELP
554 "\nList directory contents\n\n"
555 "Options:\n"
556 "\t-a\tdo not hide entries starting with .\n"
557#ifdef BB_FEATURE_LS_TIMESTAMPS
558 "\t-c\twith -l: show ctime (the time of last\n"
559 "\t\tmodification of file status information)\n"
560#endif
561 "\t-d\tlist directory entries instead of contents\n"
562#ifdef BB_FEATURE_LS_TIMESTAMPS
563 "\t-e\tlist both full date and full time\n"
564#endif
565 "\t-l\tuse a long listing format\n"
566 "\t-n\tlist numeric UIDs and GIDs instead of names\n"
567#ifdef BB_FEATURE_LS_FILETYPES
568 "\t-p\tappend indicator (one of /=@|) to entries\n"
569#endif
570#ifdef BB_FEATURE_LS_TIMESTAMPS
571 "\t-u\twith -l: show access time (the time of last\n"
572 "\t\taccess of the file)\n"
573#endif
574 "\t-x\tlist entries by lines instead of by columns\n"
575 "\t-A\tdo not list implied . and ..\n"
576 "\t-C\tlist entries by columns\n"
577#ifdef BB_FEATURE_LS_FILETYPES
578 "\t-F\tappend indicator (one of */=@|) to entries\n"
579#endif
580#ifdef BB_FEATURE_LS_RECURSIVE
581 "\t-R\tlist subdirectories recursively\n"
582#endif
583#endif
584 ;
585#endif
586
Matt Kraai2f46b662000-07-19 18:01:00 +0000587#if defined BB_LSMOD
588const char lsmod_usage[] =
589 "lsmod\n"
590#ifndef BB_FEATURE_TRIVIAL_HELP
591 "\nList the currently loaded kernel modules.\n"
592#endif
593 ;
594#endif
595
Matt Kraaibf181b92000-07-16 20:57:15 +0000596#if defined BB_MAKEDEVS
597const char makedevs_usage[] =
598 "makedevs NAME TYPE MAJOR MINOR FIRST LAST [s]\n"
599#ifndef BB_FEATURE_TRIVIAL_HELP
600 "\nCreates a range of block or character special files\n\n"
601 "TYPEs include:\n"
602 "\tb:\tMake a block (buffered) device.\n"
603 "\tc or u:\tMake a character (un-buffered) device.\n"
604 "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes.\n\n"
605 "FIRST specifies the number appended to NAME to create the first device.\n"
606 "LAST specifies the number of the last item that should be created.\n"
607 "If 's' is the last argument, the base device is created as well.\n\n"
608 "For example:\n"
609 "\tmakedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63\n"
610 "\tmakedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8\n"
611#endif
612 ;
613#endif
614
615#if defined BB_MD5SUM
616const char md5sum_usage[] =
617 "md5sum [OPTION] [FILE]...\n"
618 "or: md5sum [OPTION] -c [FILE]\n"
619#ifndef BB_FEATURE_TRIVIAL_HELP
620 "\nPrint or check MD5 checksums.\n\n"
621 "Options:\n"
622 "With no FILE, or when FILE is -, read standard input.\n\n"
623 "\t-b\tread files in binary mode\n"
624 "\t-c\tcheck MD5 sums against given list\n"
625 "\t-t\tread files in text mode (default)\n"
626 "\t-g\tread a string\n"
627 "\nThe following two options are useful only when verifying checksums:\n"
628 "\t-s,\tdon't output anything, status code shows success\n"
629 "\t-w,\twarn about improperly formated MD5 checksum lines\n"
630#endif
631 ;
632#endif
633
634#if defined BB_MKDIR
635const char mkdir_usage[] =
636 "mkdir [OPTION] DIRECTORY...\n"
637#ifndef BB_FEATURE_TRIVIAL_HELP
638 "\nCreate the DIRECTORY(ies), if they do not already exist\n\n"
639 "Options:\n"
640
641 "\t-m\tset permission mode (as in chmod), not rwxrwxrwx - umask\n"
642 "\t-p\tno error if existing, make parent directories as needed\n"
643#endif
644 ;
645#endif
646
647#if defined BB_MKFIFO
648const char mkfifo_usage[] =
649 "mkfifo [OPTIONS] name\n"
650#ifndef BB_FEATURE_TRIVIAL_HELP
651 "\nCreates a named pipe (identical to 'mknod name p')\n\n"
652 "Options:\n"
653 "\t-m\tcreate the pipe using the specified mode (default a=rw)\n"
654#endif
655 ;
656#endif
657
658#if defined BB_MKFS_MINIX
659const char mkfs_minix_usage[] =
660 "mkfs.minix [-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]\n"
661#ifndef BB_FEATURE_TRIVIAL_HELP
662 "\nMake a MINIX filesystem.\n\n"
663 "Options:\n"
664 "\t-c\t\tCheck the device for bad blocks\n"
665 "\t-n [14|30]\tSpecify the maximum length of filenames\n"
666 "\t-i INODES\tSpecify the number of inodes for the filesystem\n"
667 "\t-l FILENAME\tRead the bad blocks list from FILENAME\n"
668 "\t-v\t\tMake a Minix version 2 filesystem\n\n"
669#endif
670 ;
671#endif
672
673#if defined BB_MKNOD
674const char mknod_usage[] =
675 "mknod [OPTIONS] NAME TYPE MAJOR MINOR\n"
676#ifndef BB_FEATURE_TRIVIAL_HELP
677 "\nCreate a special file (block, character, or pipe).\n\n"
678 "Options:\n"
679 "\t-m\tcreate the special file using the specified mode (default a=rw)\n\n"
680 "TYPEs include:\n"
681 "\tb:\tMake a block (buffered) device.\n"
682 "\tc or u:\tMake a character (un-buffered) device.\n"
683 "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes.\n"
684#endif
685 ;
686#endif
687
688#if defined BB_MKSWAP
689const char mkswap_usage[] =
690 "mkswap [-c] [-v0|-v1] device [block-count]\n"
691#ifndef BB_FEATURE_TRIVIAL_HELP
692 "\nPrepare a disk partition to be used as a swap partition.\n\n"
693 "Options:\n" "\t-c\t\tCheck for read-ability.\n"
694 "\t-v0\t\tMake version 0 swap [max 128 Megs].\n"
695 "\t-v1\t\tMake version 1 swap [big!] (default for kernels > 2.1.117).\n"
696
697 "\tblock-count\tNumber of block to use (default is entire partition).\n"
698#endif
699 ;
700#endif
701
702#if defined BB_MKTEMP
703const char mktemp_usage[] =
704 "mktemp [-q] TEMPLATE\n"
705#ifndef BB_FEATURE_TRIVIAL_HELP
706 "\nCreates a temporary file with its name based on TEMPLATE.\n"
707 "TEMPLATE is any name with six `Xs' (i.e. /tmp/temp.XXXXXX).\n"
708#endif
709 ;
710#endif
711
712#if defined BB_MORE
713const char more_usage[] =
714 "more [FILE ...]\n"
715#ifndef BB_FEATURE_TRIVIAL_HELP
716 "\nMore is a filter for viewing FILE one screenful at a time.\n"
717#endif
718 ;
719#endif
720
721#if defined BB_MOUNT
722const char mount_usage[] =
723 "mount [flags] device directory [-o options,more-options]\n"
724#ifndef BB_FEATURE_TRIVIAL_HELP
725 "\nMount a filesystem\n\n"
726 "Flags:\n"
727 "\t-a:\t\tMount all filesystems in fstab.\n"
728#ifdef BB_MTAB
729 "\t-f:\t\t\"Fake\" mount. Add entry to mount table but don't mount it.\n"
730 "\t-n:\t\tDon't write a mount table entry.\n"
731#endif
732 "\t-o option:\tOne of many filesystem options, listed below.\n"
733 "\t-r:\t\tMount the filesystem read-only.\n"
734 "\t-t fs-type:\tSpecify the filesystem type.\n"
735 "\t-w:\t\tMount for reading and writing (default).\n"
736 "\n"
737 "Options for use with the \"-o\" flag:\n"
738 "\tasync/sync:\tWrites are asynchronous / synchronous.\n"
739 "\tatime/noatime:\tEnable / disable updates to inode access times.\n"
740 "\tdev/nodev:\tAllow use of special device files / disallow them.\n"
741 "\texec/noexec:\tAllow use of executable files / disallow them.\n"
742#if defined BB_FEATURE_MOUNT_LOOP
743 "\tloop:\t\tMounts a file via loop device.\n"
744#endif
745 "\tsuid/nosuid:\tAllow set-user-id-root programs / disallow them.\n"
746 "\tremount:\tRe-mount a currently-mounted filesystem, changing its flags.\n"
747 "\tro/rw:\t\tMount for read-only / read-write.\n"
748 "\nThere are EVEN MORE flags that are specific to each filesystem.\n"
749 "You'll have to see the written documentation for those.\n"
750#endif
751 ;
752#endif
753
754#if defined BB_MT
755const char mt_usage[] =
756 "mt [-f device] opcode value\n"
757#ifndef BB_FEATURE_TRIVIAL_HELP
758 "\nControl magnetic tape drive operation\n"
759#endif
760 ;
761#endif
762
763#if defined BB_CP_MV
764const char mv_usage[] =
765 "mv SOURCE DEST\n"
766 " or: mv SOURCE... DIRECTORY\n"
767#ifndef BB_FEATURE_TRIVIAL_HELP
768 "\nRename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.\n"
769#endif
770 ;
771#endif
772
773#if defined BB_NC
774const char nc_usage[] =
775 "nc [IP] [port]\n"
776#ifndef BB_FEATURE_TRIVIAL_HELP
777 "\nNetcat opens a pipe to IP:port\n"
778#endif
779 ;
780#endif
781
782#if defined BB_NSLOOKUP
783const char nslookup_usage[] =
784 "nslookup [HOST]\n"
785#ifndef BB_FEATURE_TRIVIAL_HELP
786 "\nQueries the nameserver for the IP address of the given HOST\n"
787#endif
788;
789#endif
790
791#if defined BB_PING
792#if defined BB_FEATURE_SIMPLE_PING
793const char ping_usage[] =
794 "ping host\n"
795#ifndef BB_FEATURE_TRIVIAL_HELP
796 "\nSend ICMP ECHO_REQUEST packets to network hosts\n"
797#endif
798 ;
799#else /* ! defined BB_FEATURE_SIMPLE_PING */
800const char ping_usage[] =
801 "ping [OPTION]... host\n"
802#ifndef BB_FEATURE_TRIVIAL_HELP
803 "\nSend ICMP ECHO_REQUEST packets to network hosts.\n\n"
804 "Options:\n"
805 "\t-c COUNT\tSend only COUNT pings.\n"
806 "\t-s SIZE\t\tSend SIZE data bytes in packets (default=56).\n"
807 "\t-q\t\tQuiet mode, only displays output at start\n"
808 "\t\t\tand when finished.\n"
809#endif
810 ;
811#endif
812#endif
813
Matt Kraai2f46b662000-07-19 18:01:00 +0000814#if defined BB_POWEROFF
815const char poweroff_usage[] =
816 "poweroff\n"
817#ifndef BB_FEATURE_TRIVIAL_HELP
818 "\nHalt the system and request that the kernel shut off the power.\n"
819#endif
820 ;
821#endif
822
Matt Kraaibf181b92000-07-16 20:57:15 +0000823#if defined BB_PRINTF
824const char printf_usage[] =
825 "printf FORMAT [ARGUMENT...]\n"
826#ifndef BB_FEATURE_TRIVIAL_HELP
827 "\nFormats and prints ARGUMENT(s) according to FORMAT,\n"
828 "Where FORMAT controls the output exactly as in C printf.\n"
829#endif
830 ;
831#endif
832
833#if defined BB_PS
834const char ps_usage[] =
835 "ps\n"
836#ifndef BB_FEATURE_TRIVIAL_HELP
837 "\nReport process status\n"
838 "\nThis version of ps accepts no options.\n"
839#endif
840 ;
841#endif
842
Matt Kraai2f46b662000-07-19 18:01:00 +0000843#if defined BB_PWD
844const char pwd_usage[] =
845 "pwd\n"
846#ifndef BB_FEATURE_TRIVIAL_HELP
847 "\nPrint the full filename of the current working directory.\n"
848#endif
849 ;
850#endif
851
852#if defined BB_REBOOT
853const char reboot_usage[] =
854 "reboot\n"
855#ifndef BB_FEATURE_TRIVIAL_HELP
856 "\nReboot the system.\n"
857#endif
858 ;
859#endif
860
Matt Kraaibf181b92000-07-16 20:57:15 +0000861#if defined BB_RM
862const char rm_usage[] =
863 "rm [OPTION]... FILE...\n"
864#ifndef BB_FEATURE_TRIVIAL_HELP
865 "\nRemove (unlink) the FILE(s). You may use '--' to\n"
866 "indicate that all following arguments are non-options.\n\n"
867 "Options:\n"
868 "\t-f\t\tremove existing destinations, never prompt\n"
869 "\t-r or -R\tremove the contents of directories recursively\n"
870#endif
871 ;
872#endif
873
874#if defined BB_RMDIR
875const char rmdir_usage[] =
876 "rmdir [OPTION]... DIRECTORY...\n"
877#ifndef BB_FEATURE_TRIVIAL_HELP
878 "\nRemove the DIRECTORY(ies), if they are empty.\n"
879#endif
880 ;
881#endif
882
883#if defined BB_RMMOD
884const char rmmod_usage[] =
885 "rmmod [OPTION]... [MODULE]...\n"
886#ifndef BB_FEATURE_TRIVIAL_HELP
887 "\nUnloads the specified kernel modules from the kernel.\n\n"
888 "Options:\n"
889 "\t-a\tTry to remove all unused kernel modules.\n"
890#endif
891 ;
892#endif
893
894#if defined BB_SED
895const char sed_usage[] =
896 "sed [-Vhnef] pattern [files...]\n"
897#ifndef BB_FEATURE_TRIVIAL_HELP
898 "\n"
899 "-n\tsuppress automatic printing of pattern space\n"
900 "-e script\tadd the script to the commands to be executed\n"
901 "-f scriptfile\tadd the contents of script-file to the commands to be executed\n"
902 "-h\tdisplay this help message\n"
903 "-V\toutput version information and exit\n"
904 "\n"
905 "If no -e or -f is given, the first non-option argument is taken as the\n"
906 "sed script to interpret. All remaining arguments are names of input\n"
907 "files; if no input files are specified, then the standard input is read.\n"
908#endif
909 ;
910#endif
911
912#if defined BB_SETKEYCODES
913const char setkeycodes_usage[] =
914 "setkeycodes SCANCODE KEYCODE ...\n"
915#ifndef BB_FEATURE_TRIVIAL_HELP
916 "\nSet entries into the kernel's scancode-to-keycode map,\n"
917 "allowing unusual keyboards to generate usable keycodes.\n\n"
918 "SCANCODE may be either xx or e0xx (hexadecimal),\n"
919 "and KEYCODE is given in decimal\n"
920#endif
921 ;
922#endif
923
924#if defined BB_SH
925const char shell_usage[] =
926 "sh [FILE]...\n"
927 " or: sh -c command [args]...\n"
928#ifndef BB_FEATURE_TRIVIAL_HELP
929 "\nlash: The BusyBox command interpreter (shell).\n\n"
930#endif
931 ;
932#endif
933
934#if defined BB_SLEEP
935const char sleep_usage[] =
936 "sleep N\n"
937#ifndef BB_FEATURE_TRIVIAL_HELP
938 "\nPause for N seconds.\n"
939#endif
940 ;
941#endif
942
943#if defined BB_SORT
944const char sort_usage[] =
945 "sort [-n]"
946#ifdef BB_FEATURE_SORT_REVERSE
947 " [-r]"
948#endif
949 " [FILE]...\n"
950#ifndef BB_FEATURE_TRIVIAL_HELP
951 "\nSorts lines of text in the specified files\n"
952#endif
953 ;
954#endif
955
956#if defined BB_SWAPONOFF
957const char swapoff_usage[] =
958 "swapoff [OPTION] [device]\n"
959#ifndef BB_FEATURE_TRIVIAL_HELP
960 "\nStop swapping virtual memory pages on the given device.\n\n"
961 "Options:\n"
962 "\t-a\tStop swapping on all swap devices\n"
963#endif
964 ;
965#endif
966
967#if defined BB_SWAPONOFF
968const char swapon_usage[] =
969 "swapon [OPTION] [device]\n"
970#ifndef BB_FEATURE_TRIVIAL_HELP
971 "\nStart swapping virtual memory pages on the given device.\n\n"
972 "Options:\n"
973 "\t-a\tStart swapping on all swap devices\n"
974#endif
975 ;
976#endif
977
978#if defined BB_SYNC
979const char sync_usage[] =
980 "sync\n"
981#ifndef BB_FEATURE_TRIVIAL_HELP
982 "\nWrite all buffered filesystem blocks to disk.\n"
983#endif
984 ;
985#endif
986
987#if defined BB_SYSLOGD
988const char syslogd_usage[] =
989 "syslogd [OPTION]...\n"
990#ifndef BB_FEATURE_TRIVIAL_HELP
991 "\nLinux system and kernel (provides klogd) logging utility.\n"
992 "Note that this version of syslogd/klogd ignores /etc/syslog.conf.\n\n"
993 "Options:\n"
994 "\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n"
995 "\t-n\t\tRun as a foreground process\n"
996#ifdef BB_FEATURE_KLOGD
997 "\t-K\t\tDo not start up the klogd process\n"
998#endif
999 "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n"
1000#endif
1001 ;
1002#endif
1003
1004#if defined BB_TAIL
1005#if defined BB_FEATURE_SIMPLE_TAIL
1006const char tail_usage[] =
1007 "tail [OPTION] [FILE]...\n"
1008#ifndef BB_FEATURE_TRIVIAL_HELP
1009 "\nPrint last 10 lines of each FILE to standard output.\n"
1010 "With more than one FILE, precede each with a header giving the\n"
1011 "file name. With no FILE, or when FILE is -, read standard input.\n\n"
1012 "Options:\n"
1013 "\t-n NUM\t\tPrint last NUM lines instead of first 10\n"
1014
1015 "\t-f\t\tOutput data as the file grows. This version\n"
1016 "\t\t\tof 'tail -f' supports only one file at a time.\n"
1017#endif
1018 ;
1019#else /* ! defined BB_FEATURE_SIMPLE_TAIL */
1020const char tail_usage[] =
1021 "tail [OPTION]... [FILE]...\n"
1022#ifndef BB_FEATURE_TRIVIAL_HELP
1023 "\nPrint last 10 lines of each FILE to standard output.\n"
1024 "With more than one FILE, precede each with a header giving the file name.\n"
1025 "With no FILE, or when FILE is -, read standard input.\n"
1026 "\n"
1027 " -c=N[kbm] output the last N bytes\n"
1028 " -f output appended data as the file grows\n"
1029 " -n=N output the last N lines, instead of last 10\n"
1030 " -q never output headers giving file names\n"
1031 " -v always output headers giving file names\n"
1032 "\n"
1033 "If the first character of N (bytes or lines) is a `+', output begins with \n"
1034 "the Nth item from the start of each file, otherwise, print the last N items\n"
1035 "in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2).\n"
1036#endif
1037 ;
1038#endif
1039#endif
1040
1041#if defined BB_TAR
1042const char tar_usage[] =
1043#ifdef BB_FEATURE_TAR_CREATE
1044 "tar -[cxtvO] "
1045#else
1046 "tar -[xtvO] "
1047#endif
1048#if defined BB_FEATURE_TAR_EXCLUDE
1049 "[--exclude File] "
1050#endif
1051 "[-f tarFile] [FILE] ...\n"
1052#ifndef BB_FEATURE_TRIVIAL_HELP
1053 "\nCreate, extract, or list files from a tar file. Note that\n"
1054 "this version of tar treats hard links as separate files.\n\n"
1055 "Main operation mode:\n"
1056#ifdef BB_FEATURE_TAR_CREATE
1057 "\tc\t\tcreate\n"
1058#endif
1059 "\tx\t\textract\n"
1060 "\tt\t\tlist\n"
1061 "\nFile selection:\n"
1062 "\tf\t\tname of tarfile or \"-\" for stdin\n"
1063 "\tO\t\textract to stdout\n"
1064#if defined BB_FEATURE_TAR_EXCLUDE
1065 "\t--exclude\tfile to exclude\n"
1066#endif
1067 "\nInformative output:\n"
1068 "\tv\t\tverbosely list files processed\n"
1069#endif
1070 ;
1071#endif
1072
1073#if defined BB_TEE
1074const char tee_usage[] =
1075 "tee [OPTION]... [FILE]...\n"
1076#ifndef BB_FEATURE_TRIVIAL_HELP
1077 "\nCopy standard input to each FILE, and also to standard output.\n\n"
1078 "Options:\n" "\t-a\tappend to the given FILEs, do not overwrite\n"
1079#endif
1080 ;
1081#endif
1082
1083#if defined BB_TELNET
1084const char telnet_usage[] =
1085 "telnet host [port]\n"
1086#ifndef BB_FEATURE_TRIVIAL_HELP
1087 "\nTelnet is used to establish interactive communication with another\n"
1088 "computer over a network using the TELNET protocol.\n"
1089#endif
1090 ;
1091#endif
1092
1093#if defined BB_TEST
1094const char test_usage[] =
1095 "test EXPRESSION\n"
1096 "or [ EXPRESSION ]\n"
1097#ifndef BB_FEATURE_TRIVIAL_HELP
1098 "\nChecks file types and compares values returning an exit\n"
1099 "code determined by the value of EXPRESSION.\n"
1100#endif
1101 ;
1102#endif
1103
1104#if defined BB_TOUCH
1105const char touch_usage[] =
1106 "touch [-c] file [file ...]\n"
1107#ifndef BB_FEATURE_TRIVIAL_HELP
1108 "\nUpdate the last-modified date on the given file[s].\n\n"
1109 "Options:\n"
1110 "\t-c\tDo not create any files\n"
1111#endif
1112 ;
1113#endif
1114
1115#if defined BB_TR
1116const char tr_usage[] =
1117 "tr [-cds] STRING1 [STRING2]\n"
1118#ifndef BB_FEATURE_TRIVIAL_HELP
1119 "\nTranslate, squeeze, and/or delete characters from\n"
1120 "standard input, writing to standard output.\n\n"
1121 "Options:\n"
1122 "\t-c\ttake complement of STRING1\n"
1123 "\t-d\tdelete input characters coded STRING1\n"
1124 "\t-s\tsqueeze multiple output characters of STRING2 into one character\n"
1125#endif
1126 ;
1127#endif
1128
Matt Kraai2f46b662000-07-19 18:01:00 +00001129#if defined BB_TRUE_FALSE
1130const char true_usage[] =
1131 "true\n"
1132#ifndef BB_FEATURE_TRIVIAL_HELP
1133 "\nReturn an exit code of TRUE (0).\n"
1134#endif
1135 ;
1136#endif
1137
Matt Kraaibf181b92000-07-16 20:57:15 +00001138#if defined BB_TTY
1139const char tty_usage[] =
1140 "tty\n"
1141#ifndef BB_FEATURE_TRIVIAL_HELP
1142 "\nPrint the file name of the terminal connected to standard input.\n\n"
1143 "Options:\n"
1144 "\t-s\tprint nothing, only return an exit status\n"
1145#endif
1146 ;
1147#endif
1148
1149#if defined BB_UMOUNT
1150const char umount_usage[] =
1151 "umount [flags] filesystem|directory\n"
1152#ifndef BB_FEATURE_TRIVIAL_HELP
1153 "Unmount file systems\n"
1154 "\nFlags:\n" "\t-a:\tUnmount all file systems"
1155#ifdef BB_MTAB
1156 " in /etc/mtab\n\t-n:\tDon't erase /etc/mtab entries\n"
1157#else
1158 "\n"
1159#endif
1160 "\t-r:\tTry to remount devices as read-only if mount is busy\n"
1161#if defined BB_FEATURE_MOUNT_FORCE
1162 "\t-f:\tForce filesystem umount (i.e. unreachable NFS server)\n"
1163#endif
1164#if defined BB_FEATURE_MOUNT_LOOP
1165 "\t-l:\tDo not free loop device (if a loop device has been used)\n"
1166#endif
1167#endif
1168 ;
1169#endif
1170
1171#if defined BB_UNAME
1172const char uname_usage[] =
1173 "uname [OPTION]...\n"
1174#ifndef BB_FEATURE_TRIVIAL_HELP
1175 "\nPrint certain system information. With no OPTION, same as -s.\n\n"
1176 "Options:\n"
1177 "\t-a\tprint all information\n"
1178 "\t-m\tthe machine (hardware) type\n"
1179 "\t-n\tprint the machine's network node hostname\n"
1180 "\t-r\tprint the operating system release\n"
1181 "\t-s\tprint the operating system name\n"
1182
1183 "\t-p\tprint the host processor type\n"
1184 "\t-v\tprint the operating system version\n"
1185#endif
1186 ;
1187#endif
1188
1189#if defined BB_UNIQ
1190const char uniq_usage[] =
1191 "uniq [OPTION]... [INPUT [OUTPUT]]\n"
1192#ifndef BB_FEATURE_TRIVIAL_HELP
1193 "\nDiscard all but one of successive identical lines from INPUT\n"
1194 "(or standard input), writing to OUTPUT (or standard output).\n"
1195#endif
1196 ;
1197#endif
1198
1199#if defined BB_UPDATE
1200const char update_usage[] =
1201 "update [options]\n"
1202#ifndef BB_FEATURE_TRIVIAL_HELP
1203 "\nPeriodically flushes filesystem buffers.\n\n"
1204 "Options:\n"
1205 "\t-S\tforce use of sync(2) instead of flushing\n"
1206 "\t-s SECS\tcall sync this often (default 30)\n"
1207 "\t-f SECS\tflush some buffers this often (default 5)\n"
1208#endif
1209 ;
1210#endif
1211
Matt Kraai2f46b662000-07-19 18:01:00 +00001212#if defined BB_UPTIME
1213const char uptime_usage[] =
1214 "uptime\n"
1215#ifndef BB_FEATURE_TRIVIAL_HELP
1216 "\nDisplay the time since the last boot.\n"
1217#endif
1218 ;
1219#endif
1220
Matt Kraaibf181b92000-07-16 20:57:15 +00001221#if defined BB_USLEEP
1222const char usleep_usage[] =
1223 "usleep N\n"
1224#ifndef BB_FEATURE_TRIVIAL_HELP
1225 "\nPause for N microseconds.\n"
1226#endif
1227 ;
1228#endif
1229
1230#if defined BB_UUDECODE
1231const char uudecode_usage[] =
1232 "uudecode [FILE]...\n"
1233#ifndef BB_FEATURE_TRIVIAL_HELP
1234 "\nUudecode a file that is uuencoded.\n\n"
1235 "Options:\n"
1236 "\t-o FILE\tdirect output to FILE\n"
1237#endif
1238 ;
1239#endif
1240
1241#if defined BB_UUENCODE
1242const char uuencode_usage[] =
1243 "uuencode [OPTION] [INFILE] REMOTEFILE\n"
1244#ifndef BB_FEATURE_TRIVIAL_HELP
1245 "\nUuencode a file.\n\n"
1246 "Options:\n"
1247 "\t-m\tuse base64 encoding as of RFC1521\n"
1248#endif
1249 ;
1250#endif
1251
1252#if defined BB_WC
1253const char wc_usage[] =
1254 "wc [OPTION]... [FILE]...\n"
1255#ifndef BB_FEATURE_TRIVIAL_HELP
1256 "\nPrint line, word, and byte counts for each FILE, and a total line if\n"
1257 "more than one FILE is specified. With no FILE, read standard input.\n\n"
1258 "Options:\n"
1259 "\t-c\tprint the byte counts\n"
1260 "\t-l\tprint the newline counts\n"
1261
1262 "\t-L\tprint the length of the longest line\n"
1263 "\t-w\tprint the word counts\n"
1264#endif
1265 ;
1266#endif
1267
1268#if defined BB_WHICH
1269const char which_usage[] =
1270 "which [COMMAND ...]\n"
1271#ifndef BB_FEATURE_TRIVIAL_HELP
1272 "\nLocates a COMMAND.\n"
1273#endif
1274 ;
1275#endif
1276
1277#if defined BB_WHOAMI
1278const char whoami_usage[] =
1279 "whoami\n"
1280#ifndef BB_FEATURE_TRIVIAL_HELP
1281 "\nPrints the user name associated with the current effective user id.\n"
1282#endif
1283 ;
1284#endif
1285
1286#if defined BB_YES
1287const char yes_usage[] =
1288 "yes [OPTION]... [STRING]...\n"
1289#ifndef BB_FEATURE_TRIVIAL_HELP
1290 "\nRepeatedly outputs a line with all specified STRING(s), or `y'.\n"
1291#endif
1292 ;
1293#endif