Cleanup usage messages (-200 bytes).
[oweals/busybox.git] / include / usage.h
1 /* vi: set sw=8 ts=8: */
2 /*
3  * This file suffers from chronically incorrect tabification
4  * of messages. Before editing this file:
5  * 1. Switch you editor to 8-space tab mode.
6  * 2. Do not use \t in messages, use real tab character.
7  * 3. Start each source line with message as follows:
8  *    |<7 spaces>"text with tabs"....
9  */
10
11 #ifndef __BB_USAGE_H__
12 #define __BB_USAGE_H__
13
14 #define addgroup_trivial_usage \
15        "[-g GID] group_name [user_name]"
16 #define addgroup_full_usage \
17        "Adds a group to the system" \
18        "\n\nOptions:\n" \
19        "        -g GID  specify gid"
20
21 #define adduser_trivial_usage \
22        "[OPTIONS] user_name"
23 #define adduser_full_usage \
24        "Adds a user to the system" \
25        "\n\nOptions:\n" \
26        "        -h DIR          Assign home directory DIR\n" \
27        "        -g GECOS        Assign gecos field GECOS\n" \
28        "        -s SHELL        Assign login shell SHELL\n" \
29        "        -G              Add the user to existing group GROUP\n" \
30        "        -S              create a system user (ignored)\n" \
31        "        -D              Do not assign a password (logins still possible via ssh)\n" \
32        "        -H              Do not create the home directory"
33
34 #define adjtimex_trivial_usage \
35        "[-q] [-o offset] [-f frequency] [-p timeconstant] [-t tick]"
36 #define adjtimex_full_usage \
37        "Reads and optionally sets system timebase parameters.\n" \
38        "See adjtimex(2)." \
39        "\n\nOptions:\n" \
40        "        -q              quiet mode - do not print\n" \
41        "        -o offset       time offset, microseconds\n" \
42        "        -f frequency    frequency adjust, integer kernel units (65536 is 1ppm)\n" \
43        "                        (positive values make the system clock run fast)\n" \
44        "        -t tick         microseconds per tick, usually 10000\n" \
45        "        -p timeconstant"
46
47 #define ar_trivial_usage \
48        "[-o] [-v] [-p] [-t] [-x] ARCHIVE FILES"
49 #define ar_full_usage \
50        "Extract or list FILES from an ar archive" \
51        "\n\nOptions:\n" \
52        "        -o      preserve original dates\n" \
53        "        -p      extract to stdout\n" \
54        "        -t      list\n" \
55        "        -x      extract\n" \
56        "        -v      verbosely list files processed"
57
58 #define arping_trivial_usage \
59        "[-fqbDUA] [-c count] [-w timeout] [-i device] [-s sender] target"
60 #define arping_full_usage \
61        "Ping hosts by ARP requests/replies" \
62        "\n\nOptions:\n" \
63        "        -f              Quit on first ARP reply\n" \
64        "        -q              Be quiet\n" \
65        "        -b              Keep broadcasting, don't go unicast\n" \
66        "        -D              Duplicated address detection mode\n" \
67        "        -U              Unsolicited ARP mode, update your neighbours\n" \
68        "        -A              ARP answer mode, update your neighbours\n" \
69        "        -c count        Stop after sending count ARP request packets\n" \
70        "        -w timeout      Time to wait for ARP reply, in seconds\n" \
71        "        -i device       Outgoing interface name, default is eth0\n" \
72        "        -s sender       Set specific sender IP address\n" \
73        "        target          Target IP address of ARP request"
74
75 #define ash_trivial_usage \
76        "[FILE]...\n" \
77        "or: ash -c command [args]..."
78 #define ash_full_usage \
79        "The ash shell (command interpreter)"
80
81 #define awk_trivial_usage \
82        "[OPTION]... [program-text] [FILE ...]"
83 #define awk_full_usage \
84        "Options:\n" \
85        "        -v var=val      assign value 'val' to variable 'var'\n" \
86        "        -F sep          use 'sep' as field separator\n" \
87        "        -f progname     read program source from file 'progname'"
88
89 #define basename_trivial_usage \
90        "FILE [SUFFIX]"
91 #define basename_full_usage \
92        "Strips directory path and suffixes from FILE.\n" \
93        "If specified, also removes any trailing SUFFIX."
94 #define basename_example_usage \
95        "$ basename /usr/local/bin/foo\n" \
96        "foo\n" \
97        "$ basename /usr/local/bin/\n" \
98        "bin\n" \
99        "$ basename /foo/bar.txt .txt\n" \
100        "bar"
101
102 #define bunzip2_trivial_usage \
103        "[OPTION]... [FILE]"
104 #define bunzip2_full_usage \
105        "Uncompress FILE (or standard input if FILE is '-' or omitted)" \
106        "\n\nOptions:\n" \
107        "        -c      Write output to standard output\n" \
108        "        -f      Force"
109
110 #define busybox_notes_usage \
111        "Hello world!\n"
112
113 #define bzcat_trivial_usage \
114        "FILE"
115 #define bzcat_full_usage \
116        "Uncompress to stdout."
117
118 #define unlzma_trivial_usage \
119        "[OPTION]... [FILE]"
120 #define unlzma_full_usage \
121        "Uncompress FILE (or standard input if FILE is '-' or omitted)" \
122        "\n\nOptions:\n" \
123        "        -c      Write output to standard output\n" \
124        "        -f      Force"
125
126 #define lzmacat_trivial_usage \
127        "FILE"
128 #define lzmacat_full_usage \
129        "Uncompress to stdout."
130
131 #define cal_trivial_usage \
132        "[-jy] [[month] year]"
133 #define cal_full_usage \
134        "Display a calendar" \
135        "\n\nOptions:\n" \
136        "        -j      Use julian dates\n" \
137        "        -y      Display the entire year"
138
139 #define cat_trivial_usage \
140        "[-u] [FILE]..."
141 #define cat_full_usage \
142        "Concatenates FILE(s) and prints them to stdout" \
143        "\n\nOptions:\n" \
144        "        -u      ignored since unbuffered i/o is always used"
145 #define cat_example_usage \
146        "$ cat /proc/uptime\n" \
147        "110716.72 17.67"
148
149 #define catv_trivial_usage \
150        "[-etv] [FILE]..."
151 #define catv_full_usage \
152        "Display nonprinting characters as ^x or M-x" \
153        "\n\nOptions:\n" \
154        "        -e      End each line with $\n" \
155        "        -t      Show tabs as ^I\n" \
156        "        -v      Don't use ^x or M-x escapes."
157 #define chattr_trivial_usage \
158        "[-R] [-+=AacDdijsStTu] [-v version] files..."
159 #define chattr_full_usage \
160        "change file attributes on an ext2 fs\n\n" \
161        "Modifiers:\n" \
162        "        -       remove attributes\n" \
163        "        +       add attributes\n" \
164        "        =       set attributes\n" \
165        "Attributes:\n" \
166        "        A       don't track atime\n" \
167        "        a       append mode only\n" \
168        "        c       enable compress\n" \
169        "        D       write dir contents synchronously\n" \
170        "        d       do not backup with dump\n" \
171        "        i       cannot be modified (immutable)\n" \
172        "        j       write all data to journal first\n" \
173        "        s       zero disk storage when deleted\n" \
174        "        S       write file contents synchronously\n" \
175        "        t       disable tail-merging of partial blocks with other files\n" \
176        "        u       allow file to be undeleted\n" \
177        " Options:\n" \
178        "        -R      recursively list subdirectories\n" \
179        "        -v      set the file's version/generation number"
180
181 #define chgrp_trivial_usage \
182        "[-Rh"USE_DESKTOP("cvf")"]... GROUP FILE..."
183 #define chgrp_full_usage \
184        "Change the group membership of each FILE to GROUP" \
185        "\n\nOptions:\n" \
186        "        -R      Changes files and directories recursively\n" \
187        "        -h      Do not dereference symbolic links" \
188         USE_DESKTOP( \
189        "\n      -c      List changed files" \
190        "\n      -v      List all files" \
191        "\n      -f      Hide errors" \
192         )
193 #define chgrp_example_usage \
194        "$ ls -l /tmp/foo\n" \
195        "-r--r--r--    1 andersen andersen        0 Apr 12 18:25 /tmp/foo\n" \
196        "$ chgrp root /tmp/foo\n" \
197        "$ ls -l /tmp/foo\n" \
198        "-r--r--r--    1 andersen root            0 Apr 12 18:25 /tmp/foo\n"
199
200 #define chmod_trivial_usage \
201        "[-R"USE_DESKTOP("cvf")"] MODE[,MODE]... FILE..."
202 #define chmod_full_usage \
203        "Each MODE is one or more of the letters ugoa, one of the\n" \
204        "symbols +-= and one or more of the letters rwxst" \
205        "\n\nOptions:" \
206        "\n      -R      Changes files and directories recursively" \
207         USE_DESKTOP( \
208        "\n      -c      List changed files" \
209        "\n      -v      List all files" \
210        "\n      -f      Hide errors" \
211         )
212 #define chmod_example_usage \
213        "$ ls -l /tmp/foo\n" \
214        "-rw-rw-r--    1 root     root            0 Apr 12 18:25 /tmp/foo\n" \
215        "$ chmod u+x /tmp/foo\n" \
216        "$ ls -l /tmp/foo\n" \
217        "-rwxrw-r--    1 root     root            0 Apr 12 18:25 /tmp/foo*\n" \
218        "$ chmod 444 /tmp/foo\n" \
219        "$ ls -l /tmp/foo\n" \
220        "-r--r--r--    1 root     root            0 Apr 12 18:25 /tmp/foo\n"
221
222 #define chown_trivial_usage \
223        "[-Rh"USE_DESKTOP("cvf")"]...  OWNER[<.|:>[GROUP]] FILE..."
224 #define chown_full_usage \
225        "Change the owner and/or group of each FILE to OWNER and/or GROUP" \
226        "\n\nOptions:" \
227        "\n      -R      Changes files and directories recursively" \
228        "\n      -h      Do not dereference symbolic links" \
229         USE_DESKTOP( \
230        "\n      -c      List changed files" \
231        "\n      -v      List all files" \
232        "\n      -f      Hide errors" \
233         )
234 #define chown_example_usage \
235        "$ ls -l /tmp/foo\n" \
236        "-r--r--r--    1 andersen andersen        0 Apr 12 18:25 /tmp/foo\n" \
237        "$ chown root /tmp/foo\n" \
238        "$ ls -l /tmp/foo\n" \
239        "-r--r--r--    1 root     andersen        0 Apr 12 18:25 /tmp/foo\n" \
240        "$ chown root.root /tmp/foo\n" \
241        "ls -l /tmp/foo\n" \
242        "-r--r--r--    1 root     root            0 Apr 12 18:25 /tmp/foo\n"
243
244 #define chpst_trivial_usage \
245        "[-vP012] [-u user[:group]] [-U user[:group]] [-e dir] " \
246        "[-/ dir] [-n nice] [-m bytes] [-d bytes] [-o files] " \
247        "[-p processes] [-f bytes] [-c bytes] prog args"
248 #define chpst_full_usage \
249        "Change the process state and run specified program" \
250        "\n\nOptions:\n" \
251        "        -u user[:grp]   set uid and gid\n" \
252        "        -U user[:grp]   set environment variables UID and GID\n" \
253        "        -e dir          set environment variables as specified by files\n" \
254        "                        in the directory: file=1st_line_of_file\n" \
255        "        -/ dir          chroot to dir\n" \
256        "        -n inc          add inc to nice value\n" \
257        "        -m bytes        limit data segment, stack segment, locked physical pages,\n" \
258        "                        and total of all segment per process to bytes bytes each\n" \
259        "        -d bytes        limit data segment\n" \
260        "        -o n            limit the number of open file descriptors per process to n\n" \
261        "        -p n            limit number of processes per uid to n\n" \
262        "        -f bytes        limit output file size to bytes bytes\n" \
263        "        -c bytes        limit core file size to bytes bytes\n" \
264        "        -v              verbose\n" \
265        "        -P              run prog in a new process group\n" \
266        "        -0              close standard input\n" \
267        "        -1              close standard output\n" \
268        "        -2              close standard error"
269 #define setuidgid_trivial_usage \
270        "account prog args"
271 #define setuidgid_full_usage \
272        "Sets uid and gid to account's uid and gid, removing all supplementary\n" \
273        "groups, then runs prog"
274 #define envuidgid_trivial_usage \
275        "account prog args"
276 #define envuidgid_full_usage \
277        "Sets $UID to account's uid and $GID to account's gid, then runs prog"
278 #define envdir_trivial_usage \
279        "dir prog args"
280 #define envdir_full_usage \
281        "Sets various environment variables as specified by files\n" \
282        "in the directory dir, then runs prog"
283 #define softlimit_trivial_usage \
284        "[-a allbytes] [-c corebytes] [-d databytes] [-f filebytes] " \
285        "[-l lockbytes] [-m membytes] [-o openfiles] [-p processes] " \
286        "[-r residentbytes] [-s stackbytes] [-t cpusecs] prog args"
287 #define softlimit_full_usage \
288        "Sets soft resource limits as specified by options, then runs prog\n" \
289        "\n" \
290        "        -m n    Same as -d n -s n -l n -a n\n" \
291        "        -d n    Limit the data segment per process to n bytes\n" \
292        "        -s n    Limit the stack segment per process to n bytes\n" \
293        "        -l n    Limit the locked physical pages per process to n bytes\n" \
294        "        -a n    Limit the total of all segments per process to n bytes\n" \
295        "        -o n    Limit  the number of open file descriptors per process to n\n" \
296        "        -p n    Limit the number of processes per uid to n\n" \
297        "Options controlling file sizes:\n" \
298        "        -f n    Limit output file sizes to n bytes\n" \
299        "        -c n    Limit core file sizes to n bytes\n" \
300        "Efficiency opts:\n" \
301        "        -r n    Limit the resident set size to n bytes. This limit is not\n" \
302        "                enforced unless physical memory is full\n" \
303        "        -t n    Limit the CPU time to n seconds. This limit is not enforced\n" \
304        "                except that the process receives a SIGXCPU signal after n seconds\n" \
305        "\n" \
306        "Some options may have no effect on some operating systems\n" \
307        "n may be =, indicating that soft limit should be set equal to hard limit"
308
309 #define chroot_trivial_usage \
310        "NEWROOT [COMMAND...]"
311 #define chroot_full_usage \
312        "Run COMMAND with root directory set to NEWROOT."
313 #define chroot_example_usage \
314        "$ ls -l /bin/ls\n" \
315        "lrwxrwxrwx    1 root     root          12 Apr 13 00:46 /bin/ls -> /BusyBox\n" \
316        "# mount /dev/hdc1 /mnt -t minix\n" \
317        "# chroot /mnt\n" \
318        "# ls -l /bin/ls\n" \
319        "-rwxr-xr-x    1 root     root        40816 Feb  5 07:45 /bin/ls*\n"
320
321 #define chvt_trivial_usage \
322        "N"
323 #define chvt_full_usage \
324        "Changes the foreground virtual terminal to /dev/ttyN"
325
326 #define cksum_trivial_usage \
327        "FILES..."
328 #define cksum_full_usage \
329        "Calculates the CRC32 checksums of FILES."
330
331 #define clear_trivial_usage \
332        ""
333 #define clear_full_usage \
334        "Clear screen."
335
336 #define cmp_trivial_usage \
337        "[-l] [-s] FILE1 [FILE2]"
338 #define cmp_full_usage \
339        "Compares FILE1 vs stdin if FILE2 is not specified" \
340        "\n\nOptions:\n" \
341        "        -l      Write the byte numbers (decimal) and values (octal)\n" \
342        "                for all differing bytes\n" \
343        "        -s      quiet mode - do not print"
344
345 #define comm_trivial_usage \
346        "[-123] FILE1 FILE2"
347 #define comm_full_usage \
348        "Compares FILE1 to FILE2, or to stdin if = is specified" \
349        "\n\nOptions:\n" \
350        "        -1      Suppress lines unique to FILE1\n" \
351        "        -2      Suppress lines unique to FILE2\n" \
352        "        -3      Suppress lines common to both files"
353
354 #define bbconfig_trivial_usage \
355        ""
356 #define bbconfig_full_usage \
357        "Print the config file which built busybox"
358
359 #define bbsh_trivial_usage \
360        "[FILE]...\n" \
361        "or: bbsh -c command [args]..."
362 #define bbsh_full_usage \
363        "The bbsh shell (command interpreter)"
364
365 #define cp_trivial_usage \
366        "[OPTION]... SOURCE DEST"
367 #define cp_full_usage \
368        "Copies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n" \
369        "\n" \
370        "        -a      Same as -dpR\n" \
371        "        -d,-P   Preserve links\n" \
372        "        -H,-L   Dereference all symlinks (implied by default)\n" \
373        "        -p      Preserve file attributes if possible\n" \
374        "        -f      force, overwrite\n" \
375        "        -i      interactive, prompt before overwrite\n" \
376        "        -R,-r   Copy directories recursively\n" \
377        "        -l,-s   Create (sym)links"
378
379 #define cpio_trivial_usage \
380        "-[dimtuv][F cpiofile]"
381 #define cpio_full_usage \
382        "Extract or list files from a cpio archive\n" \
383        "Main operation mode:\n" \
384        "        d       make leading directories\n" \
385        "        i       extract\n" \
386        "        m       preserve mtime\n" \
387        "        t       list\n" \
388        "        v       verbose\n" \
389        "        u       unconditional overwrite\n" \
390        "        F       input from file"
391
392 #define crond_trivial_usage \
393        "-d[#] -c <crondir> -f -b"
394 #define crond_full_usage \
395        "        -d [#] -l [#] -S -L logfile -f -b -c dir\n" \
396        "        -d num  debug level\n" \
397        "        -l num  log level (8 - default)\n" \
398        "        -S      log to syslogd (default)\n" \
399        "        -L file log to file\n" \
400        "        -f      run in foreground\n" \
401        "        -b      run in background (default)\n" \
402        "        -c dir  working dir"
403
404 #define crontab_trivial_usage \
405        "[-c dir] {file|-}|[-u|-l|-e|-d user]"
406 #define crontab_full_usage \
407        "        file <opts>  replace crontab from file\n" \
408        "        -    <opts>  replace crontab from stdin\n" \
409        "        -u user      specify user\n" \
410        "        -l [user]    list crontab for user\n" \
411        "        -e [user]    edit crontab for user\n" \
412        "        -d [user]    delete crontab for user\n" \
413        "        -c dir       specify crontab directory"
414
415
416 #define cut_trivial_usage \
417        "[OPTION]... [FILE]..."
418 #define cut_full_usage \
419        "Prints selected fields from each input FILE to standard output" \
420        "\n\nOptions:\n" \
421        "        -b LIST Output only bytes from LIST\n" \
422        "        -c LIST Output only characters from LIST\n" \
423        "        -d CHAR Use CHAR instead of tab as the field delimiter\n" \
424        "        -s      Output only the lines containing delimiter\n" \
425        "        -f N    Print only these fields\n" \
426        "        -n      Ignored"
427 #define cut_example_usage \
428        "$ echo \"Hello world\" | cut -f 1 -d ' '\n" \
429        "Hello\n" \
430        "$ echo \"Hello world\" | cut -f 2 -d ' '\n" \
431        "world\n"
432
433 #define date_trivial_usage \
434        "[OPTION]... [MMDDhhmm[[CC]YY][.ss]] [+FORMAT]"
435 #define date_full_usage \
436        "Displays the current time in the given FORMAT, or sets the system date" \
437        "\n\nOptions:\n" \
438        "        -R              Outputs RFC-822 compliant date string\n" \
439        "        -d STRING       Displays time described by STRING, not 'now'\n" \
440         USE_FEATURE_DATE_ISOFMT( \
441        "        -I[TIMESPEC]    Outputs an ISO-8601 compliant date/time string\n" \
442        "                        TIMESPEC='date' (or missing) for date only,\n" \
443        "                        'hours', 'minutes', or 'seconds' for date and,\n" \
444        "                        time to the indicated precision\n" \
445        "        -D hint         Use 'hint' as date format, via strptime()\n" \
446         ) \
447        "        -s              Sets time described by STRING\n" \
448        "        -r FILE         Displays the last modification time of FILE\n" \
449        "        -u              Prints or sets Coordinated Universal Time"
450 #define date_example_usage \
451        "$ date\n" \
452        "Wed Apr 12 18:52:41 MDT 2000\n"
453
454 #define dc_trivial_usage \
455        "expression ..."
456 #define dc_full_usage \
457        "This is a Tiny RPN calculator that understands the\n" \
458        "following operations: +, add, -, sub, *, mul, /, div, %, mod, " \
459        "**, exp, and, or, not, eor.\n" \
460        "For example: 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16." \
461        "\n\nOptions:\n" \
462        "p - Prints the value on the top of the stack, without altering the stack\n" \
463        "f - Prints the entire contents of the stack without altering anything\n" \
464        "o - Pops the value off the top of the stack and uses it to set the output radix\n" \
465        "    Only 10 and 16 are supported"
466 #define dc_example_usage \
467        "$ dc 2 2 + p\n" \
468        "4\n" \
469        "$ dc 8 8 \\* 2 2 + / p\n" \
470        "16\n" \
471        "$ dc 0 1 and p\n" \
472        "0\n" \
473        "$ dc 0 1 or p\n" \
474        "1\n" \
475        "$ echo 72 9 div 8 mul p | dc\n" \
476        "64\n"
477
478 #define dd_trivial_usage \
479        "[if=FILE] [of=FILE] " USE_FEATURE_DD_IBS_OBS("[ibs=N] [obs=N] ") "[bs=N] [count=N] [skip=N]\n" \
480        "          [seek=N]" USE_FEATURE_DD_IBS_OBS(" [conv=notrunc|noerror|sync]")
481 #define dd_full_usage \
482        "Copy a file with converting and formatting" \
483        "\n\nOptions:\n" \
484        "        if=FILE         read from FILE instead of stdin\n" \
485        "        of=FILE         write to FILE instead of stdout\n" \
486        "        bs=N            read and write N bytes at a time\n" \
487         USE_FEATURE_DD_IBS_OBS( \
488        "        ibs=N           read N bytes at a time\n") \
489         USE_FEATURE_DD_IBS_OBS( \
490        "        obs=N           write N bytes at a time\n") \
491        "        count=N         copy only N input blocks\n" \
492        "        skip=N          skip N input blocks\n" \
493        "        seek=N          skip N output blocks\n" \
494         USE_FEATURE_DD_IBS_OBS( \
495        "        conv=notrunc    don't truncate output file\n" \
496        "        conv=noerror    continue after read errors\n" \
497        "        conv=sync       pad blocks with zeros\n") \
498        "\n" \
499        "Numbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024),\n" \
500        "MD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)"
501 #define dd_example_usage \
502        "$ dd if=/dev/zero of=/dev/ram1 bs=1M count=4\n" \
503        "4+0 records in\n" \
504        "4+0 records out\n"
505
506 #define deallocvt_trivial_usage \
507        "[N]"
508 #define deallocvt_full_usage \
509        "Deallocate unused virtual terminal /dev/ttyN"
510
511 #define delgroup_trivial_usage \
512        "GROUP"
513 #define delgroup_full_usage \
514        "Deletes group GROUP from the system"
515
516 #define deluser_trivial_usage \
517        "USER"
518 #define deluser_full_usage \
519        "Deletes user USER from the system"
520
521 #define devfsd_trivial_usage \
522        "mntpnt [-v]" \
523         USE_DEVFSD_FG_NP("[-fg][-np]" )
524 #define devfsd_full_usage \
525        "Optional daemon for managing devfs permissions and old device name symlinks" \
526        "\n\nOptions:" \
527        "\n      mntpnt  The mount point where devfs is mounted." \
528        "\n      -v      Print the protocol version numbers for devfsd." \
529        "\n              and the kernel-side protocol version and exits." \
530         USE_DEVFSD_FG_NP( \
531        "\n      -fg     Run the daemon in the foreground." \
532        "\n      -np     Exit after parsing the configuration file" \
533        "\n              and processing synthetic REGISTER events." \
534        "\n              Do not poll for events.")
535
536 #define df_trivial_usage \
537        "[-" USE_FEATURE_HUMAN_READABLE("hm") "k] [FILESYSTEM ...]"
538 #define df_full_usage \
539        "Print the filesystem space used and space available" \
540        "\n\nOptions:\n" \
541         USE_FEATURE_HUMAN_READABLE( \
542        "\n      -h      print sizes in human readable format (e.g., 1K 243M 2G )\n" \
543        "        -m      print sizes in megabytes\n" \
544        "        -k      print sizes in kilobytes(default)") \
545         SKIP_FEATURE_HUMAN_READABLE( \
546        "\n      -k      ignored")
547 #define df_example_usage \
548        "$ df\n" \
549        "Filesystem           1k-blocks      Used Available Use% Mounted on\n" \
550        "/dev/sda3              8690864   8553540    137324  98% /\n" \
551        "/dev/sda1                64216     36364     27852  57% /boot\n" \
552        "$ df /dev/sda3\n" \
553        "Filesystem           1k-blocks      Used Available Use% Mounted on\n" \
554        "/dev/sda3              8690864   8553540    137324  98% /\n"
555
556 #define dhcprelay_trivial_usage \
557        "[client_device_list] [server_device]"
558 #define dhcprelay_full_usage \
559        "Relays dhcp requests from client devices to server device"
560
561 #define dhcprelay_trivial_usage \
562        "[client_device_list] [server_device]"
563 #define dhcprelay_full_usage \
564        "Relays dhcp requests from client devices to server device"
565
566 #define diff_trivial_usage \
567        "[-abdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2"
568 #define diff_full_usage \
569        "Compare files line by line and output the differences between them.\n" \
570        "This diff implementation only supports unified diffs." \
571        "\n\nOptions:\n" \
572        "        -a      Treat all files as text\n" \
573        "        -b      Ignore changes in the amount of whitespace\n" \
574        "        -d      Try hard to find a smaller set of changes\n" \
575        "        -i      Ignore case differences\n" \
576        "        -L      Use LABEL instead of the filename in the unified header\n" \
577        "        -N      Treat absent files as empty\n" \
578        "        -q      Output only whether files differ\n" \
579        "        -r      Recursively compare any subdirectories\n" \
580        "        -S      Start with FILE when comparing directories\n" \
581        "        -T      Make tabs line up by prefixing a tab when necessary\n" \
582        "        -s      Report when two files are the same\n" \
583        "        -t      Expand tabs to spaces in output\n" \
584        "        -U      Output LINES lines of context\n" \
585        "        -w      Ignore all whitespace\n"
586
587 #define dirname_trivial_usage \
588        "FILENAME"
589 #define dirname_full_usage \
590        "Strips non-directory suffix from FILENAME"
591 #define dirname_example_usage \
592        "$ dirname /tmp/foo\n" \
593        "/tmp\n" \
594        "$ dirname /tmp/foo/\n" \
595        "/tmp\n"
596
597 #define dmesg_trivial_usage \
598        "[-c] [-n LEVEL] [-s SIZE]"
599 #define dmesg_full_usage \
600        "Prints or controls the kernel ring buffer" \
601        "\n\nOptions:\n" \
602        "        -c              Clears the ring buffer's contents after printing\n" \
603        "        -n LEVEL        Sets console logging level\n" \
604        "        -s SIZE         Use a buffer of size SIZE"
605
606 #define dnsd_trivial_usage \
607        "[-c config] [-t seconds] [-p port] [-i iface-ip] [-d]"
608 #define dnsd_full_usage \
609        "Small and static DNS server daemon" \
610        "\n\nOptions:\n" \
611        "        -c      config filename\n" \
612        "        -t      TTL in seconds\n" \
613        "        -p      listening port\n" \
614        "        -i      listening iface ip (default all)\n" \
615        "        -d      daemonize"
616
617 #define dos2unix_trivial_usage \
618        "[option] [FILE]"
619 #define dos2unix_full_usage \
620        "Converts FILE from dos format to unix format.  When no option\n" \
621        "is given, the input is converted to the opposite output format.\n" \
622        "When no file is given, uses stdin for input and stdout for output." \
623        "\n\nOptions:\n" \
624        "        -u      output will be in UNIX format\n" \
625        "        -d      output will be in DOS format"
626
627 #define dpkg_trivial_usage \
628        "[-ilCPru] [-F option] package_name"
629 #define dpkg_full_usage \
630        "Install, remove and manage Debian packages" \
631        "\n\nOptions:\n" \
632        "        -i              Install the package\n" \
633        "        -l              List of installed packages\n" \
634        "        -C              Configure an unpackaged package\n" \
635        "        -F depends      Ignore dependency problems\n" \
636        "        -P              Purge all files of a package\n" \
637        "        -r              Remove all but the configuration files for a package\n" \
638        "        -u              Unpack a package, but don't configure it"
639
640 #define dpkg_deb_trivial_usage \
641        "[-cefxX] FILE [argument]"
642 #define dpkg_deb_full_usage \
643        "Perform actions on Debian packages (.debs)" \
644        "\n\nOptions:\n" \
645        "        -c      List contents of filesystem tree\n" \
646        "        -e      Extract control files to [argument] directory\n" \
647        "        -f      Display control field name starting with [argument]\n" \
648        "        -x      Extract packages filesystem tree to directory\n" \
649        "        -X      Verbose extract"
650 #define dpkg_deb_example_usage \
651        "$ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp\n"
652
653 #define du_trivial_usage \
654        "[-aHLdclsx" USE_FEATURE_HUMAN_READABLE("hm") "k] [FILE]..."
655 #define du_full_usage \
656        "Summarizes disk space used for each FILE and/or directory.\n" \
657        "Disk space is printed in units of " \
658         USE_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("1024") \
659         SKIP_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("512") \
660        " bytes." \
661        "\n\nOptions:\n" \
662        "        -a      show sizes of files in addition to directories\n" \
663        "        -H      follow symbolic links that are FILE command line args\n" \
664        "        -L      follow all symbolic links encountered\n" \
665        "        -d N    limit output to directories (and files with -a) of depth < N\n" \
666        "        -c      output a grand total\n" \
667        "        -l      count sizes many times if hard linked\n" \
668        "        -s      display only a total for each argument\n" \
669        "        -x      skip directories on different filesystems\n" \
670         USE_FEATURE_HUMAN_READABLE( \
671        "        -h      print sizes in human readable format (e.g., 1K 243M 2G )\n" \
672        "        -m      print sizes in megabytes\n" \
673         ) \
674        "        -k      print sizes in kilobytes" \
675         USE_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("(default)")
676 #define du_example_usage \
677        "$ du\n" \
678        "16      ./CVS\n" \
679        "12      ./kernel-patches/CVS\n" \
680        "80      ./kernel-patches\n" \
681        "12      ./tests/CVS\n" \
682        "36      ./tests\n" \
683        "12      ./scripts/CVS\n" \
684        "16      ./scripts\n" \
685        "12      ./docs/CVS\n" \
686        "104     ./docs\n" \
687        "2417    .\n"
688
689 #define dumpkmap_trivial_usage \
690        "> keymap"
691 #define dumpkmap_full_usage \
692        "Prints out a binary keyboard translation table to standard output."
693 #define dumpkmap_example_usage \
694        "$ dumpkmap > keymap\n"
695
696 #define dumpleases_trivial_usage \
697        "[-r|-a] [-f LEASEFILE]"
698 #define dumpleases_full_usage \
699        "Display DHCP leases granted by udhcpd" \
700        "\n\nOptions:\n" \
701        "        -f, --file=FILENAME     Leases file to load\n" \
702        "        -r, --remaining         Interpret lease times as time remaining\n" \
703        "        -a, --absolute          Interpret lease times as expire time"
704
705 #define e2fsck_trivial_usage \
706        "[-panyrcdfvstDFSV] [-b superblock] [-B blocksize] " \
707        "[-I inode_buffer_blocks] [-P process_inode_size] " \
708        "[-l|-L bad_blocks_file] [-C fd] [-j external_journal] " \
709        "[-E extended-options] device"
710 #define e2fsck_full_usage \
711        "Check ext2/ext3 file system" \
712        "\n\nOptions:\n" \
713        "        -p              Automatic repair (no questions)\n" \
714        "        -n              Make no changes to the filesystem\n" \
715        "        -y              Assume 'yes' to all questions\n" \
716        "        -c              Check for bad blocks and add them to the badblock list\n" \
717        "        -f              Force checking even if filesystem is marked clean\n" \
718        "        -v              Be verbose\n" \
719        "        -b superblock   Use alternative superblock\n" \
720        "        -B blocksize    Force blocksize when looking for superblock\n" \
721        "        -j journal      Set location of the external journal\n" \
722        "        -l file         Add to badblocks list\n" \
723        "        -L file         Set badblocks list"
724
725 #define echo_trivial_usage \
726         USE_FEATURE_FANCY_ECHO("[-neE] ") "[ARG ...]"
727 #define echo_full_usage \
728        "Print the specified ARGs to stdout" \
729         USE_FEATURE_FANCY_ECHO( \
730        "\n\nOptions:\n" \
731        "        -n      suppress trailing newline\n" \
732        "        -e      interpret backslash-escaped characters (i.e., \\t=tab)\n" \
733        "        -E      disable interpretation of backslash-escaped characters" \
734         )
735 #define echo_example_usage \
736        "$ echo \"Erik is cool\"\n" \
737        "Erik is cool\n" \
738         USE_FEATURE_FANCY_ECHO("$  echo -e \"Erik\\nis\\ncool\"\n" \
739        "Erik\n" \
740        "is\n" \
741        "cool\n" \
742        "$ echo \"Erik\\nis\\ncool\"\n" \
743        "Erik\\nis\\ncool\n")
744
745 #define eject_trivial_usage \
746        "[-t] [-T] [DEVICE]"
747 #define eject_full_usage \
748        "Eject specified DEVICE (or default /dev/cdrom)" \
749        "\n\nOptions:\n" \
750        "        -t      close tray\n" \
751        "        -T      open/close tray (toggle)"
752
753 #define ed_trivial_usage ""
754 #define ed_full_usage ""
755
756 #define env_trivial_usage \
757        "[-iu] [-] [name=value]... [command]"
758 #define env_full_usage \
759        "Print the current environment or runs a program after setting\n" \
760        "up the specified environment" \
761        "\n\nOptions:\n" \
762        "        -, -i   start with an empty environment\n" \
763        "        -u      remove variable from the environment"
764
765 #define ether_wake_trivial_usage \
766        "[-b] [-i iface] [-p aa:bb:cc:dd[:ee:ff]] MAC"
767 #define ether_wake_full_usage \
768        "Send a magic packet to wake up sleeping machines.\n" \
769        "MAC must be a station address (00:11:22:33:44:55) or\n" \
770        "a hostname with a known 'ethers' entry." \
771        "\n\nOptions:\n" \
772        "        -b              Send wake-up packet to the broadcast address\n" \
773        "        -i iface        Use interface ifname instead of the default \"eth0\"\n" \
774        "        -p pass         Append the four or six byte password PW to the packet"
775
776 #define expr_trivial_usage \
777        "EXPRESSION"
778 #define expr_full_usage \
779        "Prints the value of EXPRESSION to standard output.\n\n" \
780        "EXPRESSION may be:\n" \
781        "        ARG1 |  ARG2    ARG1 if it is neither null nor 0, otherwise ARG2\n" \
782        "        ARG1 &  ARG2    ARG1 if neither argument is null or 0, otherwise 0\n" \
783        "        ARG1 <  ARG2    ARG1 is less than ARG2\n" \
784        "        ARG1 <= ARG2    ARG1 is less than or equal to ARG2\n" \
785        "        ARG1 =  ARG2    ARG1 is equal to ARG2\n" \
786        "        ARG1 != ARG2    ARG1 is unequal to ARG2\n" \
787        "        ARG1 >= ARG2    ARG1 is greater than or equal to ARG2\n" \
788        "        ARG1 >  ARG2    ARG1 is greater than ARG2\n" \
789        "        ARG1 +  ARG2    arithmetic sum of ARG1 and ARG2\n" \
790        "        ARG1 -  ARG2    arithmetic difference of ARG1 and ARG2\n" \
791        "        ARG1 *  ARG2    arithmetic product of ARG1 and ARG2\n" \
792        "        ARG1 /  ARG2    arithmetic quotient of ARG1 divided by ARG2\n" \
793        "        ARG1 %  ARG2    arithmetic remainder of ARG1 divided by ARG2\n" \
794        "        STRING : REGEXP         anchored pattern match of REGEXP in STRING\n" \
795        "        match STRING REGEXP     same as STRING : REGEXP\n" \
796        "        substr STRING POS LENGTH substring of STRING, POS counted from 1\n" \
797        "        index STRING CHARS      index in STRING where any CHARS is found, or 0\n" \
798        "        length STRING           length of STRING\n" \
799        "        quote TOKEN             interpret TOKEN as a string, even if\n" \
800        "                                it is a keyword like 'match' or an\n" \
801        "                                operator like '/'\n" \
802        "        (EXPRESSION)            value of EXPRESSION\n\n" \
803        "Beware that many operators need to be escaped or quoted for shells.\n" \
804        "Comparisons are arithmetic if both ARGs are numbers, else\n" \
805        "lexicographical.  Pattern matches return the string matched between\n" \
806        "\\( and \\) or null; if \\( and \\) are not used, they return the number\n" \
807        "of characters matched or 0."
808
809 #define fakeidentd_trivial_usage \
810        "[-b ip] [STRING]"
811 #define fakeidentd_full_usage \
812        "Returns a set string to auth requests" \
813        "\n\nOptions:\n" \
814        "        -b      Bind to ip address\n" \
815        "        STRING  The ident answer string (default is nobody)"
816
817 #define false_trivial_usage \
818        ""
819 #define false_full_usage \
820        "Return an exit code of FALSE (1)."
821 #define false_example_usage \
822        "$ false\n" \
823        "$ echo $?\n" \
824        "1\n"
825
826 #define fbset_trivial_usage \
827        "[options] [mode]"
828 #define fbset_full_usage \
829        "Show and modify frame buffer settings"
830 #define fbset_example_usage \
831        "$ fbset\n" \
832        "mode \"1024x768-76\"\n" \
833        "        # D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz\n" \
834        "        geometry 1024 768 1024 768 16\n" \
835        "        timings 12714 128 32 16 4 128 4\n" \
836        "        accel false\n" \
837        "        rgba 5/11,6/5,5/0,0/0\n" \
838        "endmode\n"
839
840 #define fdflush_trivial_usage \
841        "DEVICE"
842 #define fdflush_full_usage \
843        "Forces floppy disk drive to detect disk change"
844
845 #define fdformat_trivial_usage \
846        "[-n] DEVICE"
847 #define fdformat_full_usage \
848        "Low-level formats a floppy disk" \
849        "\n\nOptions:\n" \
850        "        -n      Don't verify after format"
851
852 #define fdisk_trivial_usage \
853        "[-luv] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK"
854 #define fdisk_full_usage \
855        "Change partition table" \
856        "\n\nOptions:\n" \
857        "        -l              List partition table(s)\n" \
858        "        -u              Give Start and End in sector (instead of cylinder) units\n" \
859        "        -s PARTITION    Give partition size(s) in blocks\n" \
860        "        -b 2048         (for certain MO disks) use 2048-byte sectors\n" \
861        "        -C CYLINDERS    Set the number of cylinders\n" \
862        "        -H HEADS        Set the number of heads\n" \
863        "        -S SECTORS      Set the number of sectors\n" \
864        "        -v              Give fdisk version"
865
866 #define find_trivial_usage \
867        "[PATH...] [EXPRESSION]"
868 #define find_full_usage \
869        "Search for files in a directory hierarchy.  The default PATH is\n" \
870        "the current directory; default EXPRESSION is '-print'\n" \
871        "\nEXPRESSION may consist of:\n" \
872        "        -follow         Dereference symbolic links\n" \
873        "        -name PATTERN   File name (leading directories removed) matches PATTERN\n" \
874        "        -print          Print (default and assumed)" \
875         USE_FEATURE_FIND_PRINT0( \
876        "\n      -print0         Delimit output with null characters rather than" \
877        "\n                      newlines" \
878         ) USE_FEATURE_FIND_TYPE( \
879        "\n      -type X         Filetype matches X (where X is one of: f,d,l,b,c,...)" \
880         ) USE_FEATURE_FIND_PERM( \
881        "\n      -perm PERMS     Permissions match any of (+NNN); all of (-NNN);" \
882        "\n                      or exactly (NNN)" \
883         ) USE_FEATURE_FIND_MTIME( \
884        "\n      -mtime DAYS     Modified time is greater than (+N); less than (-N);" \
885        "\n                      or exactly (N) days" \
886         ) USE_FEATURE_FIND_MMIN( \
887        "\n      -mmin MINS      Modified time is greater than (+N); less than (-N);" \
888        "\n                      or exactly (N) minutes" \
889         ) USE_FEATURE_FIND_NEWER( \
890        "\n      -newer FILE     Modified time is more recent than FILE's" \
891         ) USE_FEATURE_FIND_INUM( \
892        "\n      -inum N         File has inode number N" \
893         ) USE_FEATURE_FIND_EXEC( \
894        "\n      -exec CMD       Execute CMD with all instances of {} replaced by the" \
895        "\n                      files matching EXPRESSION" \
896         ) USE_DESKTOP( \
897        "\n      -size N         File size is N" \
898        "\n      -prune          Stop traversing current subtree" \
899        "\n      (expr)          Group" \
900         )
901
902 #define find_example_usage \
903        "$ find / -name passwd\n" \
904        "/etc/passwd\n"
905
906 #define fold_trivial_usage \
907        "[-bs] [-w WIDTH] [FILE]"
908 #define fold_full_usage \
909        "Wrap input lines in each FILE (standard input by default), writing to\n" \
910        "standard output" \
911        "\n\nOptions:\n" \
912        "        -b      count bytes rather than columns\n" \
913        "        -s      break at spaces\n" \
914        "        -w      use WIDTH columns instead of 80"
915
916 #define free_trivial_usage \
917        ""
918 #define free_full_usage \
919        "Displays the amount of free and used system memory"
920 #define free_example_usage \
921        "$ free\n" \
922        "              total         used         free       shared      buffers\n" \
923        "  Mem:       257628       248724         8904        59644        93124\n" \
924        " Swap:       128516         8404       120112\n" \
925        "Total:       386144       257128       129016\n" \
926
927 #define freeramdisk_trivial_usage \
928        "DEVICE"
929 #define freeramdisk_full_usage \
930        "Frees all memory used by the specified ramdisk."
931 #define freeramdisk_example_usage \
932        "$ freeramdisk /dev/ram2\n"
933
934 #define fsck_trivial_usage \
935        "[-ANPRTV] [ -C [ fd ] ] [-t fstype] [fs-options] [filesys ...]"
936 #define fsck_full_usage \
937        "Check and repair filesystems" \
938        "\n\nOptions:\n" \
939        "        -A      Walk /etc/fstab and check all filesystems\n" \
940        "        -N      Don't execute, just show what would be done\n" \
941        "        -P      When using -A, check filesystems in parallel\n" \
942        "        -R      When using -A, skip the root filesystem\n" \
943        "        -T      Don't show title on startup\n" \
944        "        -V      Verbose mode\n" \
945        "        -C      Write status information to specified filedescriptor\n" \
946        "        -t      List of filesystem types to check"
947
948 #define fsck_minix_trivial_usage \
949        "[-larvsmf] /dev/name"
950 #define fsck_minix_full_usage \
951        "Performs a consistency check for MINIX filesystems" \
952        "\n\nOptions:\n" \
953        "        -l      Lists all filenames\n" \
954        "        -r      Perform interactive repairs\n" \
955        "        -a      Perform automatic repairs\n" \
956        "        -v      verbose\n" \
957        "        -s      Outputs super-block information\n" \
958        "        -m      Activates MINIX-like \"mode not cleared\" warnings\n" \
959        "        -f      Force file system check"
960
961 #define ftpget_trivial_usage \
962        "[options] remote-host local-file remote-file"
963 #define ftpget_full_usage \
964        "Retrieve a remote file via FTP" \
965        "\n\nOptions:\n" \
966        "        -c, --continue  Continue a previous transfer\n" \
967        "        -v, --verbose   Verbose\n" \
968        "        -u, --username  Username to be used\n" \
969        "        -p, --password  Password to be used\n" \
970        "        -P, --port      Port number to be used"
971
972 #define ftpput_trivial_usage \
973        "[options] remote-host remote-file local-file"
974 #define ftpput_full_usage \
975        "Store a local file on a remote machine via FTP" \
976        "\n\nOptions:\n" \
977        "        -v, --verbose   Verbose\n" \
978        "        -u, --username  Username to be used\n" \
979        "        -p, --password  Password to be used\n" \
980        "        -P, --port      Port number to be used"
981
982 #define fuser_trivial_usage \
983        "[options] file OR port/proto"
984 #define fuser_full_usage \
985        "Options:\n" \
986        "        -m      Show all processes on the same mounted fs\n" \
987        "        -k      Kill all processes that match.\n" \
988        "        -s      Don't print or kill anything.\n" \
989        "        -4      When using port/proto only search IPv4 space\n" \
990        "        -6      When using port/proto only search IPv6 space\n" \
991        "        -SIGNAL When used with -k, this signal will be used to kill"
992
993 #define getopt_trivial_usage \
994        "[OPTIONS]..."
995 #define getopt_full_usage \
996        "Parse command options\n" \
997        "        -a, --alternative               Allow long options starting with single -\n" \
998        "        -l, --longoptions=longopts      Long options to be recognized\n" \
999        "        -n, --name=progname             The name under which errors are reported\n" \
1000        "        -o, --options=optstring         Short options to be recognized\n" \
1001        "        -q, --quiet                     Disable error reporting by getopt(3)\n" \
1002        "        -Q, --quiet-output              No normal output\n" \
1003        "        -s, --shell=shell               Set shell quoting conventions\n" \
1004        "        -T, --test                      Test for getopt(1) version\n" \
1005        "        -u, --unquoted                  Do not quote the output"
1006 #define getopt_example_usage \
1007        "$ cat getopt.test\n" \
1008        "#!/bin/sh\n" \
1009        "GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \\\n" \
1010        "       -n 'example.busybox' -- \"$@\"`\n" \
1011        "if [ $? != 0 ] ; then  exit 1 ; fi\n" \
1012        "eval set -- \"$GETOPT\"\n" \
1013        "while true ; do\n" \
1014        " case $1 in\n" \
1015        "   -a|--a-long) echo \"Option a\" ; shift ;;\n" \
1016        "   -b|--b-long) echo \"Option b, argument '$2'\" ; shift 2 ;;\n" \
1017        "   -c|--c-long)\n" \
1018        "     case \"$2\" in\n" \
1019        "       \"\") echo \"Option c, no argument\"; shift 2 ;;\n" \
1020        "       *)  echo \"Option c, argument '$2'\" ; shift 2 ;;\n" \
1021        "     esac ;;\n" \
1022        "   --) shift ; break ;;\n" \
1023        "   *) echo \"Internal error!\" ; exit 1 ;;\n" \
1024        " esac\n" \
1025        "done\n"
1026
1027 #define getty_trivial_usage \
1028        "[OPTIONS]... baud_rate,... line [termtype]"
1029 #define getty_full_usage \
1030        "Open a tty, prompt for a login name, then invoke /bin/login" \
1031        "\n\nOptions:\n" \
1032        "        -h              Enable hardware (RTS/CTS) flow control\n" \
1033        "        -i              Do not display /etc/issue before running login\n" \
1034        "        -L              Local line, so do not do carrier detect\n" \
1035        "        -m              Get baud rate from modem's CONNECT status message\n" \
1036        "        -w              Wait for a CR or LF before sending /etc/issue\n" \
1037        "        -n              Do not prompt the user for a login name\n" \
1038        "        -f issue_file   Display issue_file instead of /etc/issue\n" \
1039        "        -l login_app    Invoke login_app instead of /bin/login\n" \
1040        "        -t timeout      Terminate after timeout if no username is read\n" \
1041        "        -I initstring   Sets the init string to send before anything else\n" \
1042        "        -H login_host   Log login_host into the utmp file as the hostname"
1043
1044 #define grep_trivial_usage \
1045        "[-rihHnqvso" \
1046         USE_FEATURE_GREP_EGREP_ALIAS("E") \
1047         USE_FEATURE_GREP_CONTEXT("ABC") \
1048        "] PATTERN [FILEs...]"
1049 #define grep_full_usage \
1050        "Search for PATTERN in each FILE or standard input" \
1051        "\n\nOptions:\n" \
1052        "        -H      prefix output lines with filename where match was found\n" \
1053        "        -h      suppress the prefixing filename on output\n" \
1054        "        -r      recurse subdirectories\n" \
1055        "        -i      ignore case distinctions\n" \
1056        "        -l      list names of files that match\n" \
1057        "        -L      list names of files that do not match\n" \
1058        "        -n      print line number with output lines\n" \
1059        "        -q      be quiet. Returns 0 if PATTERN was found, 1 otherwise\n" \
1060        "        -v      select non-matching lines\n" \
1061        "        -s      suppress file open/read error messages\n" \
1062        "        -c      only print count of matching lines\n" \
1063        "        -f      read PATTERN from file\n" \
1064        "        -o      show only the part of a line that matches PATTERN\n" \
1065        "        -e      PATTERN is a regular expression\n" \
1066        "        -F      PATTERN is a set of newline-separated strings" \
1067         USE_FEATURE_GREP_EGREP_ALIAS( \
1068        "\n      -E      PATTERN is an extended regular expression") \
1069         USE_FEATURE_GREP_CONTEXT( \
1070        "\n      -A      print NUM lines of trailing context") \
1071         USE_FEATURE_GREP_CONTEXT( \
1072        "\n      -B      print NUM lines of leading context") \
1073         USE_FEATURE_GREP_CONTEXT( \
1074        "\n      -C      print NUM lines of output context")
1075
1076 #define grep_example_usage \
1077        "$ grep root /etc/passwd\n" \
1078        "root:x:0:0:root:/root:/bin/bash\n" \
1079        "$ grep ^[rR]oo. /etc/passwd\n" \
1080        "root:x:0:0:root:/root:/bin/bash\n"
1081
1082 #define gunzip_trivial_usage \
1083        "[OPTION]... FILE"
1084 #define gunzip_full_usage \
1085        "Uncompress FILE (or standard input if FILE is '-')" \
1086        "\n\nOptions:\n" \
1087        "        -c      Write output to standard output\n" \
1088        "        -f      Force read when source is a terminal\n" \
1089        "        -t      Test compressed file integrity"
1090 #define gunzip_example_usage \
1091        "$ ls -la /tmp/BusyBox*\n" \
1092        "-rw-rw-r--    1 andersen andersen   557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz\n" \
1093        "$ gunzip /tmp/BusyBox-0.43.tar.gz\n" \
1094        "$ ls -la /tmp/BusyBox*\n" \
1095        "-rw-rw-r--    1 andersen andersen  1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar\n"
1096
1097 #define gzip_trivial_usage \
1098        "[OPTION]... [FILE]..."
1099 #define gzip_full_usage \
1100        "Compress FILE(s) with maximum compression.\n" \
1101        "When FILE is '-' or unspecified, reads standard input.  Implies -c." \
1102        "\n\nOptions:\n" \
1103        "        -c      Write output to standard output instead of FILE.gz\n" \
1104        "        -d      Decompress\n" \
1105        "        -f      Force write when destination is a terminal"
1106 #define gzip_example_usage \
1107        "$ ls -la /tmp/busybox*\n" \
1108        "-rw-rw-r--    1 andersen andersen  1761280 Apr 14 17:47 /tmp/busybox.tar\n" \
1109        "$ gzip /tmp/busybox.tar\n" \
1110        "$ ls -la /tmp/busybox*\n" \
1111        "-rw-rw-r--    1 andersen andersen   554058 Apr 14 17:49 /tmp/busybox.tar.gz\n"
1112
1113 #define halt_trivial_usage \
1114        "[-d<delay>] [-n<nosync>] [-f<force>]"
1115 #define halt_full_usage \
1116        "Halt the system" \
1117        "\n\nOptions:\n" \
1118        "        -d      delay interval for halting\n" \
1119        "        -n      no call to sync()\n" \
1120        "        -f      force halt (don't go through init)"
1121
1122 #define hdparm_trivial_usage \
1123        "[options] [device] .."
1124 #define hdparm_full_usage \
1125         USE_FEATURE_HDPARM_GET_IDENTITY( \
1126        "If no device name is specified try to read from stdin.\n\n") \
1127        "Options:\n" \
1128        "        -a      get/set fs readahead\n" \
1129        "        -A      set drive read-lookahead flag (0/1)\n" \
1130        "        -b      get/set bus state (0 == off, 1 == on, 2 == tristate)\n" \
1131        "        -B      set Advanced Power Management setting (1-255)\n" \
1132        "        -c      get/set IDE 32-bit IO setting\n" \
1133        "        -C      check IDE power mode status\n" \
1134         USE_FEATURE_HDPARM_HDIO_GETSET_DMA( \
1135        "        -d      get/set using_dma flag\n") \
1136        "        -D      enable/disable drive defect-mgmt\n" \
1137        "        -f      flush buffer cache for device on exit\n" \
1138        "        -g      display drive geometry\n" \
1139        "        -h      display terse usage information\n" \
1140         USE_FEATURE_HDPARM_GET_IDENTITY( \
1141        "        -i      display drive identification\n") \
1142         USE_FEATURE_HDPARM_GET_IDENTITY( \
1143        "        -I      detailed/current information directly from drive\n") \
1144        "        -k      get/set keep_settings_over_reset flag (0/1)\n" \
1145        "        -K      set drive keep_features_over_reset flag (0/1)\n" \
1146        "        -L      set drive doorlock (0/1) (removable harddisks only)\n" \
1147        "        -m      get/set multiple sector count\n" \
1148        "        -n      get/set ignore-write-errors flag (0/1)\n" \
1149        "        -p      set PIO mode on IDE interface chipset (0,1,2,3,4,...)\n" \
1150        "        -P      set drive prefetch count\n" \
1151        "        -q      change next setting quietly\n" \
1152        "        -Q      get/set DMA tagged-queuing depth (if supported)\n" \
1153        "        -r      get/set readonly flag (DANGEROUS to set)\n" \
1154         USE_FEATURE_HDPARM_HDIO_SCAN_HWIF( \
1155        "        -R      register an IDE interface (DANGEROUS)\n") \
1156        "        -S      set standby (spindown) timeout\n" \
1157        "        -t      perform device read timings\n" \
1158        "        -T      perform cache read timings\n" \
1159        "        -u      get/set unmaskirq flag (0/1)\n" \
1160         USE_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF( \
1161        "        -U      un-register an IDE interface (DANGEROUS)\n") \
1162        "        -v      defaults; same as -mcudkrag for IDE drives\n" \
1163        "        -V      display program version and exit immediately\n" \
1164         USE_FEATURE_HDPARM_HDIO_DRIVE_RESET( \
1165        "        -w      perform device reset (DANGEROUS)\n") \
1166        "        -W      set drive write-caching flag (0/1) (DANGEROUS)\n" \
1167         USE_FEATURE_HDPARM_HDIO_TRISTATE_HWIF( \
1168        "        -x      tristate device for hotswap (0/1) (DANGEROUS)\n") \
1169        "        -X      set IDE xfer mode (DANGEROUS)\n" \
1170        "        -y      put IDE drive in standby mode\n" \
1171        "        -Y      put IDE drive to sleep\n" \
1172        "        -Z      disable Seagate auto-powersaving mode\n" \
1173        "        -z      re-read partition table"
1174
1175 #define head_trivial_usage \
1176        "[OPTION]... [FILE]..."
1177 #define head_full_usage \
1178        "Print first 10 lines of each FILE to standard output.\n" \
1179        "With more than one FILE, precede each with a header giving the\n" \
1180        "file name. With no FILE, or when FILE is -, read standard input" \
1181        "\n\nOptions:" \
1182        "\n      -n NUM  Print first NUM lines instead of first 10" \
1183         USE_FEATURE_FANCY_HEAD( \
1184        "\n      -c NUM  output the first NUM bytes" \
1185        "\n      -q      never output headers giving file names" \
1186        "\n      -v      always output headers giving file names")
1187 #define head_example_usage \
1188        "$ head -n 2 /etc/passwd\n" \
1189        "root:x:0:0:root:/root:/bin/bash\n" \
1190        "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n"
1191
1192 #define hexdump_trivial_usage \
1193        "[-[bcCdefnosvx]] [OPTION] FILE"
1194 #define hexdump_full_usage \
1195        "The hexdump utility is a filter which displays the specified files,\n" \
1196        "or the standard input, if no files are specified, in a user specified\n" \
1197        "format" \
1198        "\n\nOptions:\n" \
1199        "        -b              One-byte octal display\n" \
1200        "        -c              One-byte character display\n" \
1201        "        -C              Canonical hex+ASCII, 16 bytes per line\n" \
1202        "        -d              Two-byte decimal display\n" \
1203        "        -e FORMAT STRING\n" \
1204        "        -f FORMAT FILE\n" \
1205        "        -n LENGTH       Interpret only length bytes of input\n" \
1206        "        -o              Two-byte octal display\n" \
1207        "        -s OFFSET       Skip offset byte\n" \
1208        "        -v              display all input data\n" \
1209        "        -x              Two-byte hexadecimal display"
1210
1211 #define hostid_trivial_usage \
1212        ""
1213 #define hostid_full_usage \
1214        "Print out a unique 32-bit identifier for the machine."
1215
1216 #define hostname_trivial_usage \
1217        "[OPTION] {hostname | -F FILE}"
1218 #define hostname_full_usage \
1219        "Get or set the hostname or DNS domain name. If a hostname is given\n" \
1220        "(or FILE with the -F parameter), the host name will be set." \
1221        "\n\nOptions:\n" \
1222        "        -s      Short\n" \
1223        "        -i      Addresses for the hostname\n" \
1224        "        -d      DNS domain name\n" \
1225        "        -f      Fully qualified domain name\n" \
1226        "        -F FILE Use the contents of FILE to specify the hostname"
1227 #define hostname_example_usage \
1228        "$ hostname\n" \
1229        "sage\n"
1230
1231 #define httpd_trivial_usage \
1232        "[-c <conf file>]" \
1233        " [-p <port>]" \
1234        " [-i] [-f]" \
1235         USE_FEATURE_HTTPD_SETUID(" [-u user[:grp]]") \
1236         USE_FEATURE_HTTPD_BASIC_AUTH(" [-r <realm>]") \
1237         USE_FEATURE_HTTPD_AUTH_MD5(" [-m pass]") \
1238        " [-h home]" \
1239        " [-d/-e <string>]"
1240 #define httpd_full_usage \
1241        "Listens for incoming http server requests" \
1242        "\n\nOptions:\n" \
1243        "        -c FILE         Specifies configuration file. (default httpd.conf)\n" \
1244        "        -p PORT         Server port (default 80)\n" \
1245        "        -i              Assume that we are started from inetd\n" \
1246        "        -f              Do not daemonize\n" \
1247         USE_FEATURE_HTTPD_SETUID( \
1248        "        -u USER[:GRP]   Set uid/gid after binding to port\n") \
1249         USE_FEATURE_HTTPD_BASIC_AUTH( \
1250        "        -r REALM        Authentication Realm for Basic Authentication\n") \
1251         USE_FEATURE_HTTPD_AUTH_MD5( \
1252        "        -m PASS         Crypt PASS with md5 algorithm\n") \
1253        "        -h HOME         Specifies http HOME directory (default ./)\n" \
1254        "        -e STRING       HTML encode STRING\n" \
1255        "        -d STRING       URL decode STRING"
1256
1257 #define hwclock_trivial_usage \
1258        "[-r|--show] [-s|--hctosys] [-w|--systohc] [-l|--localtime] [-u|--utc]"
1259 #define hwclock_full_usage \
1260        "Query and set the hardware clock (RTC)" \
1261        "\n\nOptions:\n" \
1262        "        -r      read hardware clock and print result\n" \
1263        "        -s      set the system time from the hardware clock\n" \
1264        "        -w      set the hardware clock to the current system time\n" \
1265        "        -u      the hardware clock is kept in coordinated universal time\n" \
1266        "        -l      the hardware clock is kept in local time"
1267
1268 #define id_trivial_usage \
1269        "[OPTIONS]... [USERNAME]"
1270 #define id_full_usage \
1271        "Print information for USERNAME or the current user" \
1272        "\n\nOptions:\n" \
1273         USE_SELINUX( \
1274        "        -c      prints only the security context\n") \
1275        "        -g      prints only the group ID\n" \
1276        "        -u      prints only the user ID\n" \
1277        "        -n      print a name instead of a number\n" \
1278        "        -r      prints the real user ID instead of the effective ID"
1279 #define id_example_usage \
1280        "$ id\n" \
1281        "uid=1000(andersen) gid=1000(andersen)\n"
1282
1283 #define ifconfig_trivial_usage \
1284         USE_FEATURE_IFCONFIG_STATUS("[-a]") " <interface> [<address>]"
1285 #define ifconfig_full_usage \
1286        "Configure a network interface" \
1287        "\n\nOptions:\n" \
1288         USE_FEATURE_IPV6( \
1289        "        [add <address>[/<prefixlen>]]\n") \
1290         USE_FEATURE_IPV6( \
1291        "        [del <address>[/<prefixlen>]]\n") \
1292        "        [[-]broadcast [<address>]] [[-]pointopoint [<address>]]\n" \
1293        "        [netmask <address>] [dstaddr <address>]\n" \
1294         USE_FEATURE_IFCONFIG_SLIP( \
1295        "        [outfill <NN>] [keepalive <NN>]\n") \
1296        "        " USE_FEATURE_IFCONFIG_HW("[hw ether <address>] ") "[metric <NN>] [mtu <NN>]\n" \
1297        "        [[-]trailers] [[-]arp] [[-]allmulti]\n" \
1298        "        [multicast] [[-]promisc] [txqueuelen <NN>] [[-]dynamic]\n" \
1299         USE_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ( \
1300        "        [mem_start <NN>] [io_addr <NN>] [irq <NN>]\n") \
1301        "        [up|down] ..."
1302
1303 #define ifup_trivial_usage \
1304        "<-ahinv> <ifaces...>"
1305 #define ifup_full_usage \
1306        "Options:\n" \
1307        "        -h      this help\n" \
1308        "        -a      de/configure all interfaces automatically\n" \
1309        "        -i FILE use FILE for interface definitions\n" \
1310        "        -n      print out what would happen, but don't do it\n" \
1311        "                (note that this option doesn't disable mappings)\n" \
1312        "        -v      print out what would happen before doing it\n" \
1313        "        -m      don't run any mappings\n" \
1314        "        -f      force de/configuration"
1315
1316 #define ifdown_trivial_usage \
1317        "<-ahinv> <ifaces...>"
1318 #define ifdown_full_usage \
1319        "Options:\n" \
1320        "        -h      this help\n" \
1321        "        -a      de/configure all interfaces automatically\n" \
1322        "        -i FILE use FILE for interface definitions\n" \
1323        "        -n      print out what would happen, but don't do it\n" \
1324        "                (note that this option doesn't disable mappings)\n" \
1325        "        -v      print out what would happen before doing it\n" \
1326        "        -m      don't run any mappings\n" \
1327        "        -f      force de/configuration"
1328
1329 #define inetd_trivial_usage \
1330        "[-f] [-q len] [conf]"
1331 #define inetd_full_usage \
1332        "Listens for network connections and launches programs" \
1333        "\n\nOptions:\n" \
1334        "        -f      Run as a foreground progress\n" \
1335        "        -q      Sets the size of the socket listen queue to\n" \
1336        "                the specified value. Default is 128"
1337
1338 #define init_trivial_usage \
1339        ""
1340 #define init_full_usage \
1341        "Init is the parent of all processes."
1342 #define init_notes_usage \
1343 "This version of init is designed to be run only by the kernel.\n" \
1344 "\n" \
1345 "BusyBox init doesn't support multiple runlevels.  The runlevels field of\n" \
1346 "the /etc/inittab file is completely ignored by BusyBox init. If you want\n" \
1347 "runlevels, use sysvinit.\n" \
1348 "\n" \
1349 "BusyBox init works just fine without an inittab.  If no inittab is found,\n" \
1350 "it has the following default behavior:\n" \
1351 "\n" \
1352 "       ::sysinit:/etc/init.d/rcS\n" \
1353 "       ::askfirst:/bin/sh\n" \
1354 "       ::ctrlaltdel:/sbin/reboot\n" \
1355 "       ::shutdown:/sbin/swapoff -a\n" \
1356 "       ::shutdown:/bin/umount -a -r\n" \
1357 "       ::restart:/sbin/init\n" \
1358 "\n" \
1359 "if it detects that /dev/console is _not_ a serial console, it will also run:\n" \
1360 "\n" \
1361 "       tty2::askfirst:/bin/sh\n" \
1362 "       tty3::askfirst:/bin/sh\n" \
1363 "       tty4::askfirst:/bin/sh\n" \
1364 "\n" \
1365 "If you choose to use an /etc/inittab file, the inittab entry format is as follows:\n" \
1366 "\n" \
1367 "       <id>:<runlevels>:<action>:<process>\n" \
1368 "\n" \
1369 "       <id>:\n" \
1370 "\n" \
1371 "               WARNING: This field has a non-traditional meaning for BusyBox init!\n" \
1372 "               The id field is used by BusyBox init to specify the controlling tty for\n" \
1373 "               the specified process to run on.  The contents of this field are\n" \
1374 "               appended to \"/dev/\" and used as-is.  There is no need for this field to\n" \
1375 "               be unique, although if it isn't you may have strange results.  If this\n" \
1376 "               field is left blank, the controlling tty is set to the console.  Also\n" \
1377 "               note that if BusyBox detects that a serial console is in use, then only\n" \
1378 "               entries whose controlling tty is either the serial console or /dev/null\n" \
1379 "               will be run.  BusyBox init does nothing with utmp.  We don't need no\n" \
1380 "               stinkin' utmp.\n" \
1381 "\n" \
1382 "       <runlevels>:\n" \
1383 "\n" \
1384 "               The runlevels field is completely ignored.\n" \
1385 "\n" \
1386 "       <action>:\n" \
1387 "\n" \
1388 "               Valid actions include: sysinit, respawn, askfirst, wait,\n" \
1389 "               once, restart, ctrlaltdel, and shutdown.\n" \
1390 "\n" \
1391 "               The available actions can be classified into two groups: actions\n" \
1392 "               that are run only once, and actions that are re-run when the specified\n" \
1393 "               process exits.\n" \
1394 "\n" \
1395 "               Run only-once actions:\n" \
1396 "\n" \
1397 "                       'sysinit' is the first item run on boot.  init waits until all\n" \
1398 "                       sysinit actions are completed before continuing.  Following the\n" \
1399 "                       completion of all sysinit actions, all 'wait' actions are run.\n" \
1400 "                       'wait' actions, like  'sysinit' actions, cause init to wait until\n" \
1401 "                       the specified task completes.  'once' actions are asynchronous,\n" \
1402 "                       therefore, init does not wait for them to complete.  'restart' is\n" \
1403 "                       the action taken to restart the init process.  By default this should\n" \
1404 "                       simply run /sbin/init, but can be a script which runs pivot_root or it\n" \
1405 "                       can do all sorts of other interesting things.  The 'ctrlaltdel' init\n" \
1406 "                       actions are run when the system detects that someone on the system\n" \
1407 "                       console has pressed the CTRL-ALT-DEL key combination.  Typically one\n" \
1408 "                       wants to run 'reboot' at this point to cause the system to reboot.\n" \
1409 "                       Finally the 'shutdown' action specifies the actions to taken when\n" \
1410 "                       init is told to reboot.  Unmounting filesystems and disabling swap\n" \
1411 "                       is a very good here\n" \
1412 "\n" \
1413 "               Run repeatedly actions:\n" \
1414 "\n" \
1415 "                       'respawn' actions are run after the 'once' actions.  When a process\n" \
1416 "                       started with a 'respawn' action exits, init automatically restarts\n" \
1417 "                       it.  Unlike sysvinit, BusyBox init does not stop processes from\n" \
1418 "                       respawning out of control.  The 'askfirst' actions acts just like\n" \
1419 "                       respawn, except that before running the specified process it\n" \
1420 "                       displays the line \"Please press Enter to activate this console.\"\n" \
1421 "                       and then waits for the user to press enter before starting the\n" \
1422 "                       specified process.\n" \
1423 "\n" \
1424 "               Unrecognized actions (like initdefault) will cause init to emit an\n" \
1425 "               error message, and then go along with its business.  All actions are\n" \
1426 "               run in the order they appear in /etc/inittab.\n" \
1427 "\n" \
1428 "       <process>:\n" \
1429 "\n" \
1430 "               Specifies the process to be executed and its command line.\n" \
1431 "\n" \
1432 "Example /etc/inittab file:\n" \
1433 "\n" \
1434 "       # This is run first except when booting in single-user mode.\n" \
1435 "       #\n" \
1436 "       ::sysinit:/etc/init.d/rcS\n" \
1437 "       \n" \
1438 "       # /bin/sh invocations on selected ttys\n" \
1439 "       #\n" \
1440 "       # Start an \"askfirst\" shell on the console (whatever that may be)\n" \
1441 "       ::askfirst:-/bin/sh\n" \
1442 "       # Start an \"askfirst\" shell on /dev/tty2-4\n" \
1443 "       tty2::askfirst:-/bin/sh\n" \
1444 "       tty3::askfirst:-/bin/sh\n" \
1445 "       tty4::askfirst:-/bin/sh\n" \
1446 "       \n" \
1447 "       # /sbin/getty invocations for selected ttys\n" \
1448 "       #\n" \
1449 "       tty4::respawn:/sbin/getty 38400 tty4\n" \
1450 "       tty5::respawn:/sbin/getty 38400 tty5\n" \
1451 "       \n" \
1452 "       \n" \
1453 "       # Example of how to put a getty on a serial line (for a terminal)\n" \
1454 "       #\n" \
1455 "       #::respawn:/sbin/getty -L ttyS0 9600 vt100\n" \
1456 "       #::respawn:/sbin/getty -L ttyS1 9600 vt100\n" \
1457 "       #\n" \
1458 "       # Example how to put a getty on a modem line.\n" \
1459 "       #::respawn:/sbin/getty 57600 ttyS2\n" \
1460 "       \n" \
1461 "       # Stuff to do when restarting the init process\n" \
1462 "       ::restart:/sbin/init\n" \
1463 "       \n" \
1464 "       # Stuff to do before rebooting\n" \
1465 "       ::ctrlaltdel:/sbin/reboot\n" \
1466 "       ::shutdown:/bin/umount -a -r\n" \
1467 "       ::shutdown:/sbin/swapoff -a\n"
1468
1469 #define insmod_trivial_usage \
1470        "[OPTION]... MODULE [symbol=value]..."
1471 #define insmod_full_usage \
1472        "Loads the specified kernel modules into the kernel" \
1473        "\n\nOptions:\n" \
1474        "        -f      Force module to load into the wrong kernel version\n" \
1475        "        -k      Make module autoclean-able\n" \
1476        "        -v      verbose output\n"  \
1477        "        -q      quiet output\n" \
1478        "        -L      Lock to prevent simultaneous loads of a module\n" \
1479         USE_FEATURE_INSMOD_LOAD_MAP( \
1480        "        -m      Output load map to stdout\n") \
1481        "        -o NAME Set internal module name to NAME\n" \
1482        "        -x      do not export externs"
1483
1484 #define install_trivial_usage \
1485        "[-cgmops] [sources] <dest|directory>"
1486 #define install_full_usage \
1487        "Copies files and set attributes" \
1488        "\n\nOptions:\n" \
1489        "        -c      copy the file, default\n" \
1490        "        -d      create directories\n" \
1491        "        -g      set group ownership\n" \
1492        "        -m      set permission modes\n" \
1493        "        -o      set ownership\n" \
1494        "        -p      preserve date\n" \
1495        "        -s      strip symbol tables"
1496
1497 #define ip_trivial_usage \
1498        "[OPTIONS] {address | link | route | tunnel | rule} {COMMAND}"
1499 #define ip_full_usage \
1500        "ip [OPTIONS] OBJECT {COMMAND}\n" \
1501        "where  OBJECT := {link | addr | route | tunnel |rule}\n" \
1502        "OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }"
1503
1504 #define ipaddr_trivial_usage \
1505        "{ {add|del} IFADDR dev STRING | {show|flush}\n" \
1506        "                [ dev STRING ] [ to PREFIX ] }"
1507 #define ipaddr_full_usage \
1508        "ipaddr {add|delete} IFADDR dev STRING\n" \
1509        "ipaddr {show|flush} [ dev STRING ] [ scope SCOPE-ID ]\n" \
1510        "        [ to PREFIX ] [ label PATTERN ]\n" \
1511        "        IFADDR := PREFIX | ADDR peer PREFIX\n" \
1512        "        [ broadcast ADDR ] [ anycast ADDR ]\n" \
1513        "        [ label STRING ] [ scope SCOPE-ID ]\n" \
1514        "        SCOPE-ID := [ host | link | global | NUMBER ]"
1515
1516 #define ipcalc_trivial_usage \
1517        "[OPTION]... <ADDRESS>[[/]<NETMASK>] [NETMASK]"
1518 #define ipcalc_full_usage \
1519        "Calculate IP network settings from a IP address" \
1520        "\n\nOptions:\n" \
1521        "        -b      --broadcast     Display calculated broadcast address\n" \
1522        "        -n      --network       Display calculated network address\n" \
1523        "        -m      --netmask       Display default netmask for IP" \
1524         USE_FEATURE_IPCALC_FANCY( \
1525        "\n      -p      --prefix        Display the prefix for IP/NETMASK\n" \
1526        "        -h      --hostname      Display first resolved host name\n" \
1527        "        -s      --silent        Don't ever display error messages")
1528
1529 #define ipcrm_trivial_usage \
1530        "[-[MQS] key] [-[mqs] id]"
1531 #define ipcrm_full_usage \
1532        "The upper-case options MQS are used to remove a shared memory segment by a\n" \
1533        "segment by a shmkey value. The lower-case options mqs are used\n" \
1534        "to remove a segment by shmid value.\n" \
1535        "        -[mM]   Remove the memory segment after the last detach\n" \
1536        "        -[qQ]   Remove the message queue\n" \
1537        "        -[sS]   Remove the semaphore"
1538
1539 #define ipcs_trivial_usage \
1540        "[[-smq] -i shmid] | [[-asmq] [-tcplu]]"
1541 #define ipcs_full_usage \
1542        "        -i      specify a specific resource id\n" \
1543        "Resource specification:\n" \
1544        "        -m      shared memory segments\n" \
1545        "        -q      message queues\n" \
1546        "        -s      semaphore arrays\n" \
1547        "        -a      all (default)\n" \
1548        "Output format:\n" \
1549        "        -t      time\n" \
1550        "        -c      creator\n" \
1551        "        -p      pid\n" \
1552        "        -l      limits\n" \
1553        "        -u      summary"
1554
1555 #define iplink_trivial_usage \
1556        "{ set DEVICE { up | down | arp { on | off } | show [ DEVICE ] }"
1557 #define iplink_full_usage \
1558        "iplink set DEVICE { up | down | arp { on | off } |\n" \
1559        "                        dynamic { on | off } |\n" \
1560        "                        mtu MTU }\n" \
1561        "        iplink show [ DEVICE ]"
1562
1563 #define iproute_trivial_usage \
1564        "{ list | flush | { add | del | change | append |\n" \
1565        "                replace | monitor } ROUTE }"
1566 #define iproute_full_usage \
1567        "iproute { list | flush } SELECTOR\n" \
1568        "iproute get ADDRESS [ from ADDRESS iif STRING ]\n" \
1569        "                        [ oif STRING ]  [ tos TOS ]\n" \
1570        "        iproute { add | del | change | append | replace | monitor } ROUTE\n" \
1571        "                        SELECTOR := [ root PREFIX ] [ match PREFIX ] [ proto RTPROTO ]\n" \
1572        "                        ROUTE := [ TYPE ] PREFIX [ tos TOS ] [ proto RTPROTO ]"
1573
1574 #define iprule_trivial_usage \
1575        "{[ list | add | del ] RULE}"
1576 #define iprule_full_usage \
1577        "iprule [ list | add | del ] SELECTOR ACTION\n" \
1578        "        SELECTOR := [ from PREFIX ] [ to PREFIX ] [ tos TOS ] [ fwmark FWMARK ]\n" \
1579        "                        [ dev STRING ] [ pref NUMBER ]\n" \
1580        "        ACTION := [ table TABLE_ID ] [ nat ADDRESS ]\n" \
1581        "                        [ prohibit | reject | unreachable ]\n" \
1582        "                        [ realms [SRCREALM/]DSTREALM ]\n" \
1583        "        TABLE_ID := [ local | main | default | NUMBER ]"
1584
1585 #define iptunnel_trivial_usage \
1586        "{ add | change | del | show } [ NAME ]\n" \
1587        "        [ mode { ipip | gre | sit } ]\n" \
1588        "        [ remote ADDR ] [ local ADDR ] [ ttl TTL ]"
1589 #define iptunnel_full_usage \
1590        "iptunnel { add | change | del | show } [ NAME ]\n" \
1591        "        [ mode { ipip | gre | sit } ] [ remote ADDR ] [ local ADDR ]\n" \
1592        "        [ [i|o]seq ] [ [i|o]key KEY ] [ [i|o]csum ]\n" \
1593        "        [ ttl TTL ] [ tos TOS ] [ [no]pmtudisc ] [ dev PHYS_DEV ]"
1594
1595 #define kill_trivial_usage \
1596        "[-l] [-signal] process-id [process-id ...]"
1597 #define kill_full_usage \
1598        "Send a signal (default is TERM) to the specified process(es)" \
1599        "\n\nOptions:\n" \
1600        "        -l      List all signal names and numbers"
1601 #define kill_example_usage \
1602        "$ ps | grep apache\n" \
1603        "252 root     root     S [apache]\n" \
1604        "263 www-data www-data S [apache]\n" \
1605        "264 www-data www-data S [apache]\n" \
1606        "265 www-data www-data S [apache]\n" \
1607        "266 www-data www-data S [apache]\n" \
1608        "267 www-data www-data S [apache]\n" \
1609        "$ kill 252\n"
1610
1611 #define killall_trivial_usage \
1612        "[-l] [-q] [-signal] process-name [process-name ...]"
1613 #define killall_full_usage \
1614        "Send a signal (default is TERM) to the specified process(es)" \
1615        "\n\nOptions:\n" \
1616        "        -l      List all signal names and numbers\n" \
1617        "        -q      Do not complain if no processes were killed"
1618 #define killall_example_usage \
1619        "$ killall apache\n"
1620
1621 #define killall5_trivial_usage \
1622        "[-l] [-signal]"
1623 #define killall5_full_usage \
1624        "Send a signal (default is TERM) to all processes outside current session" \
1625        "\n\nOptions:\n" \
1626        "        -l      List all signal names and numbers\n" \
1627
1628 #define klogd_trivial_usage \
1629        "[-c n] [-n]"
1630 #define klogd_full_usage \
1631        "Kernel logger" \
1632        "\n\nOptions:\n" \
1633        "        -c n    Sets the default log level of console messages to n\n" \
1634        "        -n      Run as a foreground process"
1635
1636 #define length_trivial_usage \
1637        "STRING"
1638 #define length_full_usage \
1639        "Prints out the length of the specified STRING."
1640 #define length_example_usage \
1641        "$ length Hello\n" \
1642        "5\n"
1643
1644 #define less_trivial_usage \
1645        "[-EMNmh~?] FILE1 FILE2..."
1646 #define less_full_usage \
1647        "View a file or list of files. The position within files can be\n" \
1648        "changed, and files can be manipulated in various ways" \
1649        "\n\nOptions:\n" \
1650        "        -E      Quit once the end of a file is reached\n" \
1651        "        -M      Display a status line containing the current line numbers\n" \
1652        "                and the percentage through the file\n" \
1653        "        -N      Prefix line numbers to each line\n" \
1654        "        -m      Display a status line containing the percentage through the\n" \
1655        "                file\n" \
1656        "        -~      Suppress ~s displayed when input past the end of the file is\n" \
1657        "                reached.\n" \
1658        "        -h, -?  Display this help message"
1659
1660 #define setarch_trivial_usage \
1661        "<personality> <program> [args ...]"
1662 #define setarch_full_usage \
1663        "Personality may be:\n" \
1664        "        linux32 Set 32bit uname emulation\n" \
1665        "        linux64 Set 64bit uname emulation"
1666
1667 #define ln_trivial_usage \
1668        "[OPTION] TARGET... LINK_NAME|DIRECTORY"
1669 #define ln_full_usage \
1670        "Create a link named LINK_NAME or DIRECTORY to the specified TARGET.\n" \
1671        "You may use '--' to indicate that all following arguments are non-options." \
1672        "\n\nOptions:\n" \
1673        "        -s      make symbolic links instead of hard links\n" \
1674        "        -f      remove existing destination files\n" \
1675        "        -n      no dereference symlinks - treat like normal file\n" \
1676        "        -b      make a backup of the target (if exists) before link operation\n" \
1677        "        -S suffix       use suffix instead of ~ when making backup files"
1678 #define ln_example_usage \
1679        "$ ln -s BusyBox /tmp/ls\n" \
1680        "$ ls -l /tmp/ls\n" \
1681        "lrwxrwxrwx    1 root     root            7 Apr 12 18:39 ls -> BusyBox*\n"
1682
1683 #define loadfont_trivial_usage \
1684        "< font"
1685 #define loadfont_full_usage \
1686        "Loads a console font from standard input."
1687 #define loadfont_example_usage \
1688        "$ loadfont < /etc/i18n/fontname\n"
1689
1690 #define loadkmap_trivial_usage \
1691        "< keymap"
1692 #define loadkmap_full_usage \
1693        "Loads a binary keyboard translation table from standard input."
1694 #define loadkmap_example_usage \
1695        "$ loadkmap < /etc/i18n/lang-keymap\n"
1696
1697 #define logger_trivial_usage \
1698        "[OPTION]... [MESSAGE]"
1699 #define logger_full_usage \
1700        "Write MESSAGE to the system log.  If MESSAGE is omitted, log stdin." \
1701        "\n\nOptions:\n" \
1702        "        -s      Log to stderr as well as the system log\n" \
1703        "        -t TAG  Log using the specified tag (defaults to user name)\n" \
1704        "        -p PRIORITY     Enter the message with the specified priority\n" \
1705        "                This may be numerical or a 'facility.level' pair"
1706 #define logger_example_usage \
1707        "$ logger \"hello\"\n"
1708
1709 #define login_trivial_usage \
1710        "[OPTION]... [username] [ENV=VAR ...]"
1711 #define login_full_usage \
1712        "Begin a new session on the system" \
1713        "\n\nOptions:\n" \
1714        "        -f      Do not authenticate (user already authenticated)\n" \
1715        "        -h      Name of the remote host for this login\n" \
1716        "        -p      Preserve environment"
1717
1718 #define logname_trivial_usage \
1719        ""
1720 #define logname_full_usage \
1721        "Print the name of the current user."
1722 #define logname_example_usage \
1723        "$ logname\n" \
1724        "root\n"
1725
1726 #define logread_trivial_usage \
1727        "[OPTION]..."
1728 #define logread_full_usage \
1729        "Shows the messages from syslogd (using circular buffer)" \
1730        "\n\nOptions:\n" \
1731        "        -f      output data as the log grows"
1732
1733 #define losetup_trivial_usage \
1734        "[-o OFFSET] [-d] LOOPDEVICE [FILE]]"
1735 #define losetup_full_usage \
1736        "(Dis)associate LOOPDEVICE with FILE, or display current associations" \
1737        "\n\nOptions:\n" \
1738        "        -d              Disassociate LOOPDEVICE\n" \
1739        "        -o OFFSET       Start OFFSET bytes into FILE"
1740 #define losetup_notes_usage \
1741        "No arguments will display all current associations.\n" \
1742        "One argument (losetup /dev/loop1) will display the current association\n" \
1743        "(if any), or disassociate it (with -d).  The display shows the offset\n" \
1744        "and filename of the file the loop device is currently bound to.\n\n" \
1745        "Two arguments (losetup /dev/loop1 file.img) create a new association,\n" \
1746        "with an optional offset (-o 12345).  Encryption is not yet supported.\n\n"
1747
1748 #define ls_trivial_usage \
1749        "[-1Aa" USE_FEATURE_LS_TIMESTAMPS("c") "Cd" \
1750         USE_FEATURE_LS_TIMESTAMPS("e")  USE_FEATURE_LS_FILETYPES("F") "iln" \
1751         USE_FEATURE_LS_FILETYPES("p") USE_FEATURE_LS_FOLLOWLINKS("L") \
1752         USE_FEATURE_LS_RECURSIVE("R") USE_FEATURE_LS_SORTFILES("rS") "s" \
1753         USE_FEATURE_AUTOWIDTH("T") USE_FEATURE_LS_TIMESTAMPS("tu") \
1754         USE_FEATURE_LS_SORTFILES("v") USE_FEATURE_AUTOWIDTH("w") "x" \
1755         USE_FEATURE_LS_SORTFILES("X") USE_FEATURE_HUMAN_READABLE("h") "k" \
1756         USE_SELINUX("K") "] [filenames...]"
1757 #define ls_full_usage \
1758        "List directory contents" \
1759        "\n\nOptions:" \
1760        "\n      -1      list files in a single column" \
1761        "\n      -A      do not list implied . and .." \
1762        "\n      -a      do not hide entries starting with ." \
1763        "\n      -C      list entries by columns" \
1764         USE_FEATURE_LS_TIMESTAMPS( \
1765        "\n      -c      with -l: show ctime") \
1766         USE_FEATURE_LS_COLOR( \
1767        "\n      --color[={always,never,auto}]   control coloring") \
1768        "\n      -d      list directory entries instead of contents" \
1769         USE_FEATURE_LS_TIMESTAMPS( \
1770        "\n      -e      list both full date and full time") \
1771         USE_FEATURE_LS_FILETYPES( \
1772        "\n      -F      append indicator (one of */=@|) to entries") \
1773        "\n      -i      list the i-node for each file" \
1774        "\n      -l      use a long listing format" \
1775        "\n      -n      list numeric UIDs and GIDs instead of names" \
1776         USE_FEATURE_LS_FILETYPES( \
1777        "\n      -p      append indicator (one of /=@|) to entries") \
1778         USE_FEATURE_LS_FOLLOWLINKS( \
1779        "\n      -L      list entries pointed to by symbolic links") \
1780         USE_FEATURE_LS_RECURSIVE( \
1781        "\n      -R      list subdirectories recursively") \
1782         USE_FEATURE_LS_SORTFILES( \
1783        "\n      -r      sort the listing in reverse order") \
1784         USE_FEATURE_LS_SORTFILES( \
1785        "\n      -S      sort the listing by file size") \
1786        "\n      -s      list the size of each file, in blocks" \
1787         USE_FEATURE_AUTOWIDTH( \
1788        "\n      -T NUM  assume Tabstop every NUM columns") \
1789         USE_FEATURE_LS_TIMESTAMPS( \
1790        "\n      -t      with -l: show modification time") \
1791         USE_FEATURE_LS_TIMESTAMPS( \
1792        "\n      -u      with -l: show access time") \
1793         USE_FEATURE_LS_SORTFILES( \
1794        "\n      -v      sort the listing by version") \
1795         USE_FEATURE_AUTOWIDTH( \
1796        "\n      -w NUM  assume the terminal is NUM columns wide") \
1797        "\n      -x      list entries by lines instead of by columns" \
1798         USE_FEATURE_LS_SORTFILES( \
1799        "\n      -X      sort the listing by extension") \
1800         USE_FEATURE_HUMAN_READABLE( \
1801        "\n      -h      print sizes in human readable format (e.g., 1K 243M 2G)") \
1802         USE_SELINUX( \
1803        "\n      -k      print security context") \
1804         USE_SELINUX( \
1805        "\n      -K      print security context in long format")
1806
1807 #define lsattr_trivial_usage \
1808        "[-Radlv] [files...]"
1809 #define lsattr_full_usage \
1810        "List file attributes on an ext2 fs" \
1811        "\n\nOptions:\n" \
1812        "        -R      recursively list subdirectories\n" \
1813        "        -a      do not hide entries starting with .\n" \
1814        "        -d      list directory entries instead of contents\n" \
1815        "        -l      print long flag names\n" \
1816        "        -v      list the file's version/generation number"
1817
1818 #define lsmod_trivial_usage \
1819        ""
1820 #define lsmod_full_usage \
1821        "List the currently loaded kernel modules."
1822
1823 #ifdef CONFIG_FEATURE_MAKEDEVS_LEAF
1824 #define makedevs_trivial_usage \
1825        "NAME TYPE MAJOR MINOR FIRST LAST [s]"
1826 #define makedevs_full_usage \
1827        "Creates a range of block or character special files\n\n" \
1828        "TYPEs include:\n" \
1829        "        b:      Make a block (buffered) device.\n" \
1830        "        c or u: Make a character (un-buffered) device.\n" \
1831        "        p:      Make a named pipe. MAJOR and MINOR are ignored for named pipes.\n\n" \
1832        "FIRST specifies the number appended to NAME to create the first device.\n" \
1833        "LAST specifies the number of the last item that should be created\n" \
1834        "If 's' is the last argument, the base device is created as well.\n\n" \
1835        "For example:\n" \
1836        "        makedevs /dev/ttyS c 4 66 2 63   ->  ttyS2-ttyS63\n" \
1837        "        makedevs /dev/hda b 3 0 0 8 s    ->  hda,hda1-hda8"
1838 #define makedevs_example_usage \
1839        "# makedevs /dev/ttyS c 4 66 2 63\n" \
1840        "[creates ttyS2-ttyS63]\n" \
1841        "# makedevs /dev/hda b 3 0 0 8 s\n" \
1842        "[creates hda,hda1-hda8]\n"
1843 #endif
1844
1845 #ifdef CONFIG_FEATURE_MAKEDEVS_TABLE
1846 #define makedevs_trivial_usage \
1847        "[-d device_table] rootdir"
1848 #define makedevs_full_usage \
1849        "Creates a range of special files as specified in a device table.\n" \
1850        "Device table entries take the form of:\n" \
1851        "<type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>\n" \
1852        "Where name is the file name,  type can be one of:\n" \
1853        "      f       A regular file\n" \
1854        "      d       Directory\n" \
1855        "      c       Character special device file\n" \
1856        "      b       Block special device file\n" \
1857        "      p       Fifo (named pipe)\n" \
1858        "uid is the user id for the target file, gid is the group id for the\n" \
1859        "target file.  The rest of the entries (major, minor, etc) apply to\n" \
1860        "to device special files.  A '-' may be used for blank entries."
1861 #define makedevs_example_usage \
1862        "For example:\n" \
1863        "<name>    <type> <mode><uid><gid><major><minor><start><inc><count>\n" \
1864        "/dev         d   755    0    0    -      -      -      -    -\n" \
1865        "/dev/console c   666    0    0    5      1      -      -    -\n" \
1866        "/dev/null    c   666    0    0    1      3      0      0    -\n" \
1867        "/dev/zero    c   666    0    0    1      5      0      0    -\n" \
1868        "/dev/hda     b   640    0    0    3      0      0      0    -\n" \
1869        "/dev/hda     b   640    0    0    3      1      1      1    15\n\n" \
1870        "Will Produce:\n" \
1871        "/dev\n" \
1872        "/dev/console\n" \
1873        "/dev/null\n" \
1874        "/dev/zero\n" \
1875        "/dev/hda\n" \
1876        "/dev/hda[0-15]\n"
1877 #endif
1878
1879 #define md5sum_trivial_usage \
1880        "[OPTION] [FILEs...]" \
1881         USE_FEATURE_MD5_SHA1_SUM_CHECK("\n   or: md5sum [OPTION] -c [FILE]")
1882 #define md5sum_full_usage \
1883        "Print" USE_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " MD5 checksums" \
1884        "\n\nOptions:\n" \
1885        "With no FILE, or when FILE is -, read standard input." \
1886         USE_FEATURE_MD5_SHA1_SUM_CHECK("\n\n" \
1887        "        -c      check MD5 sums against given list\n" \
1888        "\nThe following two options are useful only when verifying checksums:\n" \
1889        "        -s      don't output anything, status code shows success\n" \
1890        "        -w      warn about improperly formatted MD5 checksum lines")
1891 #define md5sum_example_usage \
1892        "$ md5sum < busybox\n" \
1893        "6fd11e98b98a58f64ff3398d7b324003\n" \
1894        "$ md5sum busybox\n" \
1895        "6fd11e98b98a58f64ff3398d7b324003  busybox\n" \
1896        "$ md5sum -c -\n" \
1897        "6fd11e98b98a58f64ff3398d7b324003  busybox\n" \
1898        "busybox: OK\n" \
1899        "^D\n"
1900
1901 #define mdev_trivial_usage \
1902        "[-s]"
1903 #define mdev_full_usage \
1904        "        -s      Scan /sys and populate /dev during system boot\n\n" \
1905        "Called with no options (via hotplug) it uses environment variables\n" \
1906        "to determine which device to add/remove."
1907 #define mdev_notes_usage "" \
1908         USE_FEATURE_MDEV_CONFIG( \
1909        "The mdev config file contains lines that look like:\n" \
1910        "  hd[a-z][0-9]* 0:3 660\n\n" \
1911        "That's device name (with regex match), uid:gid, and permissions.\n\n" \
1912         USE_FEATURE_MDEV_EXEC( \
1913        "Optionally, that can be followed (on the same line) by a special character\n" \
1914        "and a command line to run after creating/before deleting the corresponding\n" \
1915        "device(s).  The environment variable $MDEV indicates the active device node\n" \
1916        "(which is useful if it's a regex match).  For example:\n\n" \
1917        "  hdc root:cdrom 660  *ln -s $MDEV cdrom\n\n" \
1918        "The special characters are @ (run after creating), $ (run before deleting),\n" \
1919        "and * (run both after creating and before deleting).  The commands run in\n" \
1920        "the /dev directory, and use system() which calls /bin/sh.\n\n" \
1921         ) \
1922        "Config file parsing stops on the first matching line.  If no config\n"\
1923        "entry is matched, devices are created with default 0:0 660.  (Make\n"\
1924        "the last line match .* to override this.)\n\n" \
1925         )
1926
1927 #define mesg_trivial_usage \
1928        "[y|n]"
1929 #define mesg_full_usage \
1930        "mesg controls write access to your terminal\n" \
1931        "        y       Allow write access to your terminal\n" \
1932        "        n       Disallow write access to your terminal"
1933
1934 #define mkdir_trivial_usage \
1935        "[OPTION] DIRECTORY..."
1936 #define mkdir_full_usage \
1937        "Create the DIRECTORY(ies) if they do not already exist" \
1938        "\n\nOptions:\n" \
1939        "        -m      set permission mode (as in chmod), not rwxrwxrwx - umask\n" \
1940        "        -p      no error if existing, make parent directories as needed"
1941 #define mkdir_example_usage \
1942        "$ mkdir /tmp/foo\n" \
1943        "$ mkdir /tmp/foo\n" \
1944        "/tmp/foo: File exists\n" \
1945        "$ mkdir /tmp/foo/bar/baz\n" \
1946        "/tmp/foo/bar/baz: No such file or directory\n" \
1947        "$ mkdir -p /tmp/foo/bar/baz\n"
1948
1949 #define mke2fs_trivial_usage \
1950        "[-c|-l filename] [-b block-size] [-f fragment-size] [-g blocks-per-group] " \
1951        "[-i bytes-per-inode] [-j] [-J journal-options] [-N number-of-inodes] [-n] " \
1952        "[-m reserved-blocks-percentage] [-o creator-os] [-O feature[,...]] [-q] " \
1953        "[r fs-revision-level] [-E extended-options] [-v] [-F] [-L volume-label] " \
1954        "[-M last-mounted-directory] [-S] [-T filesystem-type] " \
1955        "device [blocks-count]"
1956 #define mke2fs_full_usage \
1957        "        -b size         block size in bytes\n" \
1958        "        -c              check for bad blocks before creating\n" \
1959        "        -E opts         set extended options\n" \
1960        "        -f size         fragment size in bytes\n" \
1961        "        -F              force (ignore sanity checks)\n" \
1962        "        -g num          number of blocks in a block group\n" \
1963        "        -i ratio        the bytes/inode ratio\n" \
1964        "        -j              create a journal (ext3)\n" \
1965        "        -J opts         set journal options (size/device)\n" \
1966        "        -l file         read bad blocks list from file\n" \
1967        "        -L lbl          set the volume label\n" \
1968        "        -m percent      percent of fs blocks to reserve for admin\n" \
1969        "        -M dir          set last mounted directory\n" \
1970        "        -n              do not actually create anything\n" \
1971        "        -N num          number of inodes to create\n" \
1972        "        -o os           set the 'creator os' field\n" \
1973        "        -O features     dir_index/filetype/has_journal/journal_dev/sparse_super\n" \
1974        "        -q              quiet execution\n" \
1975        "        -r rev          set filesystem revision\n" \
1976        "        -S              write superblock and group descriptors only\n" \
1977        "        -T fs-type      set usage type (news/largefile/largefile4)\n" \
1978        "        -v              verbose execution"
1979
1980 #define mkfifo_trivial_usage \
1981        "[OPTIONS] name"
1982 #define mkfifo_full_usage \
1983        "Creates a named pipe (identical to 'mknod name p')" \
1984        "\n\nOptions:\n" \
1985        "        -m      create the pipe using the specified mode (default a=rw)"
1986
1987 #define mkfs_minix_trivial_usage \
1988        "[-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]"
1989 #define mkfs_minix_full_usage \
1990        "Make a MINIX filesystem" \
1991        "\n\nOptions:\n" \
1992        "        -c              Check the device for bad blocks\n" \
1993        "        -n [14|30]      Specify the maximum length of filenames\n" \
1994        "        -i INODES       Specify the number of inodes for the filesystem\n" \
1995        "        -l FILENAME     Read the bad blocks list from FILENAME\n" \
1996        "        -v              Make a Minix version 2 filesystem"
1997
1998 #define mknod_trivial_usage \
1999        "[OPTIONS] NAME TYPE MAJOR MINOR"
2000 #define mknod_full_usage \
2001        "Create a special file (block, character, or pipe)" \
2002        "\n\nOptions:\n" \
2003        "        -m      create the special file using the specified mode (default a=rw)" \
2004        "\n\nTYPEs include:\n" \
2005        "        b:      Make a block (buffered) device\n" \
2006        "        c or u: Make a character (un-buffered) device\n" \
2007        "        p:      Make a named pipe. MAJOR and MINOR are ignored for named pipes"
2008 #define mknod_example_usage \
2009        "$ mknod /dev/fd0 b 2 0\n" \
2010        "$ mknod -m 644 /tmp/pipe p\n"
2011
2012 #define mkswap_trivial_usage \
2013        "[-c] [-v0|-v1] device [block-count]"
2014 #define mkswap_full_usage \
2015        "Prepare a disk partition to be used as a swap partition" \
2016        "\n\nOptions:\n" \
2017        "        -c      Check for read-ability\n" \
2018        "        -v0     Make version 0 swap [max 128 Megs]\n" \
2019        "        -v1     Make version 1 swap [big!] (default for kernels > 2.1.117)\n" \
2020        "        block-count     Number of block to use (default is entire partition)"
2021
2022 #define mktemp_trivial_usage \
2023        "[-dq] TEMPLATE"
2024 #define mktemp_full_usage \
2025        "Creates a temporary file with its name based on TEMPLATE.\n" \
2026        "TEMPLATE is any name with six 'Xs' (i.e., /tmp/temp.XXXXXX)." \
2027        "\n\nOptions:\n" \
2028        "        -d      Make a directory instead of a file\n" \
2029        "        -q      Fail silently if an error occurs"
2030 #define mktemp_example_usage \
2031        "$ mktemp /tmp/temp.XXXXXX\n" \
2032        "/tmp/temp.mWiLjM\n" \
2033        "$ ls -la /tmp/temp.mWiLjM\n" \
2034        "-rw-------    1 andersen andersen        0 Apr 25 17:10 /tmp/temp.mWiLjM\n"
2035
2036 #define modprobe_trivial_usage \
2037        "[-knqrsv] MODULE [symbol=value ...]"
2038 #define modprobe_full_usage \
2039        "Options:\n" \
2040        "        -k      Make module autoclean-able\n" \
2041        "        -n      Just show what would be done\n" \
2042        "        -q      Quiet output\n" \
2043        "        -r      Remove module (stacks) or do autoclean\n" \
2044        "        -s      Report via syslog instead of stderr\n" \
2045        "        -v      Verbose output"
2046 #define modprobe_notes_usage \
2047 "modprobe can (un)load a stack of modules, passing each module options (when\n" \
2048 "loading). modprobe uses a configuration file to determine what option(s) to\n" \
2049 "pass each module it loads.\n" \
2050 "\n" \
2051 "The configuration file is searched (in order) amongst:\n" \
2052 "\n" \
2053 "    /etc/modprobe.conf (2.6 only)\n" \
2054 "    /etc/modules.conf\n" \
2055 "    /etc/conf.modules (deprecated)\n" \
2056 "\n" \
2057 "They all have the same syntax (see below). If none is present, it is\n" \
2058 "_not_ an error; each loaded module is then expected to load without\n" \
2059 "options. Once a file is found, the others are tested for.\n" \
2060 "\n" \
2061 "/etc/modules.conf entry format:\n" \
2062 "\n" \
2063 "  alias <alias_name> <mod_name>\n" \
2064 "    Makes it possible to modprobe alias_name, when there is no such module.\n" \
2065 "    It makes sense if your mod_name is long, or you want a more representative\n" \
2066 "    name for that module (eg. 'scsi' in place of 'aha7xxx').\n" \
2067 "    This makes it also possible to use a different set of options (below) for\n" \
2068 "    the module and the alias.\n" \
2069 "    A module can be aliased more than once.\n" \
2070 "\n" \
2071 "  options <mod_name|alias_name> <symbol=value ...>\n" \
2072 "    When loading module mod_name (or the module aliased by alias_name), pass\n" \
2073 "    the \"symbol=value\" pairs as option to that module.\n" \
2074 "\n" \
2075 "Sample /etc/modules.conf file:\n" \
2076 "\n" \
2077 "  options tulip irq=3\n" \
2078 "  alias tulip tulip2\n" \
2079 "  options tulip2 irq=4 io=0x308\n" \
2080 "\n" \
2081 "Other functionality offered by 'classic' modprobe is not available in\n" \
2082 "this implementation.\n" \
2083 "\n" \
2084 "If module options are present both in the config file, and on the command line,\n" \
2085 "then the options from the command line will be passed to the module _after_\n" \
2086 "the options from the config file. That way, you can have defaults in the config\n" \
2087 "file, and override them for a specific usage from the command line.\n"
2088 #define modprobe_example_usage \
2089        "(with the above /etc/modules.conf):\n\n" \
2090        "$ modprobe tulip\n" \
2091        "   will load the module 'tulip' with default option 'irq=3'\n\n" \
2092        "$ modprobe tulip irq=5\n" \
2093        "   will load the module 'tulip' with option 'irq=5', thus overriding the default\n\n" \
2094        "$ modprobe tulip2\n" \
2095        "   will load the module 'tulip' with default options 'irq=4 io=0x308',\n" \
2096        "   which are the default for alias 'tulip2'\n\n" \
2097        "$ modprobe tulip2 irq=8\n" \
2098        "   will load the module 'tulip' with default options 'irq=4 io=0x308 irq=8',\n" \
2099        "   which are the default for alias 'tulip2' overridden by the option 'irq=8'\n\n" \
2100        "   from the command line\n\n" \
2101        "$ modprobe tulip2 irq=2 io=0x210\n" \
2102        "   will load the module 'tulip' with default options 'irq=4 io=0x308 irq=4 io=0x210',\n" \
2103        "   which are the default for alias 'tulip2' overridden by the options 'irq=2 io=0x210'\n\n" \
2104        "   from the command line\n"
2105
2106 #define more_trivial_usage \
2107        "[FILE ...]"
2108 #define more_full_usage \
2109        "More is a filter for viewing FILE one screenful at a time."
2110 #define more_example_usage \
2111        "$ dmesg | more\n"
2112
2113 #define mount_trivial_usage \
2114        "[flags] DEVICE NODE [-o options,more-options]"
2115 #define mount_full_usage \
2116        "Mount a filesystem.  Filesystem autodetection requires /proc be mounted." \
2117        "\n\nOptions:\n"  \
2118        "        -a:             Mount all filesystems in fstab\n" \
2119         USE_FEATURE_MTAB_SUPPORT( \
2120        "        -f:             \"Fake\" Add entry to mount table but don't mount it\n" \
2121        "        -n:             Don't write a mount table entry\n" \
2122         ) \
2123        "        -o option:      One of many filesystem options, listed below\n" \
2124        "        -r:             Mount the filesystem read-only\n" \
2125        "        -t fs-type:     Specify the filesystem type\n" \
2126        "        -w:             Mount for reading and writing (default)\n" \
2127        "\n" \
2128        "Options for use with the \"-o\" flag:\n" \
2129         USE_FEATURE_MOUNT_LOOP( \
2130        "        loop:           Ignored (loop devices are autodetected)\n" \
2131         ) \
2132         USE_FEATURE_MOUNT_FLAGS( \
2133        "        [a]sync:        Writes are asynchronous / synchronous\n" \
2134        "        [no]atime:      Disable / enable updates to inode access times\n" \
2135        "        [no]diratime:   Disable / enable atime updates to directories\n" \
2136        "        [no]dev:        Allow use of special device files / disallow them\n" \
2137        "        [no]exec:       Allow use of executable files / disallow them\n" \
2138        "        [no]suid:       Allow set-user-id-root programs / disallow them\n" \
2139        "        [r]shared:      Convert [recursively] to a shared subtree.\n" \
2140        "        [r]slave:       Convert [recursively] to a slave subtree.\n" \
2141        "        [r]private:     Convert [recursively] to a private subtree\n" \
2142        "        [un]bindable:   Make mount point [un]able to be bind mounted.\n" \
2143        "        bind:           Bind a directory to an additional location\n" \
2144        "        move:           Relocate an existing mount point.\n" \
2145         ) \
2146        "        remount:        Re-mount a mounted filesystem, changing its flags\n" \
2147        "        ro/rw:          Mount for read-only / read-write\n" \
2148        "\nThere are EVEN MORE flags that are specific to each filesystem\n" \
2149        "You'll have to see the written documentation for those filesystems"
2150 #define mount_example_usage \
2151        "$ mount\n" \
2152        "/dev/hda3 on / type minix (rw)\n" \
2153        "proc on /proc type proc (rw)\n" \
2154        "devpts on /dev/pts type devpts (rw)\n" \
2155        "$ mount /dev/fd0 /mnt -t msdos -o ro\n" \
2156        "$ mount /tmp/diskimage /opt -t ext2 -o loop\n" \
2157        "$ mount cd_image.iso mydir\n"
2158 #define mount_notes_usage \
2159        "Returns 0 for success, number of failed mounts for -a, or errno for one mount."
2160
2161 #define mountpoint_trivial_usage \
2162        "[-q] <[-d] DIR | -x DEVICE>"
2163 #define mountpoint_full_usage \
2164        "mountpoint checks if the directory is a mountpoint" \
2165        "\n\nOptions:\n"  \
2166        "        -q      Be more quiet\n" \
2167        "        -d      Print major/minor device number of the filesystem\n" \
2168        "        -x      Print major/minor device number of the blockdevice"
2169 #define mountpoint_example_usage \
2170        "$ mountpoint /proc\n" \
2171        "/proc is not a mountpoint\n" \
2172        "$ mountpoint /sys\n" \
2173        "/sys is a mountpoint\n"
2174
2175 #define mt_trivial_usage \
2176        "[-f device] opcode value"
2177 #define mt_full_usage \
2178        "Control magnetic tape drive operation\n" \
2179        "\nAvailable Opcodes:\n\n" \
2180        "bsf bsfm bsr bss datacompression drvbuffer eof eom erase\n" \
2181        "fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2\n" \
2182        "ras3 reset retension rewind rewoffline seek setblk setdensity\n" \
2183        "setpart tell unload unlock weof wset"
2184
2185 #define mv_trivial_usage \
2186        "[OPTION]... SOURCE DEST\n" \
2187        "or: mv [OPTION]... SOURCE... DIRECTORY"
2188 #define mv_full_usage \
2189        "Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY" \
2190        "\n\nOptions:\n" \
2191        "        -f      don't prompt before overwriting\n" \
2192        "        -i      interactive, prompt before overwrite"
2193 #define mv_example_usage \
2194        "$ mv /tmp/foo /bin/bar\n"
2195
2196 #define nameif_trivial_usage \
2197        "[-s] [-c FILE] [{IFNAME MACADDR}]"
2198 #define nameif_full_usage \
2199        "Renames network interface while it in the down state" \
2200        "\n\nOptions:\n" \
2201        "        -c FILE         Use configuration file (default is /etc/mactab)\n" \
2202        "        -s              Use syslog (LOCAL0 facility)\n" \
2203        "        IFNAME MACADDR  new_interface_name interface_mac_address"
2204 #define nameif_example_usage \
2205        "$ nameif -s dmz0 00:A0:C9:8C:F6:3F\n" \
2206        " or\n" \
2207        "$ nameif -c /etc/my_mactab_file\n" \
2208
2209 #if ENABLE_NC_SERVER || ENABLE_NC_EXTRA
2210 #define NC_OPTIONS_STR "\n\nOptions:"
2211 #else
2212 #define NC_OPTIONS_STR
2213 #endif
2214
2215 #define nc_trivial_usage \
2216         USE_NC_EXTRA("[-iN] [-wN] ")USE_NC_SERVER("[-l] [-p PORT] ") \
2217        "["USE_NC_EXTRA("-f FILENAME|")"IPADDR PORTNUM]"USE_NC_EXTRA(" [-e COMMAND]")
2218 #define nc_full_usage \
2219        "Netcat opens a pipe to IP:port" USE_NC_EXTRA(" or file") \
2220         NC_OPTIONS_STR \
2221         USE_NC_EXTRA( \
2222        "\n      -e      exec rest of command line after connect" \
2223        "\n      -i SECS delay interval for lines sent" \
2224        "\n      -w SECS timeout for connect" \
2225        "\n      -f file use file (ala /dev/ttyS0) instead of network" \
2226         ) \
2227         USE_NC_SERVER( \
2228        "\n      -l      listen mode, for inbound connects" \
2229         USE_NC_EXTRA( \
2230        "\n              (use -l twice with -e for persistent server)") \
2231        "\n      -p PORT local port number" \
2232         )
2233
2234 #define nc_notes_usage "" \
2235         USE_NC_EXTRA( \
2236        "To use netcat as a terminal emulator on a serial port:\n\n" \
2237        "$ stty 115200 -F /dev/ttyS0\n" \
2238        "$ stty raw -echo -ctlecho && nc -f /dev/ttyS0\n" \
2239         )
2240
2241 #define nc_example_usage \
2242        "$ nc foobar.somedomain.com 25\n" \
2243        "220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600\n" \
2244        "help\n" \
2245        "214-Commands supported:\n" \
2246        "214-    HELO EHLO MAIL RCPT DATA AUTH\n" \
2247        "214     NOOP QUIT RSET HELP\n" \
2248        "quit\n" \
2249        "221 foobar closing connection\n"
2250
2251 #define netstat_trivial_usage \
2252        "[-laenrtuwx]"
2253 #define netstat_full_usage \
2254        "Displays Linux networking information" \
2255        "\n\nOptions:\n" \
2256        "        -l      display listening server sockets\n" \
2257        "        -a      display all sockets (default: connected)\n" \
2258        "        -e      display other/more information\n" \
2259        "        -n      don't resolve names\n" \
2260        "        -r      display routing table\n" \
2261        "        -t      tcp sockets\n" \
2262        "        -u      udp sockets\n" \
2263        "        -w      raw sockets\n" \
2264        "        -x      unix sockets"
2265
2266 #define nice_trivial_usage \
2267        "[-n ADJUST] [COMMAND [ARG] ...]"
2268 #define nice_full_usage \
2269        "Runs a program with modified scheduling priority" \
2270        "\n\nOptions:\n" \
2271        "        -n ADJUST       Adjust the scheduling priority by ADJUST"
2272
2273 #define nmeter_trivial_usage \
2274        "format_string"
2275 #define nmeter_full_usage \
2276        "Nmeter monitors your system in real time.\n\n" \
2277        "Format specifiers:\n" \
2278        "%Nc or %[cN]    monitor CPU. N - bar size, default 10\n" \
2279        "                (displays: S:system U:user N:niced D:iowait I:irq i:softirq)\n" \
2280        "%[niface]       monitor network interface 'iface'\n" \
2281        "%m              monitor allocated memory\n" \
2282        "%[mf]           monitor free memory\n" \
2283        "%[mt]           monitor total memory\n" \
2284        "%s              monitor allocated swap\n" \
2285        "%f              monitor number of used file descriptors\n" \
2286        "%Ni             monitor total/specific IRQ rate\n" \
2287        "%x              monitor context switch rate\n" \
2288        "%p              monitor forks\n" \
2289        "%[pn]           monitor # of processes\n" \
2290        "%b              monitor block io\n" \
2291        "%Nt             show time (with N decimal points)\n" \
2292        "%Nd             milliseconds between updates (default=1000)\n" \
2293        "%r              print <cr> instead of <lf> at EOL"
2294 #define nmeter_example_usage \
2295        "nmeter '%250d%t %20c int %i bio %b mem %m forks%p'"
2296
2297 #define nohup_trivial_usage \
2298        "COMMAND [ARGS]"
2299 #define nohup_full_usage \
2300        "run a command immune to hangups, with output to a non-tty"
2301 #define nohup_example_usage \
2302        "$ nohup make &"
2303
2304 #define nslookup_trivial_usage \
2305        "[HOST] [SERVER]"
2306 #define nslookup_full_usage \
2307        "Queries the nameserver for the IP address of the given HOST\n" \
2308        "optionally using a specified DNS server"
2309 #define nslookup_example_usage \
2310        "$ nslookup localhost\n" \
2311        "Server:     default\n" \
2312        "Address:    default\n" \
2313        "\n" \
2314        "Name:       debian\n" \
2315        "Address:    127.0.0.1\n"
2316
2317 #define od_trivial_usage \
2318        "[-aBbcDdeFfHhIiLlOovXx] [FILE]"
2319 #define od_full_usage \
2320        "Write an unambiguous representation, octal bytes by default, of FILE\n" \
2321        "to standard output.  With no FILE, or when FILE is -, read standard input."
2322
2323 #define openvt_trivial_usage \
2324        "<vtnum> <COMMAND> [ARGS...]"
2325 #define openvt_full_usage \
2326        "Start a command on a new virtual terminal"
2327 #define openvt_example_usage \
2328        "openvt 2 /bin/ash\n"
2329
2330 #define passwd_trivial_usage \
2331        "[OPTION] [name]"
2332 #define passwd_full_usage \
2333        "Change a user password. If no name is specified,\n" \
2334        "changes the password for the current user." \
2335        "\n\nOptions:\n" \
2336        "        -a      Define which algorithm shall be used for the password\n" \
2337        "                        (Choices: des, md5)\n" /* ", sha1)" */ \
2338        "        -d      Delete the password for the specified user account\n" \
2339        "        -l      Locks (disables) the specified user account\n" \
2340        "        -u      Unlocks (re-enables) the specified user account"
2341
2342 #define patch_trivial_usage \
2343        "[-p<num>] [-i <diff>]"
2344 #define patch_full_usage \
2345        "        -p <num>        Strip <num> leading components from file names\n" \
2346        "        -i <diff>       Read <diff> instead of stdin"
2347 #define patch_example_usage \
2348        "$ patch -p1 < example.diff\n" \
2349        "$ patch -p0 -i example.diff"
2350
2351 #if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT)
2352 #define USAGE_PIDOF "Options:"
2353 #else
2354 #define USAGE_PIDOF "\nThis version of pidof accepts no options."
2355 #endif
2356
2357 #define pidof_trivial_usage \
2358        "process-name [OPTION] [process-name ...]"
2359
2360 #define pidof_full_usage \
2361        "Lists the PIDs of all processes with names that match the\n" \
2362        "names on the command line.\n" \
2363         USAGE_PIDOF \
2364         USE_FEATURE_PIDOF_SINGLE( \
2365        "\n      -s              display only a single PID") \
2366         USE_FEATURE_PIDOF_OMIT( \
2367        "\n      -o              omit given pid.") \
2368         USE_FEATURE_PIDOF_OMIT( \
2369        "\n                      Use %PPID to omit the parent pid of pidof itself")
2370 #define pidof_example_usage \
2371        "$ pidof init\n" \
2372        "1\n" \
2373         USE_FEATURE_PIDOF_OMIT( \
2374        "$ pidof /bin/sh\n20351 5973 5950\n") \
2375         USE_FEATURE_PIDOF_OMIT( \
2376        "$ pidof /bin/sh -o %PPID\n20351 5950")
2377
2378 #ifndef CONFIG_FEATURE_FANCY_PING
2379 #define ping_trivial_usage "host"
2380 #define ping_full_usage    "Send ICMP ECHO_REQUEST packets to network hosts"
2381 #else
2382 #define ping_trivial_usage \
2383        "[OPTION]... host"
2384 #define ping_full_usage \
2385        "Send ICMP ECHO_REQUEST packets to network hosts" \
2386        "\n\nOptions:\n" \
2387        "        -c CNT  Send only CNT pings\n" \
2388        "        -s SIZE Send SIZE data bytes in packets (default=56)\n" \
2389        "        -I IP   Use IP as source address\n" \
2390        "        -q      Quiet mode, only displays output at start\n" \
2391        "                and when finished"
2392 #endif
2393 #define ping_example_usage \
2394        "$ ping localhost\n" \
2395        "PING slag (127.0.0.1): 56 data bytes\n" \
2396        "64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=20.1 ms\n" \
2397        "\n" \
2398        "--- debian ping statistics ---\n" \
2399        "1 packets transmitted, 1 packets received, 0% packet loss\n" \
2400        "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"
2401
2402 #ifndef CONFIG_FEATURE_FANCY_PING6
2403 #define ping6_trivial_usage "host"
2404 #define ping6_full_usage    "Send ICMP ECHO_REQUEST packets to network hosts"
2405 #else
2406 #define ping6_trivial_usage \
2407        "[OPTION]... host"
2408 #define ping6_full_usage \
2409        "Send ICMP ECHO_REQUEST packets to network hosts" \
2410        "\n\nOptions:\n" \
2411        "        -c CNT  Send only CNT pings\n" \
2412        "        -s SIZE Send SIZE data bytes in packets (default=56)\n" \
2413        "        -q      Quiet mode, only displays output at start\n" \
2414        "                and when finished"
2415 #endif
2416 #define ping6_example_usage \
2417        "$ ping6 ip6-localhost\n" \
2418        "PING ip6-localhost (::1): 56 data bytes\n" \
2419        "64 bytes from ::1: icmp6_seq=0 ttl=64 time=20.1 ms\n" \
2420        "\n" \
2421        "--- ip6-localhost ping statistics ---\n" \
2422        "1 packets transmitted, 1 packets received, 0% packet loss\n" \
2423        "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"
2424
2425 #define pivot_root_trivial_usage \
2426        "NEW_ROOT PUT_OLD"
2427 #define pivot_root_full_usage \
2428        "Move the current root file system to PUT_OLD and make NEW_ROOT\n" \
2429        "the new root file system."
2430
2431 #define poweroff_trivial_usage \
2432        "[-d<delay>] [-n<nosync>] [-f<force>]"
2433 #define poweroff_full_usage \
2434        "Halt and shut off power" \
2435        "\n\nOptions:\n" \
2436        "        -d      delay interval for halting\n" \
2437        "        -n      no call to sync()\n" \
2438        "        -f      force power off (don't go through init)"
2439
2440 #define printenv_trivial_usage \
2441        "[VARIABLES...]"
2442 #define printenv_full_usage \
2443        "print all or part of environment\n\n" \
2444        "If no environment VARIABLE specified, print them all."
2445
2446 #define printf_trivial_usage \
2447        "FORMAT [ARGUMENT...]"
2448 #define printf_full_usage \
2449        "Formats and prints ARGUMENT(s) according to FORMAT,\n" \
2450        "Where FORMAT controls the output exactly as in C printf."
2451 #define printf_example_usage \
2452        "$ printf \"Val=%d\\n\" 5\n" \
2453        "Val=5\n"
2454
2455
2456 #if ENABLE_DESKTOP
2457
2458 #define ps_trivial_usage \
2459        ""
2460 #define ps_full_usage \
2461        "Report process status" \
2462        "\n\nOptions:" \
2463        "\n      -o col1,col2=header     Select columns for display" \
2464
2465 #else /* !ENABLE_DESKTOP */
2466
2467 #if !defined CONFIG_SELINUX && !ENABLE_FEATURE_PS_WIDE
2468 #define USAGE_PS "\n    This version of ps accepts no options."
2469 #else
2470 #define USAGE_PS "\nOptions:"
2471 #endif
2472
2473 #define ps_trivial_usage \
2474        ""
2475 #define ps_full_usage \
2476        "Report process status\n" \
2477         USAGE_PS \
2478         USE_SELINUX( \
2479        "\n      -c      show SE Linux context") \
2480         USE_FEATURE_PS_WIDE( \
2481        "\n      w       wide output")
2482
2483 #endif /* ENABLE_DESKTOP */
2484
2485 #define ps_example_usage \
2486        "$ ps\n" \
2487        "  PID  Uid      Gid State Command\n" \
2488        "    1 root     root     S init\n" \
2489        "    2 root     root     S [kflushd]\n" \
2490        "    3 root     root     S [kupdate]\n" \
2491        "    4 root     root     S [kpiod]\n" \
2492        "    5 root     root     S [kswapd]\n" \
2493        "  742 andersen andersen S [bash]\n" \
2494        "  743 andersen andersen S -bash\n" \
2495        "  745 root     root     S [getty]\n" \
2496        " 2990 andersen andersen R ps\n"
2497
2498
2499 #define pwd_trivial_usage \
2500        ""
2501 #define pwd_full_usage \
2502        "Print the full filename of the current working directory."
2503 #define pwd_example_usage \
2504        "$ pwd\n" \
2505        "/root\n"
2506
2507 #define raidautorun_trivial_usage \
2508        "DEVICE"
2509 #define raidautorun_full_usage \
2510        "Tells the kernel to automatically search and start RAID arrays"
2511 #define raidautorun_example_usage \
2512        "$ raidautorun /dev/md0"
2513
2514 #define rdate_trivial_usage \
2515        "[-sp] HOST"
2516 #define rdate_full_usage \
2517        "Get and possibly set the system date and time from a remote HOST" \
2518        "\n\nOptions:\n" \
2519        "        -s      Set the system date and time (default)\n" \
2520        "        -p      Print the date and time"
2521
2522 #define readahead_trivial_usage \
2523        "[FILE]..."
2524 #define readahead_full_usage \
2525        "Preloads FILE(s) in RAM cache so that subsequent reads for those" \
2526        "files do not block on disk I/O."
2527
2528 #define readlink_trivial_usage \
2529         USE_FEATURE_READLINK_FOLLOW("[-f] ") "FILE"
2530 #define readlink_full_usage \
2531        "Displays the value of a symbolic link." \
2532         USE_FEATURE_READLINK_FOLLOW( \
2533        "\n\nOptions:\n" \
2534        "        -f      canonicalize by following all symlinks")
2535
2536 #define readprofile_trivial_usage \
2537        "[OPTIONS]..."
2538 #define readprofile_full_usage \
2539        "Options:\n" \
2540        "         -m <mapfile>  (default: /boot/System.map)\n" \
2541        "         -p <profile>  (default: /proc/profile)\n" \
2542        "         -M <mult>     set the profiling multiplier to <mult>\n" \
2543        "         -i            print only info about the sampling step\n" \
2544        "         -v            print verbose data\n" \
2545        "         -a            print all symbols, even if count is 0\n" \
2546        "         -b            print individual histogram-bin counts\n" \
2547        "         -s            print individual counters within functions\n" \
2548        "         -r            reset all the counters (root only)\n" \
2549        "         -n            disable byte order auto-detection"
2550
2551 #define realpath_trivial_usage \
2552        "pathname  ..."
2553 #define realpath_full_usage \
2554        "Returns the absolute pathnames of given argument."
2555
2556 #define reboot_trivial_usage \
2557        "[-d<delay>] [-n<nosync>] [-f<force>]"
2558 #define reboot_full_usage \
2559        "Reboot the system" \
2560        "\n\nOptions:\n" \
2561        "        -d      delay interval for rebooting\n" \
2562        "        -n      no call to sync()\n" \
2563        "        -f      force reboot (don't go through init)"
2564
2565 #define renice_trivial_usage \
2566        "{{-n INCREMENT} | PRIORITY} [[ -p | -g | -u ] ID ...]"
2567 #define renice_full_usage \
2568        "Changes priority of running processes" \
2569        "\n\nOptions:\n" \
2570        "        -n      adjusts current nice value (smaller is faster)\n" \
2571        "        -p      process id(s) (default)\n" \
2572        "        -g      process group id(s)\n" \
2573        "        -u      process user name(s) and/or id(s)"
2574
2575 #define reset_trivial_usage \
2576        ""
2577 #define reset_full_usage \
2578        "Resets the screen."
2579
2580 #define resize_trivial_usage \
2581        ""
2582 #define resize_full_usage \
2583        "Resizes the screen."
2584
2585 #define rm_trivial_usage \
2586        "[OPTION]... FILE..."
2587 #define rm_full_usage \
2588        "Remove (unlink) the FILE(s).  You may use '--' to\n" \
2589        "indicate that all following arguments are non-options." \
2590        "\n\nOptions:\n" \
2591        "        -i      always prompt before removing each destination\n" \
2592        "        -f      remove existing destinations, never prompt\n" \
2593        "        -r,-R   remove the contents of directories recursively"
2594 #define rm_example_usage \
2595        "$ rm -rf /tmp/foo\n"
2596
2597 #define rmdir_trivial_usage \
2598        "[OPTION]... DIRECTORY..."
2599 #define rmdir_full_usage \
2600        "Remove the DIRECTORY(ies), if they are empty."
2601 #define rmdir_example_usage \
2602        "# rmdir /tmp/foo\n"
2603
2604 #define rmmod_trivial_usage \
2605        "[OPTION]... [MODULE]..."
2606 #define rmmod_full_usage \
2607        "Unloads the specified kernel modules from the kernel" \
2608        "\n\nOptions:\n" \
2609        "        -a      Remove all unused modules (recursively)"
2610 #define rmmod_example_usage \
2611        "$ rmmod tulip\n"
2612
2613 #define route_trivial_usage \
2614        "[{add|del|delete}]"
2615 #define route_full_usage \
2616        "Edit the kernel's routing tables" \
2617        "\n\nOptions:\n" \
2618        "        -n      Dont resolve names\n" \
2619        "        -e      Display other/more information\n" \
2620        "        -A inet" USE_FEATURE_IPV6("{6}") "      Select address family"
2621
2622 #define rpm_trivial_usage \
2623        "-i -q[ildc]p package.rpm"
2624 #define rpm_full_usage \
2625        "Manipulates RPM packages" \
2626        "\n\nOptions:" \
2627        "\n      -i      Install package" \
2628        "\n      -q      Query package" \
2629        "\n      -p      Query uninstalled package" \
2630        "\n      -i      Show information" \
2631        "\n      -l      List contents" \
2632        "\n      -d      List documents" \
2633        "\n      -c      List config files"
2634
2635 #define rpm2cpio_trivial_usage \
2636        "package.rpm"
2637 #define rpm2cpio_full_usage \
2638        "Outputs a cpio archive of the rpm file."
2639
2640 #define run_parts_trivial_usage \
2641        "[-t] [-a ARG] [-u MASK] DIRECTORY"
2642 #define run_parts_full_usage \
2643        "Run a bunch of scripts in a directory" \
2644        "\n\nOptions:\n" \
2645        "        -t      Prints what would be run, but does not actually run anything\n" \
2646        "        -a ARG  Pass ARG as an argument for every program invoked\n" \
2647        "        -u MASK Set the umask to MASK before executing every program"
2648
2649 #define runlevel_trivial_usage \
2650        "[utmp]"
2651 #define runlevel_full_usage \
2652        "Find the current and previous system runlevel.\n\n" \
2653        "If no utmp file exists or if no runlevel record can be found,\n" \
2654        "runlevel prints \"unknown\""
2655 #define runlevel_example_usage \
2656        "$ runlevel /var/run/utmp\n" \
2657        "N 2"
2658
2659 #define runsv_trivial_usage \
2660        "dir"
2661 #define runsv_full_usage \
2662        "Start and monitor a service and optionally an appendant log service."
2663
2664 #define runsvdir_trivial_usage \
2665        "[-P] dir"
2666 #define runsvdir_full_usage \
2667        "Start a runsv process for each subdirectory."
2668
2669 #define rx_trivial_usage \
2670        "FILE"
2671 #define rx_full_usage \
2672        "Receive a file using the xmodem protocol."
2673 #define rx_example_usage \
2674        "$ rx /tmp/foo\n"
2675
2676 #define sed_trivial_usage \
2677        "[-efinr] pattern [files...]"
2678 #define sed_full_usage \
2679        "Options:\n" \
2680        "        -e script       add the script to the commands to be executed\n" \
2681        "        -f scriptfile   add script-file contents to the\n" \
2682        "                        commands to be executed\n" \
2683        "        -i              edit files in-place\n" \
2684        "        -n              suppress automatic printing of pattern space\n" \
2685        "        -r              use extended regular expression syntax\n" \
2686        "\n" \
2687        "If no -e or -f is given, the first non-option argument is taken as the sed\n" \
2688        "script to interpret. All remaining arguments are names of input files; if no\n" \
2689        "input files are specified, then the standard input is read.  Source files\n" \
2690        "will not be modified unless -i option is given."
2691
2692 #define sed_example_usage \
2693        "$ echo \"foo\" | sed -e 's/f[a-zA-Z]o/bar/g'\n" \
2694        "bar\n"
2695
2696 #define seq_trivial_usage \
2697        "[first [increment]] last"
2698 #define seq_full_usage \
2699        "Print numbers from FIRST to LAST, in steps of INCREMENT.\n" \
2700        "FIRST, INCREMENT default to 1\n" \
2701        "Arguments:\n" \
2702        "        LAST\n" \
2703        "        FIRST   LAST\n" \
2704        "        FIRST   INCREMENT       LAST"
2705
2706 #define setconsole_trivial_usage \
2707        "[-r|--reset] [DEVICE]"
2708 #define setconsole_full_usage \
2709        "Redirects system console output to DEVICE (default: /dev/tty)" \
2710        "\n\nOptions:\n" \
2711        "        -r      Reset output to /dev/console."
2712
2713 #define setkeycodes_trivial_usage \
2714        "SCANCODE KEYCODE ..."
2715 #define setkeycodes_full_usage \
2716        "Set entries into the kernel's scancode-to-keycode map,\n" \
2717        "allowing unusual keyboards to generate usable keycodes.\n\n" \
2718        "SCANCODE may be either xx or e0xx (hexadecimal),\n" \
2719        "and KEYCODE is given in decimal"
2720 #define setkeycodes_example_usage \
2721        "$ setkeycodes e030 127\n"
2722
2723 #define setlogcons_trivial_usage \
2724        "N"
2725 #define setlogcons_full_usage \
2726        "Redirects the kernel output to console N (0 for current)."
2727
2728 #define setsid_trivial_usage \
2729        "program [arg ...]"
2730 #define setsid_full_usage \
2731        "Runs any program in a new session by calling setsid() before\n" \
2732        "exec'ing the rest of its arguments.  See setsid(2) for details."
2733
2734 #define lash_trivial_usage \
2735        "[FILE]...\n" \
2736        "or: sh -c command [args]..."
2737 #define lash_full_usage \
2738        "The BusyBox LAme SHell (command interpreter)"
2739 #define lash_notes_usage \
2740        "This command does not yet have proper documentation.\n\n" \
2741        "Use lash just as you would use any other shell.  It properly handles pipes,\n" \
2742        "redirects, job control, can be used as the shell for scripts, and has a\n" \
2743        "sufficient set of builtins to do what is needed.  It does not (yet) support\n" \
2744        "Bourne Shell syntax.  If you need things like \"if-then-else\", \"while\", and such\n" \
2745        "use ash or bash.  If you just need a very simple and extremely small shell,\n" \
2746        "this will do the job."
2747
2748 #define last_trivial_usage \
2749        ""
2750 #define last_full_usage \
2751        "Shows listing of the last users that logged into the system"
2752
2753 #define sha1sum_trivial_usage \
2754        "[OPTION] [FILEs...]" \
2755         USE_FEATURE_MD5_SHA1_SUM_CHECK("\n   or: sha1sum [OPTION] -c [FILE]")
2756 #define sha1sum_full_usage \
2757        "Print" USE_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " SHA1 checksums.\n" \
2758        "With no FILE, or when FILE is -, read standard input." \
2759        "\n\nOptions:\n" \
2760         USE_FEATURE_MD5_SHA1_SUM_CHECK( \
2761        "        -c      check SHA1 sums against given list\n" \
2762        "\nThe following two options are useful only when verifying checksums:\n" \
2763        "        -s      don't output anything, status code shows success\n" \
2764        "        -w      warn about improperly formatted SHA1 checksum lines")
2765
2766 #define sleep_trivial_usage \
2767         USE_FEATURE_FANCY_SLEEP("[") "N" USE_FEATURE_FANCY_SLEEP("]...")
2768 #define sleep_full_usage \
2769         SKIP_FEATURE_FANCY_SLEEP("Pause for N seconds.") \
2770         USE_FEATURE_FANCY_SLEEP( \
2771        "Pause for a time equal to the total of the args given, where each arg can\n" \
2772        "have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays.")
2773 #define sleep_example_usage \
2774        "$ sleep 2\n" \
2775        "[2 second delay results]\n" \
2776         USE_FEATURE_FANCY_SLEEP( \
2777        "$ sleep 1d 3h 22m 8s\n" \
2778        "[98528 second delay results]\n")
2779
2780 #define sort_trivial_usage \
2781        "[-nru" \
2782         USE_FEATURE_SORT_BIG("gMcszbdfimSTokt] [-o outfile] [-k start[.offset][opts][,end[.offset][opts]] [-t char") \
2783        "] [FILE]..."
2784 #define sort_full_usage \
2785        "Sorts lines of text in the specified files" \
2786        "\n\nOptions:\n" \
2787         USE_FEATURE_SORT_BIG( \
2788        "        -b      ignore leading blanks\n" \
2789        "        -c      check whether input is sorted\n" \
2790        "        -d      dictionary order (blank or alphanumeric only)\n" \
2791        "        -f      ignore case\n" \
2792        "        -g      general numerical sort\n" \
2793        "        -i      ignore unprintable characters\n" \
2794        "        -k      specify sort key\n" \
2795        "        -M      sort month\n") \
2796        "        -n      sort numbers\n" \
2797         USE_FEATURE_SORT_BIG( \
2798        "        -o      output to file\n" \
2799        "        -k      sort by key\n" \
2800        "        -t      use key separator other than whitespace\n") \
2801        "        -r      reverse sort order\n" \
2802         USE_FEATURE_SORT_BIG( \
2803        "        -s      stable (don't sort ties alphabetically)\n") \
2804        "        -u      suppress duplicate lines" \
2805         USE_FEATURE_SORT_BIG( \
2806        "\n      -z      input terminated by nulls, not newlines\n") \
2807         USE_FEATURE_SORT_BIG( \
2808        "        -mST    ignored for GNU compatibility") \
2809        ""
2810 #define sort_example_usage \
2811        "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \
2812        "a\n" \
2813        "b\n" \
2814        "c\n" \
2815        "d\n" \
2816        "e\n" \
2817        "f\n" \
2818         USE_FEATURE_SORT_BIG( \
2819                 "$ echo -e \"c 3\\nb 2\\nd 2\" | $SORT -k 2,2n -k 1,1r\n" \
2820                 "d 2\n" \
2821                 "b 2\n" \
2822                 "c 3\n" \
2823         ) \
2824        ""
2825
2826 #define start_stop_daemon_trivial_usage \
2827        "[OPTIONS] [--start|--stop] ... [-- arguments...]"
2828 #define start_stop_daemon_full_usage \
2829        "Program to start and stop services." \
2830        "\n\nOptions:" \
2831        "\n      -S|--start                      start" \
2832        "\n      -K|--stop                       stop" \
2833        "\n      -a|--startas <pathname>         starts process specified by pathname" \
2834        "\n      -b|--background                 force process into background" \
2835        "\n      -u|--user <username>|<uid>      stop this user's processes" \
2836        "\n      -x|--exec <executable>          program to either start or check" \
2837        "\n      -m|--make-pidfile               create the -p file and enter pid in it" \
2838        "\n      -n|--name <process-name>        stop processes with this name" \
2839        "\n      -p|--pidfile <pid-file>         save or load pid using a pid-file" \
2840        "\n      -q|--quiet                      be quiet" \
2841         USE_FEATURE_START_STOP_DAEMON_FANCY( \
2842        "\n      -o|--oknodo                     exit status 0 if nothing done" \
2843        "\n      -v|--verbose                    be verbose" \
2844        "\n      -N|--nicelevel <N>              add N to process's nice level" \
2845         ) \
2846        "\n      -s|--signal <signal>            signal to send (default TERM)" \
2847        "\n      -U|--chuid <username>|<uid>     start process with this name"
2848
2849 #define stat_trivial_usage \
2850        "[OPTION] FILE..."
2851 #define stat_full_usage \
2852        "Display file (default) or filesystem status" \
2853        "\n\nOptions:\n" \
2854         USE_FEATURE_STAT_FORMAT( \
2855        "        -c fmt  use the specified format\n") \
2856        "        -f      display filesystem status\n" \
2857        "        -L,-l   dereference links\n" \
2858        "        -t      display info in terse form" \
2859         USE_FEATURE_STAT_FORMAT( \
2860        "\n\nValid format sequences for files:\n" \
2861        " %a     Access rights in octal\n" \
2862        " %A     Access rights in human readable form\n" \
2863        " %b     Number of blocks allocated (see %B)\n" \
2864        " %B     The size in bytes of each block reported by %b\n" \
2865        " %d     Device number in decimal\n" \
2866        " %D     Device number in hex\n" \
2867        " %f     Raw mode in hex\n" \
2868        " %F     File type\n" \
2869        " %g     Group ID of owner\n" \
2870        " %G     Group name of owner\n" \
2871        " %h     Number of hard links\n" \
2872        " %i     Inode number\n" \
2873        " %n     File name\n" \
2874        " %N     Quoted file name with dereference if symbolic link\n" \
2875        " %o     I/O block size\n" \
2876        " %s     Total size, in bytes\n" \
2877        " %t     Major device type in hex\n" \
2878        " %T     Minor device type in hex\n" \
2879        " %u     User ID of owner\n" \
2880        " %U     User name of owner\n" \
2881        " %x     Time of last access\n" \
2882        " %X     Time of last access as seconds since Epoch\n" \
2883        " %y     Time of last modification\n" \
2884        " %Y     Time of last modification as seconds since Epoch\n" \
2885        " %z     Time of last change\n" \
2886        " %Z     Time of last change as seconds since Epoch\n" \
2887        "\nValid format sequences for file systems:\n" \
2888        " %a     Free blocks available to non-superuser\n" \
2889        " %b     Total data blocks in file system\n" \
2890        " %c     Total file nodes in file system\n" \
2891        " %d     Free file nodes in file system\n" \
2892        " %f     Free blocks in file system\n" \
2893        " %i     File System ID in hex\n" \
2894        " %l     Maximum length of filenames\n" \
2895        " %n     File name\n" \
2896        " %s     Block size (for faster transfers)\n" \
2897        " %S     Fundamental block size (for block counts)\n" \
2898        " %t     Type in hex\n" \
2899        " %T     Type in human readable form" \
2900         )
2901
2902 #define strings_trivial_usage \
2903        "[-afo] [-n length] [file ... ]"
2904 #define strings_full_usage \
2905        "Display printable strings in a binary file." \
2906        "\n\nOptions:" \
2907        "\n      -a      Scan the whole files (this is the default)." \
2908        "\n      -f      Precede each string with the name of the file where it was found." \
2909        "\n      -n N    Specifies that at least N characters forms a sequence (default 4)" \
2910        "\n      -o      Each string is preceded by its decimal offset in the file"
2911
2912 #define stty_trivial_usage \
2913        "[-a|g] [-F DEVICE] [SETTING]..."
2914 #define stty_full_usage \
2915        "Without arguments, prints baud rate, line discipline," \
2916        "\nand deviations from stty sane." \
2917        "\n\nOptions:" \
2918        "\n      -F DEVICE       open device instead of stdin" \
2919        "\n      -a              print all current settings in human-readable form" \
2920        "\n      -g              print in stty-readable form" \
2921        "\n      [SETTING]       see manpage"
2922
2923 #define su_trivial_usage \
2924        "[OPTION]... [-] [username]"
2925 #define su_full_usage \
2926        "Change user id or become root" \
2927        "\n\nOptions:" \
2928        "\n      -p, -m  Preserve environment" \
2929        "\n      -c      Command to pass to 'sh -c'" \
2930        "\n      -s      Shell to use instead of default shell"
2931
2932 #define sulogin_trivial_usage \
2933        "[OPTION]... [tty-device]"
2934 #define sulogin_full_usage \
2935        "Single user login" \
2936        "\n\nOptions:" \
2937        "\n      -t      Timeout"
2938
2939 #define sum_trivial_usage \
2940        "[rs] [files...]"
2941 #define sum_full_usage \
2942        "Checksum and count the blocks in a file" \
2943        "\n\nOptions:\n" \
2944        "        -r      use BSD sum algorithm (1K blocks)\n" \
2945        "        -s      use System V sum algorithm (512byte blocks)"
2946
2947 #define sv_trivial_usage \
2948        "[-v] [-w sec] command service..."
2949 #define sv_full_usage \
2950        "Report the current status and control the state of services " \
2951        "monitored by the runsv supervisor."
2952
2953 #define svlogd_trivial_usage \
2954        "[-ttv] [-r c] [-R abc] [-l len] [-b buflen] dir..."
2955 #define svlogd_full_usage \
2956        "Continuously read log data from standard input, optionally " \
2957        "filter log messages, and write the data to one or more automatically " \
2958        "rotated logs."
2959
2960 #define swapoff_trivial_usage \
2961        "[-a] [DEVICE]"
2962 #define swapoff_full_usage \
2963        "Stop swapping virtual memory pages on DEVICE" \
2964        "\n\nOptions:\n" \
2965        "        -a      Stop swapping on all swap devices"
2966
2967 #define swapon_trivial_usage \
2968        "[-a] [DEVICE]"
2969 #define swapon_full_usage \
2970        "Start swapping virtual memory pages on DEVICE" \
2971        "\n\nOptions:\n" \
2972        "        -a      Start swapping on all swap devices"
2973
2974 #define switch_root_trivial_usage \
2975        "[-c /dev/console] NEW_ROOT NEW_INIT [ARGUMENTS_TO_INIT]"
2976 #define switch_root_full_usage \
2977        "Use from PID 1 under initramfs to free initramfs, chroot to NEW_ROOT,\n" \
2978        "and exec NEW_INIT" \
2979        "\n\nOptions:\n" \
2980        "        -c      Redirect console to device on new root"
2981
2982 #define sync_trivial_usage \
2983        ""
2984 #define sync_full_usage \
2985        "Write all buffered filesystem blocks to disk."
2986
2987 #define sysctl_trivial_usage \
2988        "[OPTIONS]... [VALUE]..."
2989 #define sysctl_full_usage \
2990        "Configure kernel parameters at runtime" \
2991        "\n\nOptions:\n" \
2992        "        -n      Use this option to disable printing of the key name when printing values\n" \
2993        "        -w      Use this option when you want to change a sysctl setting\n" \
2994        "        -p      Load in sysctl settings from the file specified or /etc/sysctl.conf if none given\n" \
2995        "        -a      Display all values currently available\n" \
2996        "        -A      Display all values currently available in table form"
2997 #define sysctl_example_usage \
2998        "sysctl [-n] variable ...\n" \
2999        "sysctl [-n] -w variable=value ...\n" \
3000        "sysctl [-n] -a\n" \
3001        "sysctl [-n] -p <file>   (default /etc/sysctl.conf)\n" \
3002        "sysctl [-n] -A\n"
3003
3004 #define syslogd_trivial_usage \
3005        "[OPTION]..."
3006 #define syslogd_full_usage \
3007        "Linux system and kernel logging utility.\n" \
3008        "Note that this version of syslogd ignores /etc/syslog.conf." \
3009        "\n\nOptions:" \
3010        "\n      -m MIN  Minutes between MARK lines (default=20, 0=off)" \
3011        "\n      -n      Run as a foreground process" \
3012        "\n      -O FILE Use an alternate log file (default=/var/log/messages)" \
3013        "\n      -l n    Sets the local log level of messages to n" \
3014        "\n      -S      Make logging output smaller" \
3015         USE_FEATURE_ROTATE_LOGFILE( \
3016        "\n      -s SIZE Max size (KB) before rotate (default=200KB, 0=off)" \
3017        "\n      -b NUM  Number of rotated logs to keep (default=1, max=99, 0=purge)") \
3018         USE_FEATURE_REMOTE_LOG( \
3019        "\n      -R HOST[:PORT]  Log to IP or hostname on PORT (default PORT=514/UDP)" \
3020        "\n      -L      Log locally and via network logging (default is network only)") \
3021         USE_FEATURE_IPC_SYSLOG( \
3022        "\n      -C [size(KiB)]  Log to a circular buffer (read the buffer using logread)")
3023 #define syslogd_example_usage \
3024        "$ syslogd -R masterlog:514\n" \
3025        "$ syslogd -R 192.168.1.1:601\n"
3026
3027 #define tail_trivial_usage \
3028        "[OPTION]... [FILE]..."
3029 #define tail_full_usage \
3030        "Print last 10 lines of each FILE to standard output.\n" \
3031        "With more than one FILE, precede each with a header giving the\n" \
3032        "file name. With no FILE, or when FILE is -, read standard input." \
3033        "\n\nOptions:" \
3034         USE_FEATURE_FANCY_TAIL( \
3035        "\n      -c N[kbm]       output the last N bytes") \
3036        "\n      -n N[kbm]       print last N lines instead of last 10" \
3037        "\n      -f              output data as the file grows" \
3038         USE_FEATURE_FANCY_TAIL( \
3039        "\n      -q              never output headers giving file names" \
3040        "\n      -s SEC          wait SEC seconds between reads with -f" \
3041        "\n      -v              always output headers giving file names" \
3042        "\n\n" \
3043        "If the first character of N (bytes or lines) is a '+', output begins with\n" \
3044        "the Nth item from the start of each file, otherwise, print the last N items\n" \
3045        "in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2)." )
3046 #define tail_example_usage \
3047        "$ tail -n 1 /etc/resolv.conf\n" \
3048        "nameserver 10.0.0.1\n"
3049
3050 #define tar_trivial_usage \
3051        "-[" USE_FEATURE_TAR_CREATE("c") USE_FEATURE_TAR_GZIP("z") \
3052         USE_FEATURE_TAR_BZIP2("j") USE_FEATURE_TAR_LZMA("a") \
3053         USE_FEATURE_TAR_COMPRESS("Z") "xtvO] " \
3054         USE_FEATURE_TAR_FROM("[-X FILE] ") \
3055        "[-f TARFILE] [-C DIR] [FILE(s)] ..."
3056 #define tar_full_usage \
3057        "Create, extract, or list files from a tar file" \
3058        "\n\nOptions:\n" \
3059         USE_FEATURE_TAR_CREATE( \
3060        "        c       create\n") \
3061        "        x       extract\n" \
3062        "        t       list\n" \
3063        "\nArchive format selection:\n" \
3064         USE_FEATURE_TAR_GZIP( \
3065        "        z       Filter the archive through gzip\n") \
3066         USE_FEATURE_TAR_BZIP2( \
3067        "        j       Filter the archive through bzip2\n") \
3068         USE_FEATURE_TAR_LZMA( \
3069        "        a       Filter the archive through lzma\n") \
3070         USE_FEATURE_TAR_COMPRESS( \
3071        "        Z       Filter the archive through compress\n") \
3072        "\nFile selection:\n" \
3073        "        f       name of TARFILE or \"-\" for stdin\n" \
3074        "        O       extract to stdout\n" \
3075         USE_FEATURE_TAR_FROM( \
3076        "        exclude file to exclude\n" \
3077        "        X       file with names to exclude\n") \
3078        "        C       change to directory DIR before operation\n" \
3079        "        v       verbosely list files processed"
3080 #define tar_example_usage \
3081        "$ zcat /tmp/tarball.tar.gz | tar -xf -\n" \
3082        "$ tar -cf /tmp/tarball.tar /usr/local\n"
3083
3084 #define taskset_trivial_usage \
3085        "[OPTIONS] [mask] [pid | command [arg]...]"
3086 #define taskset_full_usage \
3087        "Set or get CPU affinity" \
3088        "\n\nOptions:\n" \
3089        "        -p      operate on an existing PID"
3090 #define taskset_example_usage \
3091        "$ taskset 0x7 ./dgemm_test&\n" \
3092        "$ taskset -p 0x1 $!\n" \
3093        "pid 4790's current affinity mask: 7\n" \
3094        "pid 4790's new affinity mask: 1\n" \
3095        "$ taskset 0x7 /bin/sh -c './taskset -p 0x1 $$'\n" \
3096        "pid 6671's current affinity mask: 1\n" \
3097        "pid 6671's new affinity mask: 1\n" \
3098        "$ taskset -p 1\n" \
3099        "pid 1's current affinity mask: 3\n"
3100
3101 #define tee_trivial_usage \
3102        "[OPTION]... [FILE]..."
3103 #define tee_full_usage \
3104        "Copy standard input to each FILE, and also to standard output" \
3105        "\n\nOptions:\n" \
3106        "        -a      append to the given FILEs, do not overwrite\n" \
3107        "        -i      ignore interrupt signals (SIGINT)"
3108 #define tee_example_usage \
3109        "$ echo \"Hello\" | tee /tmp/foo\n" \
3110        "$ cat /tmp/foo\n" \
3111        "Hello\n"
3112
3113 #ifdef CONFIG_FEATURE_TELNET_AUTOLOGIN
3114 #define telnet_trivial_usage \
3115        "[-a] [-l USER] HOST [PORT]"
3116 #define telnet_full_usage \
3117        "Telnet is used to establish interactive communication with another\n" \
3118        "computer over a network using the TELNET protocol" \
3119        "\n\nOptions:\n" \
3120        "        -a      Attempt an automatic login with the USER variable\n" \
3121        "        -l USER Attempt an automatic login with the USER argument\n" \
3122        "        HOST    The official name, alias or the IP address of the\n" \
3123        "                remote host.\n" \
3124        "        PORT    The remote port number to connect to.  If it is not\n" \
3125        "                specified, the default telnet (23) port is used."
3126 #else
3127 #define telnet_trivial_usage \
3128        "HOST [PORT]"
3129 #define telnet_full_usage \
3130        "Telnet is used to establish interactive communication with another\n" \
3131        "computer over a network using the TELNET protocol."
3132 #endif
3133
3134 #ifdef CONFIG_FEATURE_TELNETD_STANDALONE
3135 #define telnetd_trivial_usage \
3136        "[OPTION]"
3137 #define telnetd_full_usage \
3138        "Telnetd listens for incoming TELNET connections on PORT" \
3139        "\n\nOptions:\n" \
3140        "        -p PORT         listen for connections on PORT (default 23)\n" \
3141        "        -l LOGIN        exec LOGIN on connect\n" \
3142        "        -f issue_file   Display issue_file instead of /etc/issue\n" \
3143        "        -F              Foreground mode\n" \
3144        "        -i              Inetd mode"
3145 #else
3146 #define telnetd_trivial_usage \
3147        "[OPTION]"
3148 #define telnetd_full_usage \
3149        "Telnetd uses incoming TELNET connections" \
3150         SKIP_FEATURE_TELNETD_STANDALONE(" via inetd") \
3151        "\n\nOptions:" \
3152        "\n      -l LOGIN        exec LOGIN on connect" \
3153        "\n      -f issue_file   Display issue_file instead of /etc/issue" \
3154         USE_FEATURE_TELNETD_STANDALONE( \
3155        "\n      -p PORT         port to listen to" \
3156        "\n      -b ADDR         address to bind to" \
3157        "\n      -F              stay in foreground" \
3158        "\n      -i              inetd subservice" \
3159         )
3160 #endif
3161
3162 #define test_trivial_usage \
3163        "EXPRESSION\n  or   [ EXPRESSION ]"
3164 #define test_full_usage \
3165        "Checks file types and compares values returning an exit\n" \
3166        "code determined by the value of EXPRESSION."
3167 #define test_example_usage \
3168        "$ test 1 -eq 2\n" \
3169        "$ echo $?\n" \
3170        "1\n" \
3171        "$ test 1 -eq 1\n" \
3172        "$ echo $?\n" \
3173        "0\n" \
3174        "$ [ -d /etc ]\n" \
3175        "$ echo $?\n" \
3176        "0\n" \
3177        "$ [ -d /junk ]\n" \
3178        "$ echo $?\n" \
3179        "1\n"
3180
3181 #define tftp_trivial_usage \
3182        "[OPTION]... HOST [PORT]"
3183 #define tftp_full_usage \
3184        "Transfers a file from/to a tftp server using \"octet\" mode" \
3185        "\n\nOptions:" \
3186        "\n      -l FILE Local FILE" \
3187        "\n      -r FILE Remote FILE" \
3188         USE_FEATURE_TFTP_GET( \
3189        "\n      -g      Get file" \
3190         ) \
3191         USE_FEATURE_TFTP_PUT( \
3192        "\n      -p      Put file" \
3193         ) \
3194         USE_FEATURE_TFTP_BLOCKSIZE( \
3195        "\n      -b SIZE Transfer blocks of SIZE octets" \
3196         )
3197 #define time_trivial_usage \
3198        "[OPTION]... COMMAND [ARGS...]"
3199 #define time_full_usage \
3200        "Runs the program COMMAND with arguments ARGS.  When COMMAND finishes,\n" \
3201        "COMMAND's resource usage information is displayed." \
3202        "\n\nOptions:\n" \
3203        "        -v      Displays verbose resource usage information"
3204
3205 #define top_trivial_usage \
3206        "[-b] [-n count] [-d seconds]"
3207 #define top_full_usage \
3208        "top provides a view of process activity in real time.\n" \
3209        "It reads the status of all processes from /proc each <seconds>\n" \
3210        "and shows the status for however many processes will fit on the screen."
3211
3212 #define touch_trivial_usage \
3213        "[-c] FILE [FILE ...]"
3214 #define touch_full_usage \
3215        "Update the last-modified date on the given FILE[s]" \
3216        "\n\nOptions:\n" \
3217        "        -c      Do not create any files"
3218 #define touch_example_usage \
3219        "$ ls -l /tmp/foo\n" \
3220        "/bin/ls: /tmp/foo: No such file or directory\n" \
3221        "$ touch /tmp/foo\n" \
3222        "$ ls -l /tmp/foo\n" \
3223        "-rw-rw-r--    1 andersen andersen        0 Apr 15 01:11 /tmp/foo\n"
3224
3225 #define tr_trivial_usage \
3226        "[-cds] STRING1 [STRING2]"
3227 #define tr_full_usage \
3228        "Translate, squeeze, and/or delete characters from\n" \
3229        "standard input, writing to standard output" \
3230        "\n\nOptions:\n" \
3231        "        -c      take complement of STRING1\n" \
3232        "        -d      delete input characters coded STRING1\n" \
3233        "        -s      squeeze multiple output characters of STRING2 into one character"
3234 #define tr_example_usage \
3235        "$ echo \"gdkkn vnqkc\" | tr [a-y] [b-z]\n" \
3236        "hello world\n"
3237
3238 #define traceroute_trivial_usage \
3239        "[-FIldnrv] [-f 1st_ttl] [-m max_ttl] [-p port#] [-q nqueries]\n" \
3240        "        [-s src_addr] [-t tos] [-w wait] [-g gateway] [-i iface]\n" \
3241        "        [-z pausemsecs] host [data size]"
3242 #define traceroute_full_usage \
3243        "Trace the route ip packets follow going to \"host\"" \
3244        "\n\nOptions:\n" \
3245        "        -F      Set the don't fragment bit\n" \
3246        "        -I      Use ICMP ECHO instead of UDP datagrams\n" \
3247        "        -l      Display the ttl value of the returned packet\n" \
3248        "        -d      Set SO_DEBUG options to socket\n" \
3249        "        -n      Print hop addresses numerically rather than symbolically\n" \
3250        "        -r      Bypass the normal routing tables and send directly to a host\n" \
3251        "        -v      Verbose output\n" \
3252        "        -m max_ttl      Set the max time-to-live (max number of hops)\n" \
3253        "        -p port#        Set the base UDP port number used in probes\n" \
3254        "                        (default is 33434)\n" \
3255        "        -q nqueries     Set the number of probes per 'ttl' to nqueries\n" \
3256        "                        (default is 3)\n" \
3257        "        -s src_addr     Use the following IP address as the source address\n" \
3258        "        -t tos          Set the type-of-service in probe packets to the following value\n" \
3259        "                        (default 0)\n" \
3260        "        -w wait         Set the time (in seconds) to wait for a response to a probe\n" \
3261        "                        (default 3 sec)\n" \
3262        "        -g              Specify a loose source route gateway (8 maximum)"
3263
3264
3265 #define true_trivial_usage \
3266        ""
3267 #define true_full_usage \
3268        "Return an exit code of TRUE (0)."
3269 #define true_example_usage \
3270        "$ true\n" \
3271        "$ echo $?\n" \
3272        "0\n"
3273
3274 #define tty_trivial_usage \
3275        ""
3276 #define tty_full_usage \
3277        "Print the file name of the terminal connected to standard input" \
3278        "\n\nOptions:\n" \
3279        "        -s      print nothing, only return an exit status"
3280 #define tty_example_usage \
3281        "$ tty\n" \
3282        "/dev/tty2\n"
3283
3284 #define tune2fs_trivial_usage \
3285        "[-c max-mounts-count] [-e errors-behavior] [-g group] " \
3286        "[-i interval[d|m|w]] [-j] [-J journal-options] [-l] [-s sparse-flag] " \
3287        "[-m reserved-blocks-percent] [-o [^]mount-options[,...]] " \
3288        "[-r reserved-blocks-count] [-u user] [-C mount-count] " \
3289        "[-L volume-label] [-M last-mounted-dir] [-O [^]feature[,...]] " \
3290        "[-T last-check-time] [-U UUID] device"
3291 #define tune2fs_full_usage \
3292        "Adjust filesystem options on ext[23] filesystems."
3293
3294 #define udhcpc_trivial_usage \
3295        "[-Cfbnqtv] [-c CID] [-V VCLS] [-H HOSTNAME] [-i INTERFACE]\n[-p pidfile] [-r IP] [-s script]"
3296 #define udhcpc_full_usage \
3297        "        -V,--vendorclass=CLASSID        Set vendor class identifier\n" \
3298        "        -i,--interface=INTERFACE        Interface to use (default: eth0)\n" \
3299        "        -H,-h,--hostname=HOSTNAME       Client hostname\n" \
3300        "        -c,--clientid=CLIENTID  Set client identifier\n" \
3301        "        -C,--clientid-none      Suppress default client identifier\n" \
3302        "        -p,--pidfile=file       Store process ID of daemon in file\n" \
3303        "        -r,--request=IP         IP address to request (default: none)\n" \
3304        "        -s,--script=file        Run file at dhcp events (default: /usr/share/udhcpc/default.script)\n" \
3305        "        -t,--retries=NUM        Send up to NUM request packets\n"\
3306        "        -f,--foreground Do not fork after getting lease\n" \
3307        "        -b,--background Fork to background if lease cannot be immediately negotiated\n" \
3308        "        -n,--now        Exit with failure if lease cannot be immediately negotiated\n" \
3309        "        -q,--quit       Quit after obtaining lease\n" \
3310        "        -R,--release    Release IP on quit\n" \
3311        "        -v,--version    Display version" \
3312
3313 #define udhcpd_trivial_usage \
3314        "[configfile]\n" \
3315
3316 #define udhcpd_full_usage \
3317        ""
3318
3319 #define umount_trivial_usage \
3320        "[flags] FILESYSTEM|DIRECTORY"
3321 #define umount_full_usage \
3322        "Unmount file systems\n" \
3323        "\nFlags:" \
3324        "\n      -a      Unmount all file systems" USE_FEATURE_MTAB_SUPPORT(" in /etc/mtab") \
3325         USE_FEATURE_MTAB_SUPPORT( \
3326        "\n      -n      Don't erase /etc/mtab entries") \
3327        "\n      -r      Try to remount devices as read-only if mount is busy" \
3328        "\n      -l      Lazy umount (detach filesystem)" \
3329        "\n      -f      Force umount (i.e., unreachable NFS server)" \
3330         USE_FEATURE_MOUNT_LOOP( \
3331        "\n      -D      Do not free loop device (if a loop device has been used)")
3332 #define umount_example_usage \
3333        "$ umount /dev/hdc1\n"
3334
3335 #define uname_trivial_usage \
3336        "[OPTION]..."
3337 #define uname_full_usage \
3338        "Print certain system information.  With no OPTION, same as -s." \
3339        "\n\nOptions:\n" \
3340        "        -a      print all information\n" \
3341        "        -m      the machine (hardware) type\n" \
3342        "        -n      print the machine's network node hostname\n" \
3343        "        -r      print the operating system release\n" \
3344        "        -s      print the operating system name\n" \
3345        "        -p      print the host processor type\n" \
3346        "        -v      print the operating system version"
3347 #define uname_example_usage \
3348        "$ uname -a\n" \
3349        "Linux debian 2.4.23 #2 Tue Dec 23 17:09:10 MST 2003 i686 GNU/Linux\n"
3350
3351 #define uncompress_trivial_usage \
3352        "[-c] [-f] [ name ... ]"
3353 #define uncompress_full_usage \
3354        "Uncompress .Z file[s]" \
3355        "\n\nOptions:\n" \
3356        "        -c      extract to stdout\n" \
3357        "        -f      force overwrite an existing file"
3358
3359 #define uniq_trivial_usage \
3360        "[-fscdu]... [INPUT [OUTPUT]]"
3361 #define uniq_full_usage \
3362        "Discard all but one of successive identical lines from INPUT\n" \
3363        "(or standard input), writing to OUTPUT (or standard output)" \
3364        "\n\nOptions:\n" \
3365        "        -c      prefix lines by the number of occurrences\n" \
3366        "        -d      only print duplicate lines\n" \
3367        "        -u      only print unique lines\n" \
3368        "        -f N    skip the first N fields\n" \
3369        "        -s N    skip the first N chars (after any skipped fields)"
3370 #define uniq_example_usage \
3371        "$ echo -e \"a\\na\\nb\\nc\\nc\\na\" | sort | uniq\n" \
3372        "a\n" \
3373        "b\n" \
3374        "c\n"
3375
3376 #define unix2dos_trivial_usage \
3377        "[option] [FILE]"
3378 #define unix2dos_full_usage \
3379        "Converts FILE from unix format to dos format.  When no option\n" \
3380        "is given, the input is converted to the opposite output format.\n" \
3381        "When no file is given, uses stdin for input and stdout for output." \
3382        "\n\nOptions:\n" \
3383        "        -u      output will be in UNIX format\n" \
3384        "        -d      output will be in DOS format"
3385
3386 #define unzip_trivial_usage \
3387        "[-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]"
3388 #define unzip_full_usage \
3389        "Extracts files from ZIP archives" \
3390        "\n\nOptions:\n" \
3391        "        -l      list archive contents (short form)\n" \
3392        "        -n      never overwrite existing files (default)\n" \
3393        "        -o      overwrite files without prompting\n" \
3394        "        -p      send output to stdout\n" \
3395        "        -q      be quiet\n" \
3396        "        -x      exclude these files\n" \
3397        "        -d      extract files into this directory"
3398
3399 #define uptime_trivial_usage \
3400        ""
3401 #define uptime_full_usage \
3402        "Display the time since the last boot."
3403 #define uptime_example_usage \
3404        "$ uptime\n" \
3405        "  1:55pm  up  2:30, load average: 0.09, 0.04, 0.00\n"
3406
3407 #define usleep_trivial_usage \
3408        "N"
3409 #define usleep_full_usage \
3410        "Pause for N microseconds."
3411 #define usleep_example_usage \
3412        "$ usleep 1000000\n" \
3413        "[pauses for 1 second]\n"
3414
3415 #define uudecode_trivial_usage \
3416        "[FILE]..."
3417 #define uudecode_full_usage \
3418        "Uudecode a file" \
3419        "\n\nOptions:\n" \
3420        "        -o FILE direct output to FILE"
3421 #define uudecode_example_usage \
3422        "$ uudecode -o busybox busybox.uu\n" \
3423        "$ ls -l busybox\n" \
3424        "-rwxr-xr-x   1 ams      ams        245264 Jun  7 21:35 busybox\n"
3425
3426 #define uuencode_trivial_usage \
3427        "[OPTION] [INFILE] REMOTEFILE"
3428 #define uuencode_full_usage \
3429        "Uuencode a file" \
3430        "\n\nOptions:\n" \
3431        "        -m      use base64 encoding per RFC1521"
3432 #define uuencode_example_usage \
3433        "$ uuencode busybox busybox\n" \
3434        "begin 755 busybox\n" \
3435        "<encoded file snipped>\n" \
3436        "$ uudecode busybox busybox > busybox.uu\n" \
3437        "$\n"
3438
3439 #define vconfig_trivial_usage \
3440        "COMMAND [OPTIONS] ..."
3441 #define vconfig_full_usage \
3442        "Create and remove virtual ethernet devices" \
3443        "\n\nOptions:\n" \
3444        "        add             [interface-name] [vlan_id]\n" \
3445        "        rem             [vlan-name]\n" \
3446        "        set_flag        [interface-name] [flag-num]       [0 | 1]\n" \
3447        "        set_egress_map  [vlan-name]      [skb_priority]   [vlan_qos]\n" \
3448        "        set_ingress_map [vlan-name]      [skb_priority]   [vlan_qos]\n" \
3449        "        set_name_type   [name-type]"
3450
3451 #define vi_trivial_usage \
3452        "[OPTION] [FILE]..."
3453 #define vi_full_usage \
3454        "Edit FILE" \
3455        "\n\nOptions:\n" \
3456        "        -R      Read-only- do not write to the file"
3457
3458 #define vlock_trivial_usage \
3459        "[OPTIONS]"
3460 #define vlock_full_usage \
3461        "Lock a virtual terminal.  A password is required to unlock." \
3462        "\n\nOptions:\n" \
3463        "        -a      Lock all VTs"
3464
3465 #define watch_trivial_usage \
3466        "[-n <seconds>] [-t] COMMAND..."
3467 #define watch_full_usage \
3468        "Executes a program periodically" \
3469        "\n\nOptions:\n" \
3470        "        -n      Loop period in seconds - default is 2\n" \
3471        "        -t      Don't print header"
3472 #define watch_example_usage \
3473        "$ watch date\n" \
3474        "Mon Dec 17 10:31:40 GMT 2000\n" \
3475        "Mon Dec 17 10:31:42 GMT 2000\n" \
3476        "Mon Dec 17 10:31:44 GMT 2000"
3477
3478 #define watchdog_trivial_usage \
3479        "[-t <seconds>] [-F] DEV"
3480 #define watchdog_full_usage \
3481        "Periodically write to watchdog device DEV" \
3482        "\n\nOptions:\n" \
3483        "        -t      Timer period in seconds - default is 30\n" \
3484        "        -F      Stay in the foreground and don't fork"
3485
3486 #define wc_trivial_usage \
3487        "[OPTION]... [FILE]..."
3488 #define wc_full_usage \
3489        "Print line, word, and byte counts for each FILE, and a total line if\n" \
3490        "more than one FILE is specified.  With no FILE, read standard input." \
3491        "\n\nOptions:\n" \
3492        "        -c      print the byte counts\n" \
3493        "        -l      print the newline counts\n" \
3494        "        -L      print the length of the longest line\n" \
3495        "        -w      print the word counts"
3496 #define wc_example_usage \
3497        "$ wc /etc/passwd\n" \
3498        "     31      46    1365 /etc/passwd\n"
3499
3500 #define wget_trivial_usage \
3501        "[-c|--continue] [-q|--quiet] [-O|--output-document file]\n" \
3502        "                [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]\n" \
3503        "                [-U|--user-agent agent] url"
3504 #define wget_full_usage \
3505        "Retrieve files via HTTP or FTP" \
3506        "\n\nOptions:\n" \
3507        "        -c      continue retrieval of aborted transfers\n" \
3508        "        -q      quiet mode - do not print\n" \
3509        "        -P      Set directory prefix to DIR\n" \
3510        "        -O      save to filename ('-' for stdout)\n" \
3511        "        -U      adjust 'User-Agent' field\n" \
3512        "        -Y      use proxy ('on' or 'off')"
3513
3514 #define which_trivial_usage \
3515        "[COMMAND ...]"
3516 #define which_full_usage \
3517        "Locates a COMMAND."
3518 #define which_example_usage \
3519        "$ which login\n" \
3520        "/bin/login\n"
3521
3522 #define who_trivial_usage \
3523        " "
3524 #define who_full_usage \
3525        "Prints the current user names and related information"
3526
3527 #define whoami_trivial_usage \
3528        ""
3529 #define whoami_full_usage \
3530        "Prints the user name associated with the current effective user id."
3531
3532 #define xargs_trivial_usage \
3533        "[OPTIONS] [COMMAND] [ARGS...]"
3534 #define xargs_full_usage \
3535        "Executes COMMAND on every item given by standard input" \
3536        "\n\nOptions:\n" \
3537         USE_FEATURE_XARGS_SUPPORT_CONFIRMATION( \
3538        "        -p      Prompt the user about whether to run each command\n") \
3539        "        -r      Do not run command for empty read lines\n" \
3540         USE_FEATURE_XARGS_SUPPORT_TERMOPT( \
3541        "        -x      Exit if the size is exceeded\n") \
3542         USE_FEATURE_XARGS_SUPPORT_ZERO_TERM( \
3543        "        -0      Input filenames are terminated by a null character\n") \
3544        "        -t      Print the command line on stderr before executing it"
3545 #define xargs_example_usage \
3546        "$ ls | xargs gzip\n" \
3547        "$ find . -name '*.c' -print | xargs rm\n"
3548
3549 #define yes_trivial_usage \
3550        "[OPTION]... [STRING]..."
3551 #define yes_full_usage \
3552        "Repeatedly outputs a line with all specified STRING(s), or 'y'."
3553
3554 #define zcat_trivial_usage \
3555        "FILE"
3556 #define zcat_full_usage \
3557        "Uncompress to stdout."
3558
3559 #define zcip_trivial_usage \
3560        "[OPTIONS] ifname script"
3561 #define zcip_full_usage \
3562        "Manage a ZeroConf IPv4 link-local address" \
3563        "\n\nOptions:\n" \
3564        "        -f              foreground mode\n" \
3565        "        -q              quit after address (no daemon)\n" \
3566        "        -r 169.254.x.x  request this address first\n" \
3567        "        -v              verbose"
3568
3569 #endif /* __BB_USAGE_H__ */