hush: make set -x support optional
[platform/upstream/busybox.git] / include / usage.src.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  * or
10  *    |<5 spaces>"\ntext with tabs"....
11  */
12 #ifndef BB_USAGE_H
13 #define BB_USAGE_H 1
14
15
16 #define NOUSAGE_STR "\b"
17
18 INSERT
19
20 #define acpid_trivial_usage \
21        "[-d] [-c CONFDIR] [-l LOGFILE] [-e PROC_EVENT_FILE] [EVDEV_EVENT_FILE]..."
22 #define acpid_full_usage "\n\n" \
23        "Listen to ACPI events and spawn specific helpers on event arrival\n" \
24      "\nOptions:" \
25      "\n        -d      Don't daemonize, log to stderr" \
26      "\n        -c DIR  Config directory [/etc/acpi]" \
27      "\n        -e FILE /proc event file [/proc/acpi/event]" \
28      "\n        -l FILE Log file [/var/log/acpid]" \
29         IF_FEATURE_ACPID_COMPAT( \
30      "\n\nAccept and ignore compatibility options -g -m -s -S -v" \
31         )
32
33 #define acpid_example_usage \
34        "# acpid -l /var/log/my-acpi-log\n" \
35        "# acpid -d /dev/input/event*\n"
36
37 #define addgroup_trivial_usage \
38        "[-g GID] " IF_FEATURE_ADDUSER_TO_GROUP("[USER] ") "GROUP"
39 #define addgroup_full_usage "\n\n" \
40        "Add a group " IF_FEATURE_ADDUSER_TO_GROUP("or add a user to a group") "\n" \
41      "\nOptions:" \
42      "\n        -g GID  Group id" \
43      "\n        -S      Create a system group" \
44
45 #define adduser_trivial_usage \
46        "[OPTIONS] USER"
47 #define adduser_full_usage "\n\n" \
48        "Add a user\n" \
49      "\nOptions:" \
50      "\n        -h DIR          Home directory" \
51      "\n        -g GECOS        GECOS field" \
52      "\n        -s SHELL        Login shell" \
53      "\n        -G GRP          Add user to existing group" \
54      "\n        -S              Create a system user" \
55      "\n        -D              Don't assign a password" \
56      "\n        -H              Don't create home directory" \
57      "\n        -u UID          User id" \
58
59 #define adjtimex_trivial_usage \
60        "[-q] [-o OFF] [-f FREQ] [-p TCONST] [-t TICK]"
61 #define adjtimex_full_usage "\n\n" \
62        "Read and optionally set system timebase parameters. See adjtimex(2)\n" \
63      "\nOptions:" \
64      "\n        -q      Quiet" \
65      "\n        -o OFF  Time offset, microseconds" \
66      "\n        -f FREQ Frequency adjust, integer kernel units (65536 is 1ppm)" \
67      "\n                (positive values make clock run faster)" \
68      "\n        -t TICK Microseconds per tick, usually 10000" \
69      "\n        -p TCONST" \
70
71 #define ar_trivial_usage \
72        "[-o] [-v] [-p] [-t] [-x] ARCHIVE FILES"
73 #define ar_full_usage "\n\n" \
74        "Extract or list FILES from an ar archive\n" \
75      "\nOptions:" \
76      "\n        -o      Preserve original dates" \
77      "\n        -p      Extract to stdout" \
78      "\n        -t      List" \
79      "\n        -x      Extract" \
80      "\n        -v      Verbose" \
81
82 #define arp_trivial_usage \
83      "\n[-vn]   [-H HWTYPE] [-i IF] -a [HOSTNAME]" \
84      "\n[-v]                [-i IF] -d HOSTNAME [pub]" \
85      "\n[-v]    [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [temp]" \
86      "\n[-v]    [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [netmask MASK] pub" \
87      "\n[-v]    [-H HWTYPE] [-i IF] -Ds HOSTNAME IFACE [netmask MASK] pub"
88 #define arp_full_usage "\n\n" \
89        "Manipulate ARP cache\n" \
90      "\nOptions:" \
91        "\n      -a              Display (all) hosts" \
92        "\n      -s              Set new ARP entry" \
93        "\n      -d              Delete a specified entry" \
94        "\n      -v              Verbose" \
95        "\n      -n              Don't resolve names" \
96        "\n      -i IF           Network interface" \
97        "\n      -D              Read <hwaddr> from given device" \
98        "\n      -A, -p AF       Protocol family" \
99        "\n      -H HWTYPE       Hardware address type" \
100
101 #define arping_trivial_usage \
102        "[-fqbDUA] [-c CNT] [-w TIMEOUT] [-I IFACE] [-s SRC_IP] DST_IP"
103 #define arping_full_usage "\n\n" \
104        "Send ARP requests/replies\n" \
105      "\nOptions:" \
106      "\n        -f              Quit on first ARP reply" \
107      "\n        -q              Quiet" \
108      "\n        -b              Keep broadcasting, don't go unicast" \
109      "\n        -D              Duplicated address detection mode" \
110      "\n        -U              Unsolicited ARP mode, update your neighbors" \
111      "\n        -A              ARP answer mode, update your neighbors" \
112      "\n        -c N            Stop after sending N ARP requests" \
113      "\n        -w TIMEOUT      Time to wait for ARP reply, seconds" \
114      "\n        -I IFACE        Interface to use (default eth0)" \
115      "\n        -s SRC_IP       Sender IP address" \
116      "\n        DST_IP          Target IP address" \
117
118 #define sh_trivial_usage NOUSAGE_STR
119 #define sh_full_usage ""
120 #define ash_trivial_usage NOUSAGE_STR
121 #define ash_full_usage ""
122 #define bash_trivial_usage NOUSAGE_STR
123 #define bash_full_usage ""
124
125 #define awk_trivial_usage \
126        "[OPTIONS] [AWK_PROGRAM] [FILE]..."
127 #define awk_full_usage "\n\n" \
128        "Options:" \
129      "\n        -v VAR=VAL      Set variable" \
130      "\n        -F SEP          Use SEP as field separator" \
131      "\n        -f FILE         Read program from FILE" \
132
133 #define basename_trivial_usage \
134        "FILE [SUFFIX]"
135 #define basename_full_usage "\n\n" \
136        "Strip directory path and .SUFFIX from FILE\n"
137 #define basename_example_usage \
138        "$ basename /usr/local/bin/foo\n" \
139        "foo\n" \
140        "$ basename /usr/local/bin/\n" \
141        "bin\n" \
142        "$ basename /foo/bar.txt .txt\n" \
143        "bar"
144
145 #define beep_trivial_usage \
146        "-f FREQ -l LEN -d DELAY -r COUNT -n"
147 #define beep_full_usage "\n\n" \
148        "Options:" \
149      "\n        -f      Frequency in Hz" \
150      "\n        -l      Length in ms" \
151      "\n        -d      Delay in ms" \
152      "\n        -r      Repetitions" \
153      "\n        -n      Start new tone" \
154
155 #define blkid_trivial_usage \
156        ""
157 #define blkid_full_usage "\n\n" \
158        "Print UUIDs of all filesystems"
159
160 #define brctl_trivial_usage \
161        "COMMAND [BRIDGE [INTERFACE]]"
162 #define brctl_full_usage "\n\n" \
163        "Manage ethernet bridges\n" \
164      "\nCommands:" \
165         IF_FEATURE_BRCTL_SHOW( \
166      "\n        show                    Show a list of bridges" \
167         ) \
168      "\n        addbr BRIDGE            Create BRIDGE" \
169      "\n        delbr BRIDGE            Delete BRIDGE" \
170      "\n        addif BRIDGE IFACE      Add IFACE to BRIDGE" \
171      "\n        delif BRIDGE IFACE      Delete IFACE from BRIDGE" \
172         IF_FEATURE_BRCTL_FANCY( \
173      "\n        setageing BRIDGE TIME           Set ageing time" \
174      "\n        setfd BRIDGE TIME               Set bridge forward delay" \
175      "\n        sethello BRIDGE TIME            Set hello time" \
176      "\n        setmaxage BRIDGE TIME           Set max message age" \
177      "\n        setpathcost BRIDGE COST         Set path cost" \
178      "\n        setportprio BRIDGE PRIO         Set port priority" \
179      "\n        setbridgeprio BRIDGE PRIO       Set bridge priority" \
180      "\n        stp BRIDGE [1/yes/on|0/no/off]  STP on/off" \
181         ) \
182
183 #define bzip2_trivial_usage \
184        "[OPTIONS] [FILE]..."
185 #define bzip2_full_usage "\n\n" \
186        "Compress FILEs (or stdin) with bzip2 algorithm\n" \
187      "\nOptions:" \
188      "\n        -1..9   Compression level" \
189      "\n        -d      Decompress" \
190      "\n        -c      Write to stdout" \
191      "\n        -f      Force" \
192
193 #define busybox_notes_usage \
194        "Hello world!\n"
195
196 #define lzop_trivial_usage \
197        "[-cfvd123456789CF] [FILE]..."
198 #define lzop_full_usage "\n\n" \
199        "Options:" \
200      "\n        -1..9   Compression level" \
201      "\n        -d      Decompress" \
202      "\n        -c      Write to stdout" \
203      "\n        -f      Force" \
204      "\n        -v      Verbose" \
205      "\n        -F      Don't store or verify checksum" \
206      "\n        -C      Also write checksum of compressed block" \
207
208 #define lzopcat_trivial_usage \
209        "[-vCF] [FILE]..."
210 #define lzopcat_full_usage "\n\n" \
211        "        -v      Verbose" \
212      "\n        -F      Don't store or verify checksum" \
213
214 #define unlzop_trivial_usage \
215        "[-cfvCF] [FILE]..."
216 #define unlzop_full_usage "\n\n" \
217        "Options:" \
218      "\n        -c      Write to stdout" \
219      "\n        -f      Force" \
220      "\n        -v      Verbose" \
221      "\n        -F      Don't store or verify checksum" \
222
223 #define unlzma_trivial_usage \
224        "[OPTIONS] [FILE]..."
225 #define unlzma_full_usage "\n\n" \
226        "Decompress FILE (or stdin)\n" \
227      "\nOptions:" \
228      "\n        -c      Write to stdout" \
229      "\n        -f      Force" \
230
231 #define lzma_trivial_usage \
232        "-d [OPTIONS] [FILE]..."
233 #define lzma_full_usage "\n\n" \
234        "Decompress FILE (or stdin)\n" \
235      "\nOptions:" \
236      "\n        -d      Decompress" \
237      "\n        -c      Write to stdout" \
238      "\n        -f      Force" \
239
240 #define lzcat_trivial_usage \
241        "FILE"
242 #define lzcat_full_usage "\n\n" \
243        "Decompress to stdout"
244
245 #define unxz_trivial_usage \
246        "[OPTIONS] [FILE]..."
247 #define unxz_full_usage "\n\n" \
248        "Decompress FILE (or stdin)\n" \
249      "\nOptions:" \
250      "\n        -c      Write to stdout" \
251      "\n        -f      Force" \
252
253 #define xz_trivial_usage \
254        "-d [OPTIONS] [FILE]..."
255 #define xz_full_usage "\n\n" \
256        "Decompress FILE (or stdin)\n" \
257      "\nOptions:" \
258      "\n        -d      Decompress" \
259      "\n        -c      Write to stdout" \
260      "\n        -f      Force" \
261
262 #define xzcat_trivial_usage \
263        "FILE"
264 #define xzcat_full_usage "\n\n" \
265        "Decompress to stdout"
266
267 #define cal_trivial_usage \
268        "[-jy] [[MONTH] YEAR]"
269 #define cal_full_usage "\n\n" \
270        "Display a calendar\n" \
271      "\nOptions:" \
272      "\n        -j      Use julian dates" \
273      "\n        -y      Display the entire year" \
274
275 #define cat_trivial_usage \
276        "[FILE]..."
277 #define cat_full_usage "\n\n" \
278        "Concatenate FILEs and print them to stdout" \
279
280 #define cat_example_usage \
281        "$ cat /proc/uptime\n" \
282        "110716.72 17.67"
283
284 #define catv_trivial_usage \
285        "[-etv] [FILE]..."
286 #define catv_full_usage "\n\n" \
287        "Display nonprinting characters as ^x or M-x\n" \
288      "\nOptions:" \
289      "\n        -e      End each line with $" \
290      "\n        -t      Show tabs as ^I" \
291      "\n        -v      Don't use ^x or M-x escapes" \
292
293 #define chat_trivial_usage \
294        "EXPECT [SEND [EXPECT [SEND...]]]"
295 #define chat_full_usage "\n\n" \
296        "Useful for interacting with a modem connected to stdin/stdout.\n" \
297        "A script consists of one or more \"expect-send\" pairs of strings,\n" \
298        "each pair is a pair of arguments. Example:\n" \
299        "chat '' ATZ OK ATD123456 CONNECT '' ogin: pppuser word: ppppass '~'" \
300
301 #define chattr_trivial_usage \
302        "[-R] [-+=AacDdijsStTu] [-v VERSION] [FILE]..."
303 #define chattr_full_usage "\n\n" \
304        "Change file attributes on an ext2 fs\n" \
305      "\nModifiers:" \
306      "\n        -       Remove attributes" \
307      "\n        +       Add attributes" \
308      "\n        =       Set attributes" \
309      "\nAttributes:" \
310      "\n        A       Don't track atime" \
311      "\n        a       Append mode only" \
312      "\n        c       Enable compress" \
313      "\n        D       Write dir contents synchronously" \
314      "\n        d       Don't backup with dump" \
315      "\n        i       Cannot be modified (immutable)" \
316      "\n        j       Write all data to journal first" \
317      "\n        s       Zero disk storage when deleted" \
318      "\n        S       Write file contents synchronously" \
319      "\n        t       Disable tail-merging of partial blocks with other files" \
320      "\n        u       Allow file to be undeleted" \
321      "\nOptions:" \
322      "\n        -R      Recurse" \
323      "\n        -v      Set the file's version/generation number" \
324
325 #define chcon_trivial_usage \
326        "[OPTIONS] CONTEXT FILE..." \
327        "\n      chcon [OPTIONS] [-u USER] [-r ROLE] [-l RANGE] [-t TYPE] FILE..." \
328         IF_FEATURE_CHCON_LONG_OPTIONS( \
329        "\n      chcon [OPTIONS] --reference=RFILE FILE..." \
330         )
331 #define chcon_full_usage "\n\n" \
332        "Change the security context of each FILE to CONTEXT\n" \
333         IF_FEATURE_CHCON_LONG_OPTIONS( \
334      "\n        -v,--verbose            Verbose" \
335      "\n        -c,--changes            Report changes made" \
336      "\n        -h,--no-dereference     Affect symlinks instead of their targets" \
337      "\n        -f,--silent,--quiet     Suppress most error messages" \
338      "\n        --reference=RFILE       Use RFILE's group instead of using a CONTEXT value" \
339      "\n        -u,--user=USER          Set user/role/type/range in the target" \
340      "\n        -r,--role=ROLE          security context" \
341      "\n        -t,--type=TYPE" \
342      "\n        -l,--range=RANGE" \
343      "\n        -R,--recursive          Recurse" \
344         ) \
345         IF_NOT_FEATURE_CHCON_LONG_OPTIONS( \
346      "\n        -v      Verbose" \
347      "\n        -c      Report changes made" \
348      "\n        -h      Affect symlinks instead of their targets" \
349      "\n        -f      Suppress most error messages" \
350      "\n        -u USER Set user/role/type/range in the target security context" \
351      "\n        -r ROLE" \
352      "\n        -t TYPE" \
353      "\n        -l RNG" \
354      "\n        -R      Recurse" \
355         )
356
357 #define chmod_trivial_usage \
358        "[-R"IF_DESKTOP("cvf")"] MODE[,MODE]... FILE..."
359 #define chmod_full_usage "\n\n" \
360        "Each MODE is one or more of the letters ugoa, one of the\n" \
361        "symbols +-= and one or more of the letters rwxst\n" \
362      "\nOptions:" \
363      "\n        -R      Recurse" \
364         IF_DESKTOP( \
365      "\n        -c      List changed files" \
366      "\n        -v      List all files" \
367      "\n        -f      Hide errors" \
368         )
369 #define chmod_example_usage \
370        "$ ls -l /tmp/foo\n" \
371        "-rw-rw-r--    1 root     root            0 Apr 12 18:25 /tmp/foo\n" \
372        "$ chmod u+x /tmp/foo\n" \
373        "$ ls -l /tmp/foo\n" \
374        "-rwxrw-r--    1 root     root            0 Apr 12 18:25 /tmp/foo*\n" \
375        "$ chmod 444 /tmp/foo\n" \
376        "$ ls -l /tmp/foo\n" \
377        "-r--r--r--    1 root     root            0 Apr 12 18:25 /tmp/foo\n"
378
379 #define chgrp_trivial_usage \
380        "[-RhLHP"IF_DESKTOP("cvf")"]... GROUP FILE..."
381 #define chgrp_full_usage "\n\n" \
382        "Change the group membership of each FILE to GROUP\n" \
383      "\nOptions:" \
384      "\n        -R      Recurse" \
385      "\n        -h      Affect symlinks instead of symlink targets" \
386      "\n        -L      Traverse all symlinks to directories" \
387      "\n        -H      Traverse symlinks on command line only" \
388      "\n        -P      Don't traverse symlinks (default)" \
389         IF_DESKTOP( \
390      "\n        -c      List changed files" \
391      "\n        -v      Verbose" \
392      "\n        -f      Hide errors" \
393         )
394 #define chgrp_example_usage \
395        "$ ls -l /tmp/foo\n" \
396        "-r--r--r--    1 andersen andersen        0 Apr 12 18:25 /tmp/foo\n" \
397        "$ chgrp root /tmp/foo\n" \
398        "$ ls -l /tmp/foo\n" \
399        "-r--r--r--    1 andersen root            0 Apr 12 18:25 /tmp/foo\n"
400
401 #define chown_trivial_usage \
402        "[-RhLHP"IF_DESKTOP("cvf")"]... OWNER[<.|:>[GROUP]] FILE..."
403 #define chown_full_usage "\n\n" \
404        "Change the owner and/or group of each FILE to OWNER and/or GROUP\n" \
405      "\nOptions:" \
406      "\n        -R      Recurse" \
407      "\n        -h      Affect symlinks instead of symlink targets" \
408      "\n        -L      Traverse all symlinks to directories" \
409      "\n        -H      Traverse symlinks on command line only" \
410      "\n        -P      Don't traverse symlinks (default)" \
411         IF_DESKTOP( \
412      "\n        -c      List changed files" \
413      "\n        -v      List all files" \
414      "\n        -f      Hide errors" \
415         )
416 #define chown_example_usage \
417        "$ ls -l /tmp/foo\n" \
418        "-r--r--r--    1 andersen andersen        0 Apr 12 18:25 /tmp/foo\n" \
419        "$ chown root /tmp/foo\n" \
420        "$ ls -l /tmp/foo\n" \
421        "-r--r--r--    1 root     andersen        0 Apr 12 18:25 /tmp/foo\n" \
422        "$ chown root.root /tmp/foo\n" \
423        "ls -l /tmp/foo\n" \
424        "-r--r--r--    1 root     root            0 Apr 12 18:25 /tmp/foo\n"
425
426 #define chpst_trivial_usage \
427        "[-vP012] [-u USER[:GRP]] [-U USER[:GRP]] [-e DIR]\n" \
428        "        [-/ DIR] [-n NICE] [-m BYTES] [-d BYTES] [-o N]\n" \
429        "        [-p N] [-f BYTES] [-c BYTES] PROG ARGS"
430 #define chpst_full_usage "\n\n" \
431        "Change the process state, run PROG\n" \
432      "\nOptions:" \
433      "\n        -u USER[:GRP]   Set uid and gid" \
434      "\n        -U USER[:GRP]   Set $UID and $GID in environment" \
435      "\n        -e DIR          Set environment variables as specified by files" \
436      "\n                        in DIR: file=1st_line_of_file" \
437      "\n        -/ DIR          Chroot to DIR" \
438      "\n        -n NICE         Add NICE to nice value" \
439      "\n        -m BYTES        Same as -d BYTES -s BYTES -l BYTES" \
440      "\n        -d BYTES        Limit data segment" \
441      "\n        -o N            Limit number of open files per process" \
442      "\n        -p N            Limit number of processes per uid" \
443      "\n        -f BYTES        Limit output file sizes" \
444      "\n        -c BYTES        Limit core file size" \
445      "\n        -v              Verbose" \
446      "\n        -P              Create new process group" \
447      "\n        -0              Close stdin" \
448      "\n        -1              Close stdout" \
449      "\n        -2              Close stderr" \
450
451 #define setuidgid_trivial_usage \
452        "USER PROG ARGS"
453 #define setuidgid_full_usage "\n\n" \
454        "Set uid and gid to USER's uid and gid, drop supplementary group ids,\n" \
455        "run PROG"
456 #define envuidgid_trivial_usage \
457        "USER PROG ARGS"
458 #define envuidgid_full_usage "\n\n" \
459        "Set $UID to USER's uid and $GID to USER's gid, run PROG"
460 #define envdir_trivial_usage \
461        "DIR PROG ARGS"
462 #define envdir_full_usage "\n\n" \
463        "Set various environment variables as specified by files\n" \
464        "in the directory DIR, run PROG"
465 #define softlimit_trivial_usage \
466        "[-a BYTES] [-m BYTES] [-d BYTES] [-s BYTES] [-l BYTES]\n" \
467        "        [-f BYTES] [-c BYTES] [-r BYTES] [-o N] [-p N] [-t N]\n" \
468        "        PROG ARGS"
469 #define softlimit_full_usage "\n\n" \
470        "Set soft resource limits, then run PROG\n" \
471      "\nOptions:" \
472      "\n        -a BYTES        Limit total size of all segments" \
473      "\n        -m BYTES        Same as -d BYTES -s BYTES -l BYTES -a BYTES" \
474      "\n        -d BYTES        Limit data segment" \
475      "\n        -s BYTES        Limit stack segment" \
476      "\n        -l BYTES        Limit locked memory size" \
477      "\n        -o N            Limit number of open files per process" \
478      "\n        -p N            Limit number of processes per uid" \
479      "\nOptions controlling file sizes:" \
480      "\n        -f BYTES        Limit output file sizes" \
481      "\n        -c BYTES        Limit core file size" \
482      "\nEfficiency opts:" \
483      "\n        -r BYTES        Limit resident set size" \
484      "\n        -t N            Limit CPU time, process receives" \
485      "\n                        a SIGXCPU after N seconds" \
486
487 #define chroot_trivial_usage \
488        "NEWROOT [PROG ARGS]"
489 #define chroot_full_usage "\n\n" \
490        "Run PROG with root directory set to NEWROOT"
491 #define chroot_example_usage \
492        "$ ls -l /bin/ls\n" \
493        "lrwxrwxrwx    1 root     root          12 Apr 13 00:46 /bin/ls -> /BusyBox\n" \
494        "# mount /dev/hdc1 /mnt -t minix\n" \
495        "# chroot /mnt\n" \
496        "# ls -l /bin/ls\n" \
497        "-rwxr-xr-x    1 root     root        40816 Feb  5 07:45 /bin/ls*\n"
498
499 #define chvt_trivial_usage \
500        "N"
501 #define chvt_full_usage "\n\n" \
502        "Change the foreground virtual terminal to /dev/ttyN"
503
504 #define cksum_trivial_usage \
505        "FILES..."
506 #define cksum_full_usage "\n\n" \
507        "Calculate the CRC32 checksums of FILES"
508
509 #define clear_trivial_usage \
510        ""
511 #define clear_full_usage "\n\n" \
512        "Clear screen"
513
514 #define cmp_trivial_usage \
515        "[-l] [-s] FILE1 [FILE2" IF_DESKTOP(" [SKIP1 [SKIP2]]") "]"
516 #define cmp_full_usage "\n\n" \
517        "Compare FILE1 with FILE2 (or stdin)\n" \
518      "\nOptions:" \
519      "\n        -l      Write the byte numbers (decimal) and values (octal)" \
520      "\n                for all differing bytes" \
521      "\n        -s      Quiet" \
522
523 #define comm_trivial_usage \
524        "[-123] FILE1 FILE2"
525 #define comm_full_usage "\n\n" \
526        "Compare FILE1 with FILE2\n" \
527      "\nOptions:" \
528      "\n        -1      Suppress lines unique to FILE1" \
529      "\n        -2      Suppress lines unique to FILE2" \
530      "\n        -3      Suppress lines common to both files" \
531
532 #define bbconfig_trivial_usage \
533        ""
534 #define bbconfig_full_usage "\n\n" \
535        "Print the config file used by busybox build"
536
537 #define chrt_trivial_usage \
538        "[OPTIONS] [PRIO] [PID | PROG ARGS]"
539 #define chrt_full_usage "\n\n" \
540        "Change scheduling priority and class for a process\n" \
541      "\nOptions:" \
542      "\n        -p      Operate on PID" \
543      "\n        -r      Set SCHED_RR class" \
544      "\n        -f      Set SCHED_FIFO class" \
545      "\n        -o      Set SCHED_OTHER class" \
546      "\n        -m      Show min/max priorities" \
547
548 #define chrt_example_usage \
549        "$ chrt -r 4 sleep 900; x=$!\n" \
550        "$ chrt -f -p 3 $x\n" \
551        "You need CAP_SYS_NICE privileges to set scheduling attributes of a process"
552
553 #define nice_trivial_usage \
554        "[-n ADJUST] [PROG ARGS]"
555 #define nice_full_usage "\n\n" \
556        "Change scheduling priority, run PROG\n" \
557      "\nOptions:" \
558      "\n        -n ADJUST       Adjust priority by ADJUST" \
559
560 #define renice_trivial_usage \
561        "{{-n INCREMENT} | PRIORITY} [[-p | -g | -u] ID...]"
562 #define renice_full_usage "\n\n" \
563        "Change scheduling priority for a running process\n" \
564      "\nOptions:" \
565      "\n        -n      Adjust current nice value (smaller is faster)" \
566      "\n        -p      Process id(s) (default)" \
567      "\n        -g      Process group id(s)" \
568      "\n        -u      Process user name(s) and/or id(s)" \
569
570 #define ionice_trivial_usage \
571         "[-c 1-3] [-n 0-7] [-p PID] [PROG]"
572 #define ionice_full_usage "\n\n" \
573        "Change I/O priority and class\n" \
574      "\nOptions:" \
575      "\n        -c      Class. 1:realtime 2:best-effort 3:idle" \
576      "\n        -n      Priority" \
577
578 #define cp_trivial_usage \
579        "[OPTIONS] SOURCE DEST"
580 #define cp_full_usage "\n\n" \
581        "Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY\n" \
582      "\nOptions:" \
583      "\n        -a      Same as -dpR" \
584         IF_SELINUX( \
585      "\n        -c      Preserve security context" \
586         ) \
587      "\n        -R,-r   Recurse" \
588      "\n        -d,-P   Preserve symlinks (default if -R)" \
589      "\n        -L      Follow all symlinks" \
590      "\n        -H      Follow symlinks on command line" \
591      "\n        -p      Preserve file attributes if possible" \
592      "\n        -f      Overwrite" \
593      "\n        -i      Prompt before overwrite" \
594      "\n        -l,-s   Create (sym)links" \
595
596 #define cpio_trivial_usage \
597        "[-dmvu] [-F FILE]" IF_FEATURE_CPIO_O(" [-H newc]") \
598        " [-ti"IF_FEATURE_CPIO_O("o")"]" IF_FEATURE_CPIO_P(" [-p DIR]")
599 #define cpio_full_usage "\n\n" \
600        "Extract or list files from a cpio archive" \
601         IF_FEATURE_CPIO_O(", or" \
602      "\ncreate an archive" IF_FEATURE_CPIO_P(" (-o) or copy files (-p)") \
603                 " using file list on stdin" \
604         ) \
605      "\n" \
606      "\nMain operation mode:" \
607      "\n        -t      List" \
608      "\n        -i      Extract" \
609         IF_FEATURE_CPIO_O( \
610      "\n        -o      Create (requires -H newc)" \
611         ) \
612         IF_FEATURE_CPIO_P( \
613      "\n        -p DIR  Copy files to DIR" \
614         ) \
615      "\nOptions:" \
616      "\n        -d      Make leading directories" \
617      "\n        -m      Preserve mtime" \
618      "\n        -v      Verbose" \
619      "\n        -u      Overwrite" \
620      "\n        -F FILE Input (-t,-i,-p) or output (-o) file" \
621         IF_FEATURE_CPIO_O( \
622      "\n        -H newc Archive format" \
623         ) \
624
625 #define crond_trivial_usage \
626        "-fbS -l N " IF_FEATURE_CROND_D("-d N ") "-L LOGFILE -c DIR"
627 #define crond_full_usage "\n\n" \
628        "        -f      Foreground" \
629      "\n        -b      Background (default)" \
630      "\n        -S      Log to syslog (default)" \
631      "\n        -l      Set log level. 0 is the most verbose, default 8" \
632         IF_FEATURE_CROND_D( \
633      "\n        -d      Set log level, log to stderr" \
634         ) \
635      "\n        -L      Log to file" \
636      "\n        -c      Working dir" \
637
638 #define crontab_trivial_usage \
639        "[-c DIR] [-u USER] [-ler]|[FILE]"
640 #define crontab_full_usage "\n\n" \
641        "        -c      Crontab directory" \
642      "\n        -u      User" \
643      "\n        -l      List crontab" \
644      "\n        -e      Edit crontab" \
645      "\n        -r      Delete crontab" \
646      "\n        FILE    Replace crontab by FILE ('-': stdin)" \
647
648 #define cryptpw_trivial_usage \
649        "[OPTIONS] [PASSWORD] [SALT]"
650 /* We do support -s, we just don't mention it */
651 #define cryptpw_full_usage "\n\n" \
652        "Crypt the PASSWORD using crypt(3)\n" \
653      "\nOptions:" \
654         IF_LONG_OPTS( \
655      "\n        -P,--password-fd=N      Read password from fd N" \
656 /*   "\n        -s,--stdin              Use stdin; like -P0" */ \
657      "\n        -m,--method=TYPE        Encryption method TYPE" \
658      "\n        -S,--salt=SALT" \
659         ) \
660         IF_NOT_LONG_OPTS( \
661      "\n        -P N    Read password from fd N" \
662 /*   "\n        -s      Use stdin; like -P0" */ \
663      "\n        -m TYPE Encryption method TYPE" \
664      "\n        -S SALT" \
665         ) \
666
667 /* mkpasswd is an alias to cryptpw */
668
669 #define mkpasswd_trivial_usage \
670        "[OPTIONS] [PASSWORD] [SALT]"
671 /* We do support -s, we just don't mention it */
672 #define mkpasswd_full_usage "\n\n" \
673        "Crypt the PASSWORD using crypt(3)\n" \
674      "\nOptions:" \
675         IF_LONG_OPTS( \
676      "\n        -P,--password-fd=N      Read password from fd N" \
677 /*   "\n        -s,--stdin              Use stdin; like -P0" */ \
678      "\n        -m,--method=TYPE        Encryption method TYPE" \
679      "\n        -S,--salt=SALT" \
680         ) \
681         IF_NOT_LONG_OPTS( \
682      "\n        -P N    Read password from fd N" \
683 /*   "\n        -s      Use stdin; like -P0" */ \
684      "\n        -m TYPE Encryption method TYPE" \
685      "\n        -S SALT" \
686         ) \
687
688 #define cttyhack_trivial_usage \
689        "PROG ARGS"
690 #define cttyhack_full_usage "\n\n" \
691        "Give PROG a controlling tty if possible." \
692      "\nExample for /etc/inittab (for busybox init):" \
693      "\n        ::respawn:/bin/cttyhack /bin/sh" \
694      "\nGiving controlling tty to shell running with PID 1:" \
695      "\n        $ exec cttyhack sh" \
696      "\nStarting interactive shell from boot shell script:" \
697      "\n        setsid cttyhack sh" \
698
699 #define cut_trivial_usage \
700        "[OPTIONS] [FILE]..."
701 #define cut_full_usage "\n\n" \
702        "Print selected fields from each input FILE to stdout\n" \
703      "\nOptions:" \
704      "\n        -b LIST Output only bytes from LIST" \
705      "\n        -c LIST Output only characters from LIST" \
706      "\n        -d CHAR Use CHAR instead of tab as the field delimiter" \
707      "\n        -s      Output only the lines containing delimiter" \
708      "\n        -f N    Print only these fields" \
709      "\n        -n      Ignored" \
710
711 #define cut_example_usage \
712        "$ echo \"Hello world\" | cut -f 1 -d ' '\n" \
713        "Hello\n" \
714        "$ echo \"Hello world\" | cut -f 2 -d ' '\n" \
715        "world\n"
716
717 #define date_trivial_usage \
718        "[OPTIONS] [+FMT] [TIME]"
719 #define date_full_usage "\n\n" \
720        "Display time (using +FMT), or set time\n" \
721      "\nOptions:" \
722         IF_NOT_LONG_OPTS( \
723      "\n        [-s] TIME       Set time to TIME" \
724      "\n        -u              Work in UTC (don't convert to local time)" \
725      "\n        -R              Output RFC-2822 compliant date string" \
726         ) IF_LONG_OPTS( \
727      "\n        [-s,--set] TIME Set time to TIME" \
728      "\n        -u,--utc        Work in UTC (don't convert to local time)" \
729      "\n        -R,--rfc-2822   Output RFC-2822 compliant date string" \
730         ) \
731         IF_FEATURE_DATE_ISOFMT( \
732      "\n        -I[SPEC]        Output ISO-8601 compliant date string" \
733      "\n                        SPEC='date' (default) for date only," \
734      "\n                        'hours', 'minutes', or 'seconds' for date and" \
735      "\n                        time to the indicated precision" \
736         ) IF_NOT_LONG_OPTS( \
737      "\n        -r FILE         Display last modification time of FILE" \
738      "\n        -d TIME         Display TIME, not 'now'" \
739         ) IF_LONG_OPTS( \
740      "\n        -r,--reference FILE     Display last modification time of FILE" \
741      "\n        -d,--date TIME  Display TIME, not 'now'" \
742         ) \
743         IF_FEATURE_DATE_ISOFMT( \
744      "\n        -D FMT          Use FMT for -d TIME conversion" \
745         ) \
746      "\n" \
747      "\nRecognized TIME formats:" \
748      "\n        hh:mm[:ss]" \
749      "\n        [YYYY.]MM.DD-hh:mm[:ss]" \
750      "\n        YYYY-MM-DD hh:mm[:ss]" \
751      "\n        [[[[[YY]YY]MM]DD]hh]mm[.ss]" \
752
753 #define date_example_usage \
754        "$ date\n" \
755        "Wed Apr 12 18:52:41 MDT 2000\n"
756
757 #define dc_trivial_usage \
758        "expression..."
759 #define dc_full_usage "\n\n" \
760        "Tiny RPN calculator. Operations:\n" \
761        "+, add, -, sub, *, mul, /, div, %, mod, **, exp, and, or, not, eor,\n" \
762        "p - print top of the stack (without altering the stack),\n" \
763        "f - print entire stack, o - pop the value and set output radix\n" \
764        "(value must be 10 or 16).\n" \
765        "Examples: 'dc 2 2 add' -> 4, 'dc 8 8 * 2 2 + /' -> 16\n" \
766
767 #define dc_example_usage \
768        "$ dc 2 2 + p\n" \
769        "4\n" \
770        "$ dc 8 8 \\* 2 2 + / p\n" \
771        "16\n" \
772        "$ dc 0 1 and p\n" \
773        "0\n" \
774        "$ dc 0 1 or p\n" \
775        "1\n" \
776        "$ echo 72 9 div 8 mul p | dc\n" \
777        "64\n"
778
779 #define dd_trivial_usage \
780        "[if=FILE] [of=FILE] " IF_FEATURE_DD_IBS_OBS("[ibs=N] [obs=N] ") "[bs=N] [count=N] [skip=N]\n" \
781        "        [seek=N]" IF_FEATURE_DD_IBS_OBS(" [conv=notrunc|noerror|sync|fsync]")
782 #define dd_full_usage "\n\n" \
783        "Copy a file with converting and formatting\n" \
784      "\nOptions:" \
785      "\n        if=FILE         Read from FILE instead of stdin" \
786      "\n        of=FILE         Write to FILE instead of stdout" \
787      "\n        bs=N            Read and write N bytes at a time" \
788         IF_FEATURE_DD_IBS_OBS( \
789      "\n        ibs=N           Read N bytes at a time" \
790         ) \
791         IF_FEATURE_DD_IBS_OBS( \
792      "\n        obs=N           Write N bytes at a time" \
793         ) \
794      "\n        count=N         Copy only N input blocks" \
795      "\n        skip=N          Skip N input blocks" \
796      "\n        seek=N          Skip N output blocks" \
797         IF_FEATURE_DD_IBS_OBS( \
798      "\n        conv=notrunc    Don't truncate output file" \
799      "\n        conv=noerror    Continue after read errors" \
800      "\n        conv=sync       Pad blocks with zeros" \
801      "\n        conv=fsync      Physically write data out before finishing" \
802         ) \
803      "\n" \
804      "\nNumbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024)," \
805      "\nMD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)" \
806
807 #define dd_example_usage \
808        "$ dd if=/dev/zero of=/dev/ram1 bs=1M count=4\n" \
809        "4+0 records in\n" \
810        "4+0 records out\n"
811
812 #define deallocvt_trivial_usage \
813        "[N]"
814 #define deallocvt_full_usage "\n\n" \
815        "Deallocate unused virtual terminal /dev/ttyN"
816
817 #define delgroup_trivial_usage \
818         IF_FEATURE_DEL_USER_FROM_GROUP("[USER] ")"GROUP"
819 #define delgroup_full_usage "\n\n" \
820        "Delete group GROUP from the system" \
821         IF_FEATURE_DEL_USER_FROM_GROUP(" or user USER from group GROUP")
822
823 #define deluser_trivial_usage \
824        "USER"
825 #define deluser_full_usage "\n\n" \
826        "Delete USER from the system"
827
828 #define depmod_trivial_usage NOUSAGE_STR
829 #define depmod_full_usage ""
830
831 #define devmem_trivial_usage \
832         "ADDRESS [WIDTH [VALUE]]"
833
834 #define devmem_full_usage "\n\n" \
835        "Read/write from physical address\n" \
836      "\n        ADDRESS Address to act upon" \
837      "\n        WIDTH   Width (8/16/...)" \
838      "\n        VALUE   Data to be written" \
839
840 #define devfsd_trivial_usage \
841        "mntpnt [-v]" IF_DEVFSD_FG_NP("[-fg][-np]")
842 #define devfsd_full_usage "\n\n" \
843        "Manage devfs permissions and old device name symlinks\n" \
844      "\nOptions:" \
845      "\n        mntpnt  The mount point where devfs is mounted" \
846      "\n        -v      Print the protocol version numbers for devfsd" \
847      "\n                and the kernel-side protocol version and exit" \
848         IF_DEVFSD_FG_NP( \
849      "\n        -fg     Run in foreground" \
850      "\n        -np     Exit after parsing the configuration file" \
851      "\n                and processing synthetic REGISTER events," \
852      "\n                don't poll for events" \
853         )
854
855 #define df_trivial_usage \
856         "[-Pk" \
857         IF_FEATURE_HUMAN_READABLE("mh") \
858         IF_FEATURE_DF_FANCY("ai] [-B SIZE") \
859         "] [FILESYSTEM]..."
860 #define df_full_usage "\n\n" \
861        "Print filesystem usage statistics\n" \
862      "\nOptions:" \
863      "\n        -P      POSIX output format" \
864      "\n        -k      1024-byte blocks (default)" \
865         IF_FEATURE_HUMAN_READABLE( \
866      "\n        -m      1M-byte blocks" \
867      "\n        -h      Human readable (e.g. 1K 243M 2G)" \
868         ) \
869         IF_FEATURE_DF_FANCY( \
870      "\n        -a      Show all filesystems" \
871      "\n        -i      Inodes" \
872      "\n        -B SIZE Blocksize" \
873         ) \
874
875 #define df_example_usage \
876        "$ df\n" \
877        "Filesystem           1K-blocks      Used Available Use% Mounted on\n" \
878        "/dev/sda3              8690864   8553540    137324  98% /\n" \
879        "/dev/sda1                64216     36364     27852  57% /boot\n" \
880        "$ df /dev/sda3\n" \
881        "Filesystem           1K-blocks      Used Available Use% Mounted on\n" \
882        "/dev/sda3              8690864   8553540    137324  98% /\n" \
883        "$ POSIXLY_CORRECT=sure df /dev/sda3\n" \
884        "Filesystem         512B-blocks      Used Available Use% Mounted on\n" \
885        "/dev/sda3             17381728  17107080    274648  98% /\n" \
886        "$ POSIXLY_CORRECT=yep df -P /dev/sda3\n" \
887        "Filesystem          512-blocks      Used Available Capacity Mounted on\n" \
888        "/dev/sda3             17381728  17107080    274648      98% /\n"
889
890 #define dhcprelay_trivial_usage \
891        "CLIENT_IFACE[,CLIENT_IFACE2]... SERVER_IFACE [SERVER_IP]"
892 #define dhcprelay_full_usage "\n\n" \
893        "Relay DHCP requests between clients and server" \
894
895 #define diff_trivial_usage \
896        "[-abBdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2"
897 #define diff_full_usage "\n\n" \
898        "Compare files line by line and output the differences between them.\n" \
899        "This implementation supports unified diffs only.\n" \
900      "\nOptions:" \
901      "\n        -a      Treat all files as text" \
902      "\n        -b      Ignore changes in the amount of whitespace" \
903      "\n        -B      Ignore changes whose lines are all blank" \
904      "\n        -d      Try hard to find a smaller set of changes" \
905      "\n        -i      Ignore case differences" \
906      "\n        -L      Use LABEL instead of the filename in the unified header" \
907      "\n        -N      Treat absent files as empty" \
908      "\n        -q      Output only whether files differ" \
909      "\n        -r      Recurse" \
910      "\n        -S      Start with FILE when comparing directories" \
911      "\n        -T      Make tabs line up by prefixing a tab when necessary" \
912      "\n        -s      Report when two files are the same" \
913      "\n        -t      Expand tabs to spaces in output" \
914      "\n        -U      Output LINES lines of context" \
915      "\n        -w      Ignore all whitespace" \
916
917 #define dirname_trivial_usage \
918        "FILENAME"
919 #define dirname_full_usage "\n\n" \
920        "Strip non-directory suffix from FILENAME"
921 #define dirname_example_usage \
922        "$ dirname /tmp/foo\n" \
923        "/tmp\n" \
924        "$ dirname /tmp/foo/\n" \
925        "/tmp\n"
926
927 #define dmesg_trivial_usage \
928        "[-c] [-n LEVEL] [-s SIZE]"
929 #define dmesg_full_usage "\n\n" \
930        "Print or control the kernel ring buffer\n" \
931      "\nOptions:" \
932      "\n        -c              Clear ring buffer after printing" \
933      "\n        -n LEVEL        Set console logging level" \
934      "\n        -s SIZE         Buffer size" \
935
936 #define dnsd_trivial_usage \
937        "[-dvs] [-c CONFFILE] [-t TTL_SEC] [-p PORT] [-i ADDR]"
938 #define dnsd_full_usage "\n\n" \
939        "Small static DNS server daemon\n" \
940      "\nOptions:" \
941      "\n        -c FILE Config file" \
942      "\n        -t SEC  TTL" \
943      "\n        -p PORT Listen on PORT" \
944      "\n        -i ADDR Listen on ADDR" \
945      "\n        -d      Daemonize" \
946      "\n        -v      Verbose" \
947      "\n        -s      Send successful replies only. Use this if you want" \
948      "\n                to use /etc/resolv.conf with two nameserver lines:" \
949      "\n                        nameserver DNSD_SERVER" \
950      "\n                        nameserver NORNAL_DNS_SERVER" \
951
952 #define dos2unix_trivial_usage \
953        "[OPTIONS] [FILE]"
954 #define dos2unix_full_usage "\n\n" \
955        "Convert FILE in-place from DOS to Unix format.\n" \
956        "When no file is given, use stdin/stdout.\n" \
957      "\nOptions:" \
958      "\n        -u      dos2unix" \
959      "\n        -d      unix2dos" \
960
961 #define unix2dos_trivial_usage \
962        "[OPTIONS] [FILE]"
963 #define unix2dos_full_usage "\n\n" \
964        "Convert FILE in-place from Unix to DOS format.\n" \
965        "When no file is given, use stdin/stdout.\n" \
966      "\nOptions:" \
967      "\n        -u      dos2unix" \
968      "\n        -d      unix2dos" \
969
970 #define dpkg_trivial_usage \
971        "[-ilCPru] [-F OPT] PACKAGE"
972 #define dpkg_full_usage "\n\n" \
973        "Install, remove and manage Debian packages\n" \
974      "\nOptions:" \
975         IF_LONG_OPTS( \
976      "\n        -i,--install    Install the package" \
977      "\n        -l,--list       List of installed packages" \
978      "\n        --configure     Configure an unpackaged package" \
979      "\n        -P,--purge      Purge all files of a package" \
980      "\n        -r,--remove     Remove all but the configuration files for a package" \
981      "\n        --unpack        Unpack a package, but don't configure it" \
982      "\n        --force-depends Ignore dependency problems" \
983      "\n        --force-confnew Overwrite existing config files when installing" \
984      "\n        --force-confold Keep old config files when installing" \
985         ) \
986         IF_NOT_LONG_OPTS( \
987      "\n        -i              Install the package" \
988      "\n        -l              List of installed packages" \
989      "\n        -C              Configure an unpackaged package" \
990      "\n        -P              Purge all files of a package" \
991      "\n        -r              Remove all but the configuration files for a package" \
992      "\n        -u              Unpack a package, but don't configure it" \
993      "\n        -F depends      Ignore dependency problems" \
994      "\n        -F confnew      Overwrite existing config files when installing" \
995      "\n        -F confold      Keep old config files when installing" \
996         )
997
998 #define dpkg_deb_trivial_usage \
999        "[-cefxX] FILE [argument]"
1000 #define dpkg_deb_full_usage "\n\n" \
1001        "Perform actions on Debian packages (.debs)\n" \
1002      "\nOptions:" \
1003      "\n        -c      List contents of filesystem tree" \
1004      "\n        -e      Extract control files to [argument] directory" \
1005      "\n        -f      Display control field name starting with [argument]" \
1006      "\n        -x      Extract packages filesystem tree to directory" \
1007      "\n        -X      Verbose extract" \
1008
1009 #define dpkg_deb_example_usage \
1010        "$ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp\n"
1011
1012 #define du_trivial_usage \
1013        "[-aHLdclsx" IF_FEATURE_HUMAN_READABLE("hm") "k] [FILE]..."
1014 #define du_full_usage "\n\n" \
1015        "Summarize disk space used for each FILE and/or directory.\n" \
1016        "Disk space is printed in units of " \
1017         IF_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("1024") \
1018         IF_NOT_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("512") \
1019        " bytes.\n" \
1020      "\nOptions:" \
1021      "\n        -a      Show file sizes too" \
1022      "\n        -L      Follow all symlinks" \
1023      "\n        -H      Follow symlinks on command line" \
1024      "\n        -d N    Limit output to directories (and files with -a) of depth < N" \
1025      "\n        -c      Show grand total" \
1026      "\n        -l      Count sizes many times if hard linked" \
1027      "\n        -s      Display only a total for each argument" \
1028      "\n        -x      Skip directories on different filesystems" \
1029         IF_FEATURE_HUMAN_READABLE( \
1030      "\n        -h      Sizes in human readable format (e.g., 1K 243M 2G )" \
1031      "\n        -m      Sizes in megabytes" \
1032         ) \
1033      "\n        -k      Sizes in kilobytes" \
1034                         IF_FEATURE_DU_DEFAULT_BLOCKSIZE_1K(" (default)") \
1035
1036 #define du_example_usage \
1037        "$ du\n" \
1038        "16      ./CVS\n" \
1039        "12      ./kernel-patches/CVS\n" \
1040        "80      ./kernel-patches\n" \
1041        "12      ./tests/CVS\n" \
1042        "36      ./tests\n" \
1043        "12      ./scripts/CVS\n" \
1044        "16      ./scripts\n" \
1045        "12      ./docs/CVS\n" \
1046        "104     ./docs\n" \
1047        "2417    .\n"
1048
1049 #define dumpkmap_trivial_usage \
1050        "> keymap"
1051 #define dumpkmap_full_usage "\n\n" \
1052        "Print a binary keyboard translation table to stdout"
1053 #define dumpkmap_example_usage \
1054        "$ dumpkmap > keymap\n"
1055
1056 #define dumpleases_trivial_usage \
1057        "[-r|-a] [-f LEASEFILE]"
1058 #define dumpleases_full_usage "\n\n" \
1059        "Display DHCP leases granted by udhcpd\n" \
1060      "\nOptions:" \
1061         IF_LONG_OPTS( \
1062      "\n        -f,--file=FILE  Lease file" \
1063      "\n        -r,--remaining  Show remaining time" \
1064      "\n        -a,--absolute   Show expiration time" \
1065         ) \
1066         IF_NOT_LONG_OPTS( \
1067      "\n        -f FILE Lease file" \
1068      "\n        -r      Show remaining time" \
1069      "\n        -a      Show expiration time" \
1070         )
1071
1072 /*
1073 #define e2fsck_trivial_usage \
1074        "[-panyrcdfvstDFSV] [-b superblock] [-B blocksize] " \
1075        "[-I inode_buffer_blocks] [-P process_inode_size] " \
1076        "[-l|-L bad_blocks_file] [-C fd] [-j external_journal] " \
1077        "[-E extended-options] device"
1078 #define e2fsck_full_usage "\n\n" \
1079        "Check ext2/ext3 file system\n" \
1080      "\nOptions:" \
1081      "\n        -p              Automatic repair (no questions)" \
1082      "\n        -n              Make no changes to the filesystem" \
1083      "\n        -y              Assume 'yes' to all questions" \
1084      "\n        -c              Check for bad blocks and add them to the badblock list" \
1085      "\n        -f              Force checking even if filesystem is marked clean" \
1086      "\n        -v              Verbose" \
1087      "\n        -b superblock   Use alternative superblock" \
1088      "\n        -B blocksize    Force blocksize when looking for superblock" \
1089      "\n        -j journal      Set location of the external journal" \
1090      "\n        -l file         Add to badblocks list" \
1091      "\n        -L file         Set badblocks list" \
1092 */
1093
1094 #define echo_trivial_usage \
1095         IF_FEATURE_FANCY_ECHO("[-neE] ") "[ARG]..."
1096 #define echo_full_usage "\n\n" \
1097        "Print the specified ARGs to stdout" \
1098         IF_FEATURE_FANCY_ECHO( "\n" \
1099      "\nOptions:" \
1100      "\n        -n      Suppress trailing newline" \
1101      "\n        -e      Interpret backslash escapes (i.e., \\t=tab)" \
1102      "\n        -E      Don't interpret backslash escapes (default)" \
1103         )
1104 #define echo_example_usage \
1105        "$ echo \"Erik is cool\"\n" \
1106        "Erik is cool\n" \
1107         IF_FEATURE_FANCY_ECHO("$ echo -e \"Erik\\nis\\ncool\"\n" \
1108        "Erik\n" \
1109        "is\n" \
1110        "cool\n" \
1111        "$ echo \"Erik\\nis\\ncool\"\n" \
1112        "Erik\\nis\\ncool\n")
1113
1114 #define eject_trivial_usage \
1115        "[-t] [-T] [DEVICE]"
1116 #define eject_full_usage "\n\n" \
1117        "Eject DEVICE or default /dev/cdrom\n" \
1118      "\nOptions:" \
1119         IF_FEATURE_EJECT_SCSI( \
1120      "\n        -s      SCSI device" \
1121         ) \
1122      "\n        -t      Close tray" \
1123      "\n        -T      Open/close tray (toggle)" \
1124
1125 #define ed_trivial_usage ""
1126 #define ed_full_usage ""
1127
1128 #define env_trivial_usage \
1129        "[-iu] [-] [name=value]... [PROG ARGS]"
1130 #define env_full_usage "\n\n" \
1131        "Print the current environment or run PROG after setting up\n" \
1132        "the specified environment\n" \
1133      "\nOptions:" \
1134      "\n        -, -i   Start with an empty environment" \
1135      "\n        -u      Remove variable from the environment" \
1136
1137 #define ether_wake_trivial_usage \
1138        "[-b] [-i iface] [-p aa:bb:cc:dd[:ee:ff]] MAC"
1139 #define ether_wake_full_usage "\n\n" \
1140        "Send a magic packet to wake up sleeping machines.\n" \
1141        "MAC must be a station address (00:11:22:33:44:55) or\n" \
1142        "a hostname with a known 'ethers' entry.\n" \
1143      "\nOptions:" \
1144      "\n        -b              Send wake-up packet to the broadcast address" \
1145      "\n        -i iface        Interface to use (default eth0)" \
1146      "\n        -p pass         Append four or six byte password PW to the packet" \
1147
1148 #define expand_trivial_usage \
1149        "[-i] [-t N] [FILE]..."
1150 #define expand_full_usage "\n\n" \
1151        "Convert tabs to spaces, writing to stdout\n" \
1152      "\nOptions:" \
1153         IF_FEATURE_EXPAND_LONG_OPTIONS( \
1154      "\n        -i,--initial    Don't convert tabs after non blanks" \
1155      "\n        -t,--tabs=N     Tabstops every N chars" \
1156         ) \
1157         IF_NOT_FEATURE_EXPAND_LONG_OPTIONS( \
1158      "\n        -i      Don't convert tabs after non blanks" \
1159      "\n        -t      Tabstops every N chars" \
1160         )
1161
1162 #define expr_trivial_usage \
1163        "EXPRESSION"
1164 #define expr_full_usage "\n\n" \
1165        "Print the value of EXPRESSION to stdout\n" \
1166     "\n" \
1167        "EXPRESSION may be:\n" \
1168        "        ARG1 | ARG2     ARG1 if it is neither null nor 0, otherwise ARG2\n" \
1169        "        ARG1 & ARG2     ARG1 if neither argument is null or 0, otherwise 0\n" \
1170        "        ARG1 < ARG2     1 if ARG1 is less than ARG2, else 0. Similarly:\n" \
1171        "        ARG1 <= ARG2\n" \
1172        "        ARG1 = ARG2\n" \
1173        "        ARG1 != ARG2\n" \
1174        "        ARG1 >= ARG2\n" \
1175        "        ARG1 > ARG2\n" \
1176        "        ARG1 + ARG2     Sum of ARG1 and ARG2. Similarly:\n" \
1177        "        ARG1 - ARG2\n" \
1178        "        ARG1 * ARG2\n" \
1179        "        ARG1 / ARG2\n" \
1180        "        ARG1 % ARG2\n" \
1181        "        STRING : REGEXP         Anchored pattern match of REGEXP in STRING\n" \
1182        "        match STRING REGEXP     Same as STRING : REGEXP\n" \
1183        "        substr STRING POS LENGTH Substring of STRING, POS counted from 1\n" \
1184        "        index STRING CHARS      Index in STRING where any CHARS is found, or 0\n" \
1185        "        length STRING           Length of STRING\n" \
1186        "        quote TOKEN             Interpret TOKEN as a string, even if\n" \
1187        "                                it is a keyword like 'match' or an\n" \
1188        "                                operator like '/'\n" \
1189        "        (EXPRESSION)            Value of EXPRESSION\n" \
1190        "\n" \
1191        "Beware that many operators need to be escaped or quoted for shells.\n" \
1192        "Comparisons are arithmetic if both ARGs are numbers, else\n" \
1193        "lexicographical. Pattern matches return the string matched between\n" \
1194        "\\( and \\) or null; if \\( and \\) are not used, they return the number\n" \
1195        "of characters matched or 0."
1196
1197 #define fakeidentd_trivial_usage \
1198        "[-fiw] [-b ADDR] [STRING]"
1199 #define fakeidentd_full_usage "\n\n" \
1200        "Provide fake ident (auth) service\n" \
1201      "\nOptions:" \
1202      "\n        -f      Run in foreground" \
1203      "\n        -i      Inetd mode" \
1204      "\n        -w      Inetd 'wait' mode" \
1205      "\n        -b ADDR Bind to specified address" \
1206      "\n        STRING  Ident answer string (default: nobody)" \
1207
1208 #define false_trivial_usage \
1209        ""
1210 #define false_full_usage "\n\n" \
1211        "Return an exit code of FALSE (1)"
1212
1213 #define false_example_usage \
1214        "$ false\n" \
1215        "$ echo $?\n" \
1216        "1\n"
1217
1218 #define fbsplash_trivial_usage \
1219        "-s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD]"
1220 #define fbsplash_full_usage "\n\n" \
1221        "Options:" \
1222      "\n        -s      Image" \
1223      "\n        -c      Hide cursor" \
1224      "\n        -d      Framebuffer device (default /dev/fb0)" \
1225      "\n        -i      Config file (var=value):" \
1226      "\n                        BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT" \
1227      "\n                        BAR_R,BAR_G,BAR_B" \
1228      "\n        -f      Control pipe (else exit after drawing image)" \
1229      "\n                        commands: 'NN' (% for progress bar) or 'exit'" \
1230
1231 #define fbset_trivial_usage \
1232        "[OPTIONS] [MODE]"
1233 #define fbset_full_usage "\n\n" \
1234        "Show and modify frame buffer settings"
1235
1236 #define fbset_example_usage \
1237        "$ fbset\n" \
1238        "mode \"1024x768-76\"\n" \
1239        "        # D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz\n" \
1240        "        geometry 1024 768 1024 768 16\n" \
1241        "        timings 12714 128 32 16 4 128 4\n" \
1242        "        accel false\n" \
1243        "        rgba 5/11,6/5,5/0,0/0\n" \
1244        "endmode\n"
1245
1246 #define fdflush_trivial_usage \
1247        "DEVICE"
1248 #define fdflush_full_usage "\n\n" \
1249        "Force floppy disk drive to detect disk change"
1250
1251 #define fdformat_trivial_usage \
1252        "[-n] DEVICE"
1253 #define fdformat_full_usage "\n\n" \
1254        "Format floppy disk\n" \
1255      "\nOptions:" \
1256      "\n        -n      Don't verify after format" \
1257
1258 /* Looks like someone forgot to add this to config system */
1259 #ifndef ENABLE_FEATURE_FDISK_BLKSIZE
1260 # define ENABLE_FEATURE_FDISK_BLKSIZE 0
1261 # define IF_FEATURE_FDISK_BLKSIZE(a)
1262 #endif
1263
1264 #define fdisk_trivial_usage \
1265        "[-ul" IF_FEATURE_FDISK_BLKSIZE("s") "] " \
1266        "[-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK"
1267 #define fdisk_full_usage "\n\n" \
1268        "Change partition table\n" \
1269      "\nOptions:" \
1270      "\n        -u              Start and End are in sectors (instead of cylinders)" \
1271      "\n        -l              Show partition table for each DISK, then exit" \
1272         IF_FEATURE_FDISK_BLKSIZE( \
1273      "\n        -s              Show partition sizes in kb for each DISK, then exit" \
1274         ) \
1275      "\n        -b 2048         (for certain MO disks) use 2048-byte sectors" \
1276      "\n        -C CYLINDERS    Set number of cylinders/heads/sectors" \
1277      "\n        -H HEADS" \
1278      "\n        -S SECTORS" \
1279
1280 #define fgconsole_trivial_usage \
1281         ""
1282 #define fgconsole_full_usage "\n\n" \
1283         "Get active console"
1284
1285 #define findfs_trivial_usage \
1286        "LABEL=label or UUID=uuid"
1287 #define findfs_full_usage "\n\n" \
1288        "Find a filesystem device based on a label or UUID"
1289 #define findfs_example_usage \
1290        "$ findfs LABEL=MyDevice"
1291
1292 #define flash_lock_trivial_usage \
1293        "MTD_DEVICE OFFSET SECTORS"
1294 #define flash_lock_full_usage "\n\n" \
1295        "Lock part or all of an MTD device. If SECTORS is -1, then all sectors\n" \
1296        "will be locked, regardless of the value of OFFSET"
1297
1298 #define flash_unlock_trivial_usage \
1299        "MTD_DEVICE"
1300 #define flash_unlock_full_usage "\n\n" \
1301        "Unlock an MTD device"
1302
1303 #define flash_eraseall_trivial_usage \
1304        "[-jq] MTD_DEVICE"
1305 #define flash_eraseall_full_usage "\n\n" \
1306        "Erase an MTD device\n" \
1307      "\nOptions:" \
1308      "\n        -j      Format the device for jffs2" \
1309      "\n        -q      Don't display progress messages" \
1310
1311 #define flashcp_trivial_usage \
1312        "-v FILE MTD_DEVICE"
1313 #define flashcp_full_usage "\n\n" \
1314        "Copy an image to MTD device\n" \
1315      "\nOptions:" \
1316      "\n        -v      Verbose" \
1317
1318 #define flock_trivial_usage \
1319        "[-sxun] FD|{FILE [-c] PROG ARGS}"
1320 #define flock_full_usage "\n\n" \
1321        "[Un]lock file descriptor, or lock FILE, run PROG\n" \
1322      "\nOptions:" \
1323      "\n        -s      Shared lock" \
1324      "\n        -x      Exclusive lock (default)" \
1325      "\n        -u      Unlock FD" \
1326      "\n        -n      Fail rather than wait" \
1327
1328 #define fold_trivial_usage \
1329        "[-bs] [-w WIDTH] [FILE]..."
1330 #define fold_full_usage "\n\n" \
1331        "Wrap input lines in each FILE (or stdin), writing to stdout\n" \
1332      "\nOptions:" \
1333      "\n        -b      Count bytes rather than columns" \
1334      "\n        -s      Break at spaces" \
1335      "\n        -w      Use WIDTH columns instead of 80" \
1336
1337 #define free_trivial_usage \
1338        ""
1339 #define free_full_usage "\n\n" \
1340        "Display the amount of free and used system memory"
1341 #define free_example_usage \
1342        "$ free\n" \
1343        "              total         used         free       shared      buffers\n" \
1344        "  Mem:       257628       248724         8904        59644        93124\n" \
1345        " Swap:       128516         8404       120112\n" \
1346        "Total:       386144       257128       129016\n" \
1347
1348 #define freeramdisk_trivial_usage \
1349        "DEVICE"
1350 #define freeramdisk_full_usage "\n\n" \
1351        "Free all memory used by the specified ramdisk"
1352 #define freeramdisk_example_usage \
1353        "$ freeramdisk /dev/ram2\n"
1354
1355 #define fsck_trivial_usage \
1356        "[-ANPRTV] [-C FD] [-t FSTYPE] [FS_OPTS] [BLOCKDEV]..."
1357 #define fsck_full_usage "\n\n" \
1358        "Check and repair filesystems\n" \
1359      "\nOptions:" \
1360      "\n        -A      Walk /etc/fstab and check all filesystems" \
1361      "\n        -N      Don't execute, just show what would be done" \
1362      "\n        -P      With -A, check filesystems in parallel" \
1363      "\n        -R      With -A, skip the root filesystem" \
1364      "\n        -T      Don't show title on startup" \
1365      "\n        -V      Verbose" \
1366      "\n        -C n    Write status information to specified filedescriptor" \
1367      "\n        -t TYPE List of filesystem types to check" \
1368
1369 #define fsck_minix_trivial_usage \
1370        "[-larvsmf] BLOCKDEV"
1371 #define fsck_minix_full_usage "\n\n" \
1372        "Check MINIX filesystem\n" \
1373      "\nOptions:" \
1374      "\n        -l      List all filenames" \
1375      "\n        -r      Perform interactive repairs" \
1376      "\n        -a      Perform automatic repairs" \
1377      "\n        -v      Verbose" \
1378      "\n        -s      Output superblock information" \
1379      "\n        -m      Show \"mode not cleared\" warnings" \
1380      "\n        -f      Force file system check" \
1381
1382 #define ftpd_trivial_usage \
1383        "[-wvS] [-t N] [-T N] [DIR]"
1384 #define ftpd_full_usage "\n\n" \
1385        "Anonymous FTP server\n" \
1386        "\n" \
1387        "ftpd should be used as an inetd service.\n" \
1388        "ftpd's line for inetd.conf:\n" \
1389        "        21 stream tcp nowait root ftpd ftpd /files/to/serve\n" \
1390        "It also can be ran from tcpsvd:\n" \
1391        "        tcpsvd -vE 0.0.0.0 21 ftpd /files/to/serve\n" \
1392      "\nOptions:" \
1393      "\n        -w      Allow upload" \
1394      "\n        -v      Log to stderr" \
1395      "\n        -S      Log to syslog" \
1396      "\n        -t,-T   Idle and absolute timeouts" \
1397      "\n        DIR     Change root to this directory" \
1398
1399 #define ftpget_trivial_usage \
1400        "[OPTIONS] HOST [LOCAL_FILE] REMOTE_FILE"
1401 #define ftpget_full_usage "\n\n" \
1402        "Retrieve a remote file via FTP\n" \
1403      "\nOptions:" \
1404         IF_FEATURE_FTPGETPUT_LONG_OPTIONS( \
1405      "\n        -c,--continue   Continue previous transfer" \
1406      "\n        -v,--verbose    Verbose" \
1407      "\n        -u,--username   Username" \
1408      "\n        -p,--password   Password" \
1409      "\n        -P,--port       Port number" \
1410         ) \
1411         IF_NOT_FEATURE_FTPGETPUT_LONG_OPTIONS( \
1412      "\n        -c      Continue previous transfer" \
1413      "\n        -v      Verbose" \
1414      "\n        -u      Username" \
1415      "\n        -p      Password" \
1416      "\n        -P      Port number" \
1417         )
1418
1419 #define ftpput_trivial_usage \
1420        "[OPTIONS] HOST [REMOTE_FILE] LOCAL_FILE"
1421 #define ftpput_full_usage "\n\n" \
1422        "Store a local file on a remote machine via FTP\n" \
1423      "\nOptions:" \
1424         IF_FEATURE_FTPGETPUT_LONG_OPTIONS( \
1425      "\n        -v,--verbose    Verbose" \
1426      "\n        -u,--username   Username" \
1427      "\n        -p,--password   Password" \
1428      "\n        -P,--port       Port number" \
1429         ) \
1430         IF_NOT_FEATURE_FTPGETPUT_LONG_OPTIONS( \
1431      "\n        -v      Verbose" \
1432      "\n        -u      Username" \
1433      "\n        -p      Password" \
1434      "\n        -P      Port number" \
1435         )
1436
1437 #define fuser_trivial_usage \
1438        "[OPTIONS] FILE or PORT/PROTO"
1439 #define fuser_full_usage "\n\n" \
1440        "Find processes which use FILEs or PORTs\n" \
1441      "\nOptions:" \
1442      "\n        -m      Find processes which use same fs as FILEs" \
1443      "\n        -4      Search only IPv4 space" \
1444      "\n        -6      Search only IPv6 space" \
1445      "\n        -s      Don't display PIDs" \
1446      "\n        -k      Kill found processes" \
1447      "\n        -SIGNAL Signal to send (default: KILL)" \
1448
1449 #define getenforce_trivial_usage NOUSAGE_STR
1450 #define getenforce_full_usage ""
1451
1452 #define getopt_trivial_usage \
1453        "[OPTIONS]"
1454 #define getopt_full_usage "\n\n" \
1455        "Options:" \
1456         IF_LONG_OPTS( \
1457      "\n        -a,--alternative                Allow long options starting with single -" \
1458      "\n        -l,--longoptions=longopts       Long options to be recognized" \
1459      "\n        -n,--name=progname              The name under which errors are reported" \
1460      "\n        -o,--options=optstring          Short options to be recognized" \
1461      "\n        -q,--quiet                      Disable error reporting by getopt(3)" \
1462      "\n        -Q,--quiet-output               No normal output" \
1463      "\n        -s,--shell=shell                Set shell quoting conventions" \
1464      "\n        -T,--test                       Test for getopt(1) version" \
1465      "\n        -u,--unquoted                   Don't quote the output" \
1466         ) \
1467         IF_NOT_LONG_OPTS( \
1468      "\n        -a              Allow long options starting with single -" \
1469      "\n        -l longopts     Long options to be recognized" \
1470      "\n        -n progname     The name under which errors are reported" \
1471      "\n        -o optstring    Short options to be recognized" \
1472      "\n        -q              Disable error reporting by getopt(3)" \
1473      "\n        -Q              No normal output" \
1474      "\n        -s shell        Set shell quoting conventions" \
1475      "\n        -T              Test for getopt(1) version" \
1476      "\n        -u              Don't quote the output" \
1477         )
1478 #define getopt_example_usage \
1479        "$ cat getopt.test\n" \
1480        "#!/bin/sh\n" \
1481        "GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \\\n" \
1482        "       -n 'example.busybox' -- \"$@\"`\n" \
1483        "if [ $? != 0 ]; then exit 1; fi\n" \
1484        "eval set -- \"$GETOPT\"\n" \
1485        "while true; do\n" \
1486        " case $1 in\n" \
1487        "   -a|--a-long) echo \"Option a\"; shift;;\n" \
1488        "   -b|--b-long) echo \"Option b, argument '$2'\"; shift 2;;\n" \
1489        "   -c|--c-long)\n" \
1490        "     case \"$2\" in\n" \
1491        "       \"\") echo \"Option c, no argument\"; shift 2;;\n" \
1492        "       *)  echo \"Option c, argument '$2'\"; shift 2;;\n" \
1493        "     esac;;\n" \
1494        "   --) shift; break;;\n" \
1495        "   *) echo \"Internal error!\"; exit 1;;\n" \
1496        " esac\n" \
1497        "done\n"
1498
1499 #define getsebool_trivial_usage \
1500        "-a or getsebool boolean..."
1501 #define getsebool_full_usage "\n\n" \
1502        "        -a      Show all selinux booleans"
1503
1504 #define getty_trivial_usage \
1505        "[OPTIONS] BAUD_RATE TTY [TERMTYPE]"
1506 #define getty_full_usage "\n\n" \
1507        "Open a tty, prompt for a login name, then invoke /bin/login\n" \
1508      "\nOptions:" \
1509      "\n        -h              Enable hardware (RTS/CTS) flow control" \
1510      "\n        -i              Don't display /etc/issue before running login" \
1511      "\n        -L              Local line, don't do carrier detect" \
1512      "\n        -m              Get baud rate from modem's CONNECT status message" \
1513      "\n        -w              Wait for a CR or LF before sending /etc/issue" \
1514      "\n        -n              Don't prompt the user for a login name" \
1515      "\n        -f ISSUE_FILE   Display ISSUE_FILE instead of /etc/issue" \
1516      "\n        -l LOGIN        Invoke LOGIN instead of /bin/login" \
1517      "\n        -t SEC          Terminate after SEC if no username is read" \
1518      "\n        -I INITSTR      Send INITSTR before anything else" \
1519      "\n        -H HOST         Log HOST into the utmp file as the hostname" \
1520
1521 #define gunzip_trivial_usage \
1522        "[OPTIONS] [FILE]..."
1523 #define gunzip_full_usage "\n\n" \
1524        "Decompress FILEs (or stdin)\n" \
1525      "\nOptions:" \
1526      "\n        -c      Write to stdout" \
1527      "\n        -f      Force" \
1528      "\n        -t      Test file integrity" \
1529
1530 #define gunzip_example_usage \
1531        "$ ls -la /tmp/BusyBox*\n" \
1532        "-rw-rw-r--    1 andersen andersen   557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz\n" \
1533        "$ gunzip /tmp/BusyBox-0.43.tar.gz\n" \
1534        "$ ls -la /tmp/BusyBox*\n" \
1535        "-rw-rw-r--    1 andersen andersen  1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar\n"
1536
1537 #define gzip_trivial_usage \
1538        "[OPTIONS] [FILE]..."
1539 #define gzip_full_usage "\n\n" \
1540        "Compress FILEs (or stdin)\n" \
1541      "\nOptions:" \
1542      "\n        -d      Decompress" \
1543      "\n        -c      Write to stdout" \
1544      "\n        -f      Force" \
1545
1546 #define gzip_example_usage \
1547        "$ ls -la /tmp/busybox*\n" \
1548        "-rw-rw-r--    1 andersen andersen  1761280 Apr 14 17:47 /tmp/busybox.tar\n" \
1549        "$ gzip /tmp/busybox.tar\n" \
1550        "$ ls -la /tmp/busybox*\n" \
1551        "-rw-rw-r--    1 andersen andersen   554058 Apr 14 17:49 /tmp/busybox.tar.gz\n"
1552
1553 #define halt_trivial_usage \
1554        "[-d DELAY] [-n] [-f]" IF_FEATURE_WTMP(" [-w]")
1555 #define halt_full_usage "\n\n" \
1556        "Halt the system\n" \
1557      "\nOptions:" \
1558      "\n        -d      Delay interval for halting" \
1559      "\n        -n      No call to sync()" \
1560      "\n        -f      Force halt (don't go through init)" \
1561         IF_FEATURE_WTMP( \
1562      "\n        -w      Only write a wtmp record" \
1563         )
1564
1565 #define hdparm_trivial_usage \
1566        "[OPTIONS] [DEVICE]"
1567 #define hdparm_full_usage "\n\n" \
1568        "Options:" \
1569      "\n        -a      Get/set fs readahead" \
1570      "\n        -A      Set drive read-lookahead flag (0/1)" \
1571      "\n        -b      Get/set bus state (0 == off, 1 == on, 2 == tristate)" \
1572      "\n        -B      Set Advanced Power Management setting (1-255)" \
1573      "\n        -c      Get/set IDE 32-bit IO setting" \
1574      "\n        -C      Check IDE power mode status" \
1575         IF_FEATURE_HDPARM_HDIO_GETSET_DMA( \
1576      "\n        -d      Get/set using_dma flag") \
1577      "\n        -D      Enable/disable drive defect-mgmt" \
1578      "\n        -f      Flush buffer cache for device on exit" \
1579      "\n        -g      Display drive geometry" \
1580      "\n        -h      Display terse usage information" \
1581         IF_FEATURE_HDPARM_GET_IDENTITY( \
1582      "\n        -i      Display drive identification") \
1583         IF_FEATURE_HDPARM_GET_IDENTITY( \
1584      "\n        -I      Detailed/current information directly from drive") \
1585      "\n        -k      Get/set keep_settings_over_reset flag (0/1)" \
1586      "\n        -K      Set drive keep_features_over_reset flag (0/1)" \
1587      "\n        -L      Set drive doorlock (0/1) (removable harddisks only)" \
1588      "\n        -m      Get/set multiple sector count" \
1589      "\n        -n      Get/set ignore-write-errors flag (0/1)" \
1590      "\n        -p      Set PIO mode on IDE interface chipset (0,1,2,3,4,...)" \
1591      "\n        -P      Set drive prefetch count" \
1592 /*   "\n        -q      Change next setting quietly" - not supported ib bbox */ \
1593      "\n        -Q      Get/set DMA tagged-queuing depth (if supported)" \
1594      "\n        -r      Get/set readonly flag (DANGEROUS to set)" \
1595         IF_FEATURE_HDPARM_HDIO_SCAN_HWIF( \
1596      "\n        -R      Register an IDE interface (DANGEROUS)") \
1597      "\n        -S      Set standby (spindown) timeout" \
1598      "\n        -t      Perform device read timings" \
1599      "\n        -T      Perform cache read timings" \
1600      "\n        -u      Get/set unmaskirq flag (0/1)" \
1601         IF_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF( \
1602      "\n        -U      Unregister an IDE interface (DANGEROUS)") \
1603      "\n        -v      Defaults; same as -mcudkrag for IDE drives" \
1604      "\n        -V      Display program version and exit immediately" \
1605         IF_FEATURE_HDPARM_HDIO_DRIVE_RESET( \
1606      "\n        -w      Perform device reset (DANGEROUS)") \
1607      "\n        -W      Set drive write-caching flag (0/1) (DANGEROUS)" \
1608         IF_FEATURE_HDPARM_HDIO_TRISTATE_HWIF( \
1609      "\n        -x      Tristate device for hotswap (0/1) (DANGEROUS)") \
1610      "\n        -X      Set IDE xfer mode (DANGEROUS)" \
1611      "\n        -y      Put IDE drive in standby mode" \
1612      "\n        -Y      Put IDE drive to sleep" \
1613      "\n        -Z      Disable Seagate auto-powersaving mode" \
1614      "\n        -z      Reread partition table" \
1615
1616 #define head_trivial_usage \
1617        "[OPTIONS] [FILE]..."
1618 #define head_full_usage "\n\n" \
1619        "Print first 10 lines of each FILE (or stdin) to stdout.\n" \
1620        "With more than one FILE, precede each with a filename header.\n" \
1621      "\nOptions:" \
1622      "\n        -n N[kbm]       Print first N lines" \
1623         IF_FEATURE_FANCY_HEAD( \
1624      "\n        -c N[kbm]       Print first N bytes" \
1625      "\n        -q              Never print headers" \
1626      "\n        -v              Always print headers" \
1627         ) \
1628      "\n" \
1629      "\nN may be suffixed by k (x1024), b (x512), or m (x1024^2)." \
1630
1631 #define head_example_usage \
1632        "$ head -n 2 /etc/passwd\n" \
1633        "root:x:0:0:root:/root:/bin/bash\n" \
1634        "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n"
1635
1636 #define tail_trivial_usage \
1637        "[OPTIONS] [FILE]..."
1638 #define tail_full_usage "\n\n" \
1639        "Print last 10 lines of each FILE (or stdin) to stdout.\n" \
1640        "With more than one FILE, precede each with a filename header.\n" \
1641      "\nOptions:" \
1642      "\n        -f              Print data as file grows" \
1643         IF_FEATURE_FANCY_TAIL( \
1644      "\n        -s SECONDS      Wait SECONDS between reads with -f" \
1645         ) \
1646      "\n        -n N[kbm]       Print last N lines" \
1647         IF_FEATURE_FANCY_TAIL( \
1648      "\n        -c N[kbm]       Print last N bytes" \
1649      "\n        -q              Never print headers" \
1650      "\n        -v              Always print headers" \
1651      "\n" \
1652      "\nN may be suffixed by k (x1024), b (x512), or m (x1024^2)." \
1653      "\nIf N starts with a '+', output begins with the Nth item from the start" \
1654      "\nof each file, not from the end." \
1655         ) \
1656
1657 #define tail_example_usage \
1658        "$ tail -n 1 /etc/resolv.conf\n" \
1659        "nameserver 10.0.0.1\n"
1660
1661 #define hexdump_trivial_usage \
1662        "[-bcCdefnosvx" IF_FEATURE_HEXDUMP_REVERSE("R") "] [FILE]..."
1663 #define hexdump_full_usage "\n\n" \
1664        "Display FILEs (or stdin) in a user specified format\n" \
1665      "\nOptions:" \
1666      "\n        -b              One-byte octal display" \
1667      "\n        -c              One-byte character display" \
1668      "\n        -C              Canonical hex+ASCII, 16 bytes per line" \
1669      "\n        -d              Two-byte decimal display" \
1670      "\n        -e FORMAT STRING" \
1671      "\n        -f FORMAT FILE" \
1672      "\n        -n LENGTH       Interpret only LENGTH bytes of input" \
1673      "\n        -o              Two-byte octal display" \
1674      "\n        -s OFFSET       Skip OFFSET bytes" \
1675      "\n        -v              Display all input data" \
1676      "\n        -x              Two-byte hexadecimal display" \
1677         IF_FEATURE_HEXDUMP_REVERSE( \
1678      "\n        -R              Reverse of 'hexdump -Cv'") \
1679
1680 #define hd_trivial_usage \
1681        "FILE..."
1682 #define hd_full_usage "\n\n" \
1683        "hd is an alias for hexdump -C"
1684
1685 #define hostid_trivial_usage \
1686        ""
1687 #define hostid_full_usage "\n\n" \
1688        "Print out a unique 32-bit identifier for the machine"
1689
1690 #define hostname_trivial_usage \
1691        "[OPTIONS] [HOSTNAME | -F FILE]"
1692 #define hostname_full_usage "\n\n" \
1693        "Get or set hostname or DNS domain name\n" \
1694      "\nOptions:" \
1695      "\n        -s      Short" \
1696      "\n        -i      Addresses for the hostname" \
1697      "\n        -d      DNS domain name" \
1698      "\n        -f      Fully qualified domain name" \
1699      "\n        -F FILE Use FILE's content as hostname" \
1700
1701 #define hostname_example_usage \
1702        "$ hostname\n" \
1703        "sage\n"
1704
1705 #define dnsdomainname_trivial_usage NOUSAGE_STR
1706 #define dnsdomainname_full_usage ""
1707
1708 #define httpd_trivial_usage \
1709        "[-ifv[v]]" \
1710        " [-c CONFFILE]" \
1711        " [-p [IP:]PORT]" \
1712         IF_FEATURE_HTTPD_SETUID(" [-u USER[:GRP]]") \
1713         IF_FEATURE_HTTPD_BASIC_AUTH(" [-r REALM]") \
1714        " [-h HOME]\n" \
1715        "or httpd -d/-e" IF_FEATURE_HTTPD_AUTH_MD5("/-m") " STRING"
1716 #define httpd_full_usage "\n\n" \
1717        "Listen for incoming HTTP requests\n" \
1718      "\nOptions:" \
1719      "\n        -i              Inetd mode" \
1720      "\n        -f              Don't daemonize" \
1721      "\n        -v[v]           Verbose" \
1722      "\n        -p [IP:]PORT    Bind to ip:port (default *:80)" \
1723         IF_FEATURE_HTTPD_SETUID( \
1724      "\n        -u USER[:GRP]   Set uid/gid after binding to port") \
1725         IF_FEATURE_HTTPD_BASIC_AUTH( \
1726      "\n        -r REALM        Authentication Realm for Basic Authentication") \
1727      "\n        -h HOME         Home directory (default .)" \
1728      "\n        -c FILE         Configuration file (default {/etc,HOME}/httpd.conf)" \
1729         IF_FEATURE_HTTPD_AUTH_MD5( \
1730      "\n        -m STRING       MD5 crypt STRING") \
1731      "\n        -e STRING       HTML encode STRING" \
1732      "\n        -d STRING       URL decode STRING" \
1733
1734 #define hwclock_trivial_usage \
1735         IF_FEATURE_HWCLOCK_LONG_OPTIONS( \
1736        "[-r|--show] [-s|--hctosys] [-w|--systohc]" \
1737        " [-l|--localtime] [-u|--utc]" \
1738        " [-f FILE]" \
1739         ) \
1740         IF_NOT_FEATURE_HWCLOCK_LONG_OPTIONS( \
1741        "[-r] [-s] [-w] [-l] [-u] [-f FILE]" \
1742         )
1743 #define hwclock_full_usage "\n\n" \
1744        "Query and set hardware clock (RTC)\n" \
1745      "\nOptions:" \
1746      "\n        -r      Show hardware clock time" \
1747      "\n        -s      Set system time from hardware clock" \
1748      "\n        -w      Set hardware clock to system time" \
1749      "\n        -u      Hardware clock is in UTC" \
1750      "\n        -l      Hardware clock is in local time" \
1751      "\n        -f FILE Use specified device (e.g. /dev/rtc2)" \
1752
1753 #define id_trivial_usage \
1754        "[OPTIONS] [USER]"
1755 #define id_full_usage "\n\n" \
1756        "Print information about USER or the current user\n" \
1757      "\nOptions:" \
1758         IF_SELINUX( \
1759      "\n        -Z      Print the security context" \
1760         ) \
1761      "\n        -u      Print user ID" \
1762      "\n        -g      Print group ID" \
1763      "\n        -G      Print supplementary group IDs" \
1764      "\n        -n      Print name instead of a number" \
1765      "\n        -r      Print real user ID instead of effective ID" \
1766
1767 #define id_example_usage \
1768        "$ id\n" \
1769        "uid=1000(andersen) gid=1000(andersen)\n"
1770
1771 #define ifconfig_trivial_usage \
1772         IF_FEATURE_IFCONFIG_STATUS("[-a]") " interface [address]"
1773 #define ifconfig_full_usage "\n\n" \
1774        "Configure a network interface\n" \
1775      "\nOptions:" \
1776      "\n" \
1777         IF_FEATURE_IPV6( \
1778        "        [add ADDRESS[/PREFIXLEN]]\n") \
1779         IF_FEATURE_IPV6( \
1780        "        [del ADDRESS[/PREFIXLEN]]\n") \
1781        "        [[-]broadcast [ADDRESS]] [[-]pointopoint [ADDRESS]]\n" \
1782        "        [netmask ADDRESS] [dstaddr ADDRESS]\n" \
1783         IF_FEATURE_IFCONFIG_SLIP( \
1784        "        [outfill NN] [keepalive NN]\n") \
1785        "        " IF_FEATURE_IFCONFIG_HW("[hw ether" IF_FEATURE_HWIB("|infiniband")" ADDRESS] ") "[metric NN] [mtu NN]\n" \
1786        "        [[-]trailers] [[-]arp] [[-]allmulti]\n" \
1787        "        [multicast] [[-]promisc] [txqueuelen NN] [[-]dynamic]\n" \
1788         IF_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ( \
1789        "        [mem_start NN] [io_addr NN] [irq NN]\n") \
1790        "        [up|down] ..."
1791
1792 #define ifenslave_trivial_usage \
1793        "[-cdf] MASTER_IFACE SLAVE_IFACE..."
1794 #define ifenslave_full_usage "\n\n" \
1795        "Configure network interfaces for parallel routing\n" \
1796      "\nOptions:" \
1797      "\n        -c, --change-active     Change active slave" \
1798      "\n        -d, --detach            Remove slave interface from bonding device" \
1799      "\n        -f, --force             Force, even if interface is not Ethernet" \
1800 /*   "\n        -r, --receive-slave     Create a receive-only slave" */
1801
1802 #define ifenslave_example_usage \
1803        "To create a bond device, simply follow these three steps:\n" \
1804        "- ensure that the required drivers are properly loaded:\n" \
1805        "  # modprobe bonding ; modprobe <3c59x|eepro100|pcnet32|tulip|...>\n" \
1806        "- assign an IP address to the bond device:\n" \
1807        "  # ifconfig bond0 <addr> netmask <mask> broadcast <bcast>\n" \
1808        "- attach all the interfaces you need to the bond device:\n" \
1809        "  # ifenslave bond0 eth0 eth1 eth2\n" \
1810        "  If bond0 didn't have a MAC address, it will take eth0's. Then, all\n" \
1811        "  interfaces attached AFTER this assignment will get the same MAC addr.\n\n" \
1812        "  To detach a dead interface without setting the bond device down:\n" \
1813        "  # ifenslave -d bond0 eth1\n\n" \
1814        "  To set the bond device down and automatically release all the slaves:\n" \
1815        "  # ifconfig bond0 down\n\n" \
1816        "  To change active slave:\n" \
1817        "  # ifenslave -c bond0 eth0\n" \
1818
1819 #define ifplugd_trivial_usage \
1820        "[OPTIONS]"
1821 #define ifplugd_full_usage "\n\n" \
1822        "Network interface plug detection daemon\n" \
1823      "\nOptions:" \
1824      "\n        -n              Don't daemonize" \
1825      "\n        -s              Don't log to syslog" \
1826      "\n        -i IFACE        Interface" \
1827      "\n        -f/-F           Treat link detection error as link down/link up" \
1828      "\n                        (otherwise exit on error)" \
1829      "\n        -a              Don't up interface at each link probe" \
1830      "\n        -M              Monitor creation/destruction of interface" \
1831      "\n                        (otherwise it must exist)" \
1832      "\n        -r PROG         Script to run" \
1833      "\n        -x ARG          Extra argument for script" \
1834      "\n        -I              Don't exit on nonzero exit code from script" \
1835      "\n        -p              Don't run script on daemon startup" \
1836      "\n        -q              Don't run script on daemon quit" \
1837      "\n        -l              Run script on startup even if no cable is detected" \
1838      "\n        -t SECS         Poll time in seconds" \
1839      "\n        -u SECS         Delay before running script after link up" \
1840      "\n        -d SECS         Delay after link down" \
1841      "\n        -m MODE         API mode (mii, priv, ethtool, wlan, iff, auto)" \
1842      "\n        -k              Kill running daemon" \
1843
1844 #define ifup_trivial_usage \
1845        "[-ain"IF_FEATURE_IFUPDOWN_MAPPING("m")"vf] IFACE..."
1846 #define ifup_full_usage "\n\n" \
1847        "Options:" \
1848      "\n        -a      De/configure all interfaces automatically" \
1849      "\n        -i FILE Use FILE for interface definitions" \
1850      "\n        -n      Print out what would happen, but don't do it" \
1851         IF_FEATURE_IFUPDOWN_MAPPING( \
1852      "\n                (note: doesn't disable mappings)" \
1853      "\n        -m      Don't run any mappings" \
1854         ) \
1855      "\n        -v      Print out what would happen before doing it" \
1856      "\n        -f      Force de/configuration" \
1857
1858 #define ifdown_trivial_usage \
1859        "[-ain"IF_FEATURE_IFUPDOWN_MAPPING("m")"vf] ifaces..."
1860 #define ifdown_full_usage "\n\n" \
1861        "Options:" \
1862      "\n        -a      De/configure all interfaces automatically" \
1863      "\n        -i FILE Use FILE for interface definitions" \
1864      "\n        -n      Print out what would happen, but don't do it" \
1865         IF_FEATURE_IFUPDOWN_MAPPING( \
1866      "\n                (note: doesn't disable mappings)" \
1867      "\n        -m      Don't run any mappings" \
1868         ) \
1869      "\n        -v      Print out what would happen before doing it" \
1870      "\n        -f      Force de/configuration" \
1871
1872 #define inetd_trivial_usage \
1873        "[-fe] [-q N] [-R N] [CONFFILE]"
1874 #define inetd_full_usage "\n\n" \
1875        "Listen for network connections and launch programs\n" \
1876      "\nOptions:" \
1877      "\n        -f      Run in foreground" \
1878      "\n        -e      Log to stderr" \
1879      "\n        -q N    Socket listen queue (default: 128)" \
1880      "\n        -R N    Pause services after N connects/min" \
1881      "\n                (default: 0 - disabled)" \
1882
1883 #define init_trivial_usage \
1884        ""
1885 #define init_full_usage "\n\n" \
1886        "Init is the parent of all processes"
1887
1888 #define init_notes_usage \
1889 "This version of init is designed to be run only by the kernel.\n" \
1890 "\n" \
1891 "BusyBox init doesn't support multiple runlevels. The runlevels field of\n" \
1892 "the /etc/inittab file is completely ignored by BusyBox init. If you want\n" \
1893 "runlevels, use sysvinit.\n" \
1894 "\n" \
1895 "BusyBox init works just fine without an inittab. If no inittab is found,\n" \
1896 "it has the following default behavior:\n" \
1897 "\n" \
1898 "       ::sysinit:/etc/init.d/rcS\n" \
1899 "       ::askfirst:/bin/sh\n" \
1900 "       ::ctrlaltdel:/sbin/reboot\n" \
1901 "       ::shutdown:/sbin/swapoff -a\n" \
1902 "       ::shutdown:/bin/umount -a -r\n" \
1903 "       ::restart:/sbin/init\n" \
1904 "\n" \
1905 "if it detects that /dev/console is _not_ a serial console, it will also run:\n" \
1906 "\n" \
1907 "       tty2::askfirst:/bin/sh\n" \
1908 "       tty3::askfirst:/bin/sh\n" \
1909 "       tty4::askfirst:/bin/sh\n" \
1910 "\n" \
1911 "If you choose to use an /etc/inittab file, the inittab entry format is as follows:\n" \
1912 "\n" \
1913 "       <id>:<runlevels>:<action>:<process>\n" \
1914 "\n" \
1915 "       <id>:\n" \
1916 "\n" \
1917 "               WARNING: This field has a non-traditional meaning for BusyBox init!\n" \
1918 "               The id field is used by BusyBox init to specify the controlling tty for\n" \
1919 "               the specified process to run on. The contents of this field are\n" \
1920 "               appended to \"/dev/\" and used as-is. There is no need for this field to\n" \
1921 "               be unique, although if it isn't you may have strange results. If this\n" \
1922 "               field is left blank, the controlling tty is set to the console. Also\n" \
1923 "               note that if BusyBox detects that a serial console is in use, then only\n" \
1924 "               entries whose controlling tty is either the serial console or /dev/null\n" \
1925 "               will be run. BusyBox init does nothing with utmp. We don't need no\n" \
1926 "               stinkin' utmp.\n" \
1927 "\n" \
1928 "       <runlevels>:\n" \
1929 "\n" \
1930 "               The runlevels field is completely ignored.\n" \
1931 "\n" \
1932 "       <action>:\n" \
1933 "\n" \
1934 "               Valid actions include: sysinit, respawn, askfirst, wait,\n" \
1935 "               once, restart, ctrlaltdel, and shutdown.\n" \
1936 "\n" \
1937 "               The available actions can be classified into two groups: actions\n" \
1938 "               that are run only once, and actions that are re-run when the specified\n" \
1939 "               process exits.\n" \
1940 "\n" \
1941 "               Run only-once actions:\n" \
1942 "\n" \
1943 "                       'sysinit' is the first item run on boot. init waits until all\n" \
1944 "                       sysinit actions are completed before continuing. Following the\n" \
1945 "                       completion of all sysinit actions, all 'wait' actions are run.\n" \
1946 "                       'wait' actions, like 'sysinit' actions, cause init to wait until\n" \
1947 "                       the specified task completes. 'once' actions are asynchronous,\n" \
1948 "                       therefore, init does not wait for them to complete. 'restart' is\n" \
1949 "                       the action taken to restart the init process. By default this should\n" \
1950 "                       simply run /sbin/init, but can be a script which runs pivot_root or it\n" \
1951 "                       can do all sorts of other interesting things. The 'ctrlaltdel' init\n" \
1952 "                       actions are run when the system detects that someone on the system\n" \
1953 "                       console has pressed the CTRL-ALT-DEL key combination. Typically one\n" \
1954 "                       wants to run 'reboot' at this point to cause the system to reboot.\n" \
1955 "                       Finally the 'shutdown' action specifies the actions to taken when\n" \
1956 "                       init is told to reboot. Unmounting filesystems and disabling swap\n" \
1957 "                       is a very good here.\n" \
1958 "\n" \
1959 "               Run repeatedly actions:\n" \
1960 "\n" \
1961 "                       'respawn' actions are run after the 'once' actions. When a process\n" \
1962 "                       started with a 'respawn' action exits, init automatically restarts\n" \
1963 "                       it. Unlike sysvinit, BusyBox init does not stop processes from\n" \
1964 "                       respawning out of control. The 'askfirst' actions acts just like\n" \
1965 "                       respawn, except that before running the specified process it\n" \
1966 "                       displays the line \"Please press Enter to activate this console.\"\n" \
1967 "                       and then waits for the user to press enter before starting the\n" \
1968 "                       specified process.\n" \
1969 "\n" \
1970 "               Unrecognized actions (like initdefault) will cause init to emit an\n" \
1971 "               error message, and then go along with its business. All actions are\n" \
1972 "               run in the order they appear in /etc/inittab.\n" \
1973 "\n" \
1974 "       <process>:\n" \
1975 "\n" \
1976 "               Specifies the process to be executed and its command line.\n" \
1977 "\n" \
1978 "Example /etc/inittab file:\n" \
1979 "\n" \
1980 "       # This is run first except when booting in single-user mode\n" \
1981 "       #\n" \
1982 "       ::sysinit:/etc/init.d/rcS\n" \
1983 "       \n" \
1984 "       # /bin/sh invocations on selected ttys\n" \
1985 "       #\n" \
1986 "       # Start an \"askfirst\" shell on the console (whatever that may be)\n" \
1987 "       ::askfirst:-/bin/sh\n" \
1988 "       # Start an \"askfirst\" shell on /dev/tty2-4\n" \
1989 "       tty2::askfirst:-/bin/sh\n" \
1990 "       tty3::askfirst:-/bin/sh\n" \
1991 "       tty4::askfirst:-/bin/sh\n" \
1992 "       \n" \
1993 "       # /sbin/getty invocations for selected ttys\n" \
1994 "       #\n" \
1995 "       tty4::respawn:/sbin/getty 38400 tty4\n" \
1996 "       tty5::respawn:/sbin/getty 38400 tty5\n" \
1997 "       \n" \
1998 "       \n" \
1999 "       # Example of how to put a getty on a serial line (for a terminal)\n" \
2000 "       #\n" \
2001 "       #::respawn:/sbin/getty -L ttyS0 9600 vt100\n" \
2002 "       #::respawn:/sbin/getty -L ttyS1 9600 vt100\n" \
2003 "       #\n" \
2004 "       # Example how to put a getty on a modem line\n" \
2005 "       #::respawn:/sbin/getty 57600 ttyS2\n" \
2006 "       \n" \
2007 "       # Stuff to do when restarting the init process\n" \
2008 "       ::restart:/sbin/init\n" \
2009 "       \n" \
2010 "       # Stuff to do before rebooting\n" \
2011 "       ::ctrlaltdel:/sbin/reboot\n" \
2012 "       ::shutdown:/bin/umount -a -r\n" \
2013 "       ::shutdown:/sbin/swapoff -a\n"
2014
2015 #define inotifyd_trivial_usage \
2016         "PROG FILE1[:MASK]..."
2017 #define inotifyd_full_usage "\n\n" \
2018        "Run PROG on filesystem changes." \
2019      "\nWhen a filesystem event matching MASK occurs on FILEn," \
2020      "\nPROG ACTUAL_EVENTS FILEn [SUBFILE] is run." \
2021      "\nEvents:" \
2022      "\n        a       File is accessed" \
2023      "\n        c       File is modified" \
2024      "\n        e       Metadata changed" \
2025      "\n        w       Writable file is closed" \
2026      "\n        0       Unwritable file is closed" \
2027      "\n        r       File is opened" \
2028      "\n        D       File is deleted" \
2029      "\n        M       File is moved" \
2030      "\n        u       Backing fs is unmounted" \
2031      "\n        o       Event queue overflowed" \
2032      "\n        x       File can't be watched anymore" \
2033      "\nIf watching a directory:" \
2034      "\n        m       Subfile is moved into dir" \
2035      "\n        y       Subfile is moved out of dir" \
2036      "\n        n       Subfile is created" \
2037      "\n        d       Subfile is deleted" \
2038      "\n" \
2039      "\ninotifyd waits for PROG to exit." \
2040      "\nWhen x event happens for all FILEs, inotifyd exits." \
2041
2042 /* -v, -b, -c are ignored */
2043 #define install_trivial_usage \
2044         "[-cdDsp] [-o USER] [-g GRP] [-m MODE] [SOURCE]... DEST"
2045 #define install_full_usage "\n\n" \
2046        "Copy files and set attributes\n" \
2047      "\nOptions:" \
2048      "\n        -c      Just copy (default)" \
2049      "\n        -d      Create directories" \
2050      "\n        -D      Create leading target directories" \
2051      "\n        -s      Strip symbol table" \
2052      "\n        -p      Preserve date" \
2053      "\n        -o USER Set ownership" \
2054      "\n        -g GRP  Set group ownership" \
2055      "\n        -m MODE Set permissions" \
2056         IF_SELINUX( \
2057      "\n        -Z      Set security context" \
2058         )
2059
2060 /* would need to make the " | " optional depending on more than one selected: */
2061 #define ip_trivial_usage \
2062        "[OPTIONS] {" \
2063         IF_FEATURE_IP_ADDRESS("address | ") \
2064         IF_FEATURE_IP_ROUTE("route | ") \
2065         IF_FEATURE_IP_LINK("link | ") \
2066         IF_FEATURE_IP_TUNNEL("tunnel | ") \
2067         IF_FEATURE_IP_RULE("rule") \
2068        "} {COMMAND}"
2069 #define ip_full_usage "\n\n" \
2070        "ip [OPTIONS] OBJECT {COMMAND}\n" \
2071        "where OBJECT := {" \
2072         IF_FEATURE_IP_ADDRESS("address | ") \
2073         IF_FEATURE_IP_ROUTE("route | ") \
2074         IF_FEATURE_IP_LINK("link | ") \
2075         IF_FEATURE_IP_TUNNEL("tunnel | ") \
2076         IF_FEATURE_IP_RULE("rule") \
2077        "}\n" \
2078        "OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }" \
2079
2080 #define ipaddr_trivial_usage \
2081        "{ {add|del} IFADDR dev STRING | {show|flush}\n" \
2082        "                [dev STRING] [to PREFIX] }"
2083 #define ipaddr_full_usage "\n\n" \
2084        "ipaddr {add|delete} IFADDR dev STRING\n" \
2085        "ipaddr {show|flush} [dev STRING] [scope SCOPE-ID]\n" \
2086        "        [to PREFIX] [label PATTERN]\n" \
2087        "        IFADDR := PREFIX | ADDR peer PREFIX\n" \
2088        "        [broadcast ADDR] [anycast ADDR]\n" \
2089        "        [label STRING] [scope SCOPE-ID]\n" \
2090        "        SCOPE-ID := [host | link | global | NUMBER]" \
2091
2092 #define ipcalc_trivial_usage \
2093        "[OPTIONS] ADDRESS[[/]NETMASK] [NETMASK]"
2094 #define ipcalc_full_usage "\n\n" \
2095        "Calculate IP network settings from a IP address\n" \
2096      "\nOptions:" \
2097         IF_FEATURE_IPCALC_LONG_OPTIONS( \
2098      "\n        -b,--broadcast  Display calculated broadcast address" \
2099      "\n        -n,--network    Display calculated network address" \
2100      "\n        -m,--netmask    Display default netmask for IP" \
2101         IF_FEATURE_IPCALC_FANCY( \
2102      "\n        -p,--prefix     Display the prefix for IP/NETMASK" \
2103      "\n        -h,--hostname   Display first resolved host name" \
2104      "\n        -s,--silent     Don't ever display error messages" \
2105         ) \
2106         ) \
2107         IF_NOT_FEATURE_IPCALC_LONG_OPTIONS( \
2108      "\n        -b      Display calculated broadcast address" \
2109      "\n        -n      Display calculated network address" \
2110      "\n        -m      Display default netmask for IP" \
2111         IF_FEATURE_IPCALC_FANCY( \
2112      "\n        -p      Display the prefix for IP/NETMASK" \
2113      "\n        -h      Display first resolved host name" \
2114      "\n        -s      Don't ever display error messages" \
2115         ) \
2116         )
2117
2118 #define ipcrm_trivial_usage \
2119        "[-MQS key] [-mqs id]"
2120 #define ipcrm_full_usage "\n\n" \
2121        "Upper-case options MQS remove an object by shmkey value.\n" \
2122        "Lower-case options remove an object by shmid value.\n" \
2123      "\nOptions:" \
2124      "\n        -mM     Remove memory segment after last detach" \
2125      "\n        -qQ     Remove message queue" \
2126      "\n        -sS     Remove semaphore" \
2127
2128 #define ipcs_trivial_usage \
2129        "[[-smq] -i shmid] | [[-asmq] [-tcplu]]"
2130 #define ipcs_full_usage "\n\n" \
2131        "        -i      Show specific resource" \
2132      "\nResource specification:" \
2133      "\n        -m      Shared memory segments" \
2134      "\n        -q      Message queues" \
2135      "\n        -s      Semaphore arrays" \
2136      "\n        -a      All (default)" \
2137      "\nOutput format:" \
2138      "\n        -t      Time" \
2139      "\n        -c      Creator" \
2140      "\n        -p      Pid" \
2141      "\n        -l      Limits" \
2142      "\n        -u      Summary" \
2143
2144 #define iplink_trivial_usage \
2145        "{ set DEVICE { up | down | arp { on | off } | show [DEVICE] }"
2146 #define iplink_full_usage "\n\n" \
2147        "iplink set DEVICE { up | down | arp | multicast { on | off } |\n" \
2148        "                        dynamic { on | off } |\n" \
2149        "                        mtu MTU }\n" \
2150        "iplink show [DEVICE]" \
2151
2152 #define iproute_trivial_usage \
2153        "{ list | flush | { add | del | change | append |\n" \
2154        "                replace | monitor } ROUTE }"
2155 #define iproute_full_usage "\n\n" \
2156        "iproute { list | flush } SELECTOR\n" \
2157        "iproute get ADDRESS [from ADDRESS iif STRING]\n" \
2158        "                        [oif STRING]  [tos TOS]\n" \
2159        "iproute { add | del | change | append | replace | monitor } ROUTE\n" \
2160        "                        SELECTOR := [root PREFIX] [match PREFIX] [proto RTPROTO]\n" \
2161        "                        ROUTE := [TYPE] PREFIX [tos TOS] [proto RTPROTO]\n" \
2162        "                                [metric METRIC]" \
2163
2164 #define iprule_trivial_usage \
2165        "{[list | add | del] RULE}"
2166 #define iprule_full_usage "\n\n" \
2167        "iprule [list | add | del] SELECTOR ACTION\n" \
2168        "        SELECTOR := [from PREFIX] [to PREFIX] [tos TOS] [fwmark FWMARK]\n" \
2169        "                        [dev STRING] [pref NUMBER]\n" \
2170        "        ACTION := [table TABLE_ID] [nat ADDRESS]\n" \
2171        "                        [prohibit | reject | unreachable]\n" \
2172        "                        [realms [SRCREALM/]DSTREALM]\n" \
2173        "        TABLE_ID := [local | main | default | NUMBER]" \
2174
2175 #define iptunnel_trivial_usage \
2176        "{ add | change | del | show } [NAME]\n" \
2177        "        [mode { ipip | gre | sit }]\n" \
2178        "        [remote ADDR] [local ADDR] [ttl TTL]"
2179 #define iptunnel_full_usage "\n\n" \
2180        "iptunnel { add | change | del | show } [NAME]\n" \
2181        "        [mode { ipip | gre | sit }] [remote ADDR] [local ADDR]\n" \
2182        "        [[i|o]seq] [[i|o]key KEY] [[i|o]csum]\n" \
2183        "        [ttl TTL] [tos TOS] [[no]pmtudisc] [dev PHYS_DEV]" \
2184
2185 #define kbd_mode_trivial_usage \
2186        "[-a|k|s|u] [-C TTY]"
2187 #define kbd_mode_full_usage "\n\n" \
2188        "Report or set the keyboard mode\n" \
2189      "\nOptions:" \
2190      "\n        -a      Default (ASCII)" \
2191      "\n        -k      Medium-raw (keyboard)" \
2192      "\n        -s      Raw (scancode)" \
2193      "\n        -u      Unicode (utf-8)" \
2194      "\n        -C TTY  Affect TTY instead of /dev/tty" \
2195
2196 #define kill_trivial_usage \
2197        "[-l] [-SIG] PID..."
2198 #define kill_full_usage "\n\n" \
2199        "Send a signal (default: TERM) to given PIDs\n" \
2200      "\nOptions:" \
2201      "\n        -l      List all signal names and numbers" \
2202 /*   "\n        -s SIG  Yet another way of specifying SIG" */ \
2203
2204 #define kill_example_usage \
2205        "$ ps | grep apache\n" \
2206        "252 root     root     S [apache]\n" \
2207        "263 www-data www-data S [apache]\n" \
2208        "264 www-data www-data S [apache]\n" \
2209        "265 www-data www-data S [apache]\n" \
2210        "266 www-data www-data S [apache]\n" \
2211        "267 www-data www-data S [apache]\n" \
2212        "$ kill 252\n"
2213
2214 #define killall_trivial_usage \
2215        "[-l] [-q] [-SIG] PROCESS_NAME..."
2216 #define killall_full_usage "\n\n" \
2217        "Send a signal (default: TERM) to given processes\n" \
2218      "\nOptions:" \
2219      "\n        -l      List all signal names and numbers" \
2220 /*   "\n        -s SIG  Yet another way of specifying SIG" */ \
2221      "\n        -q      Don't complain if no processes were killed" \
2222
2223 #define killall_example_usage \
2224        "$ killall apache\n"
2225
2226 #define killall5_trivial_usage \
2227        "[-l] [-SIG] [-o PID]..."
2228 #define killall5_full_usage "\n\n" \
2229        "Send a signal (default: TERM) to all processes outside current session\n" \
2230      "\nOptions:" \
2231      "\n        -l      List all signal names and numbers" \
2232      "\n        -o PID  Don't signal this PID" \
2233 /*   "\n        -s SIG  Yet another way of specifying SIG" */ \
2234
2235 #define klogd_trivial_usage \
2236        "[-c N] [-n]"
2237 #define klogd_full_usage "\n\n" \
2238        "Kernel logger\n" \
2239      "\nOptions:" \
2240      "\n        -c N    Only messages with level < N are printed to console" \
2241      "\n        -n      Run in foreground" \
2242
2243 #define length_trivial_usage \
2244        "STRING"
2245 #define length_full_usage "\n\n" \
2246        "Print STRING's length"
2247
2248 #define length_example_usage \
2249        "$ length Hello\n" \
2250        "5\n"
2251
2252 #define less_trivial_usage \
2253        "[-EMNmh~I?] [FILE]..."
2254 #define less_full_usage "\n\n" \
2255        "View FILE (or stdin) one screenful at a time\n" \
2256      "\nOptions:" \
2257      "\n        -E      Quit once the end of a file is reached" \
2258      "\n        -M,-m   Display status line with line numbers" \
2259      "\n                and percentage through the file" \
2260      "\n        -N      Prefix line number to each line" \
2261      "\n        -I      Ignore case in all searches" \
2262      "\n        -~      Suppress ~s displayed past the end of the file" \
2263
2264 #define linux32_trivial_usage NOUSAGE_STR
2265 #define linux32_full_usage ""
2266 #define linux64_trivial_usage NOUSAGE_STR
2267 #define linux64_full_usage ""
2268
2269 #define linuxrc_trivial_usage NOUSAGE_STR
2270 #define linuxrc_full_usage ""
2271
2272 #define setarch_trivial_usage \
2273        "personality PROG ARGS"
2274 #define setarch_full_usage "\n\n" \
2275        "Personality may be:\n" \
2276        "        linux32         Set 32bit uname emulation\n" \
2277        "        linux64         Set 64bit uname emulation" \
2278
2279 #define ln_trivial_usage \
2280        "[OPTIONS] TARGET... LINK|DIR"
2281 #define ln_full_usage "\n\n" \
2282        "Create a link LINK or DIR/TARGET to the specified TARGET(s)\n" \
2283      "\nOptions:" \
2284      "\n        -s      Make symlinks instead of hardlinks" \
2285      "\n        -f      Remove existing destinations" \
2286      "\n        -n      Don't dereference symlinks - treat like normal file" \
2287      "\n        -b      Make a backup of the target (if exists) before link operation" \
2288      "\n        -S suf  Use suffix instead of ~ when making backup files" \
2289
2290 #define ln_example_usage \
2291        "$ ln -s BusyBox /tmp/ls\n" \
2292        "$ ls -l /tmp/ls\n" \
2293        "lrwxrwxrwx    1 root     root            7 Apr 12 18:39 ls -> BusyBox*\n"
2294
2295 #define load_policy_trivial_usage NOUSAGE_STR
2296 #define load_policy_full_usage ""
2297
2298 #define loadfont_trivial_usage \
2299        "< font"
2300 #define loadfont_full_usage "\n\n" \
2301        "Load a console font from stdin" \
2302 /*   "\n        -C TTY  Affect TTY instead of /dev/tty" */ \
2303
2304 #define loadfont_example_usage \
2305        "$ loadfont < /etc/i18n/fontname\n"
2306
2307 #define loadkmap_trivial_usage \
2308        "< keymap"
2309 #define loadkmap_full_usage "\n\n" \
2310        "Load a binary keyboard translation table from stdin\n" \
2311 /*   "\n        -C TTY  Affect TTY instead of /dev/tty" */ \
2312
2313 #define loadkmap_example_usage \
2314        "$ loadkmap < /etc/i18n/lang-keymap\n"
2315
2316 #define logger_trivial_usage \
2317        "[OPTIONS] [MESSAGE]"
2318 #define logger_full_usage "\n\n" \
2319        "Write MESSAGE (or stdin) to syslog\n" \
2320      "\nOptions:" \
2321      "\n        -s      Log to stderr as well as the system log" \
2322      "\n        -t TAG  Log using the specified tag (defaults to user name)" \
2323      "\n        -p PRIO Priority (numeric or facility.level pair)" \
2324
2325 #define logger_example_usage \
2326        "$ logger \"hello\"\n"
2327
2328 #define login_trivial_usage \
2329        "[-p] [-h HOST] [[-f] USER]"
2330 #define login_full_usage "\n\n" \
2331        "Begin a new session on the system\n" \
2332      "\nOptions:" \
2333      "\n        -f      Don't authenticate (user already authenticated)" \
2334      "\n        -h      Name of the remote host" \
2335      "\n        -p      Preserve environment" \
2336
2337 #define logname_trivial_usage \
2338        ""
2339 #define logname_full_usage "\n\n" \
2340        "Print the name of the current user"
2341 #define logname_example_usage \
2342        "$ logname\n" \
2343        "root\n"
2344
2345 #define logread_trivial_usage \
2346        "[OPTIONS]"
2347 #define logread_full_usage "\n\n" \
2348        "Show messages in syslogd's circular buffer\n" \
2349      "\nOptions:" \
2350      "\n        -f      Output data as log grows" \
2351
2352 #define losetup_trivial_usage \
2353        "[-o OFS] LOOPDEV FILE - associate loop devices\n" \
2354        "        losetup -d LOOPDEV - disassociate\n" \
2355        "        losetup [-f] - show"
2356 #define losetup_full_usage "\n\n" \
2357        "Options:" \
2358      "\n        -o OFS  Start OFS bytes into FILE" \
2359      "\n        -f      Show first free loop device" \
2360
2361 #define losetup_notes_usage \
2362        "No arguments will display all current associations.\n" \
2363        "One argument (losetup /dev/loop1) will display the current association\n" \
2364        "(if any), or disassociate it (with -d). The display shows the offset\n" \
2365        "and filename of the file the loop device is currently bound to.\n\n" \
2366        "Two arguments (losetup /dev/loop1 file.img) create a new association,\n" \
2367        "with an optional offset (-o 12345). Encryption is not yet supported.\n" \
2368        "losetup -f will show the first loop free loop device\n\n"
2369
2370 #define lpd_trivial_usage \
2371        "SPOOLDIR [HELPER [ARGS]]"
2372 #define lpd_full_usage "\n\n" \
2373        "SPOOLDIR must contain (symlinks to) device nodes or directories" \
2374      "\nwith names matching print queue names. In the first case, jobs are" \
2375      "\nsent directly to the device. Otherwise each job is stored in queue" \
2376      "\ndirectory and HELPER program is called. Name of file to print" \
2377      "\nis passed in $DATAFILE variable." \
2378      "\nExample:" \
2379      "\n        tcpsvd -E 0 515 softlimit -m 999999 lpd /var/spool ./print" \
2380
2381 #define lpq_trivial_usage \
2382        "[-P queue[@host[:port]]] [-U USERNAME] [-d JOBID]... [-fs]"
2383 #define lpq_full_usage "\n\n" \
2384        "Options:" \
2385      "\n        -P      lp service to connect to (else uses $PRINTER)" \
2386      "\n        -d      Delete jobs" \
2387      "\n        -f      Force any waiting job to be printed" \
2388      "\n        -s      Short display" \
2389
2390 #define lpr_trivial_usage \
2391        "-P queue[@host[:port]] -U USERNAME -J TITLE -Vmh [FILE]..."
2392 /* -C CLASS exists too, not shown.
2393  * CLASS is supposed to be printed on banner page, if one is requested */
2394 #define lpr_full_usage "\n\n" \
2395        "Options:" \
2396      "\n        -P      lp service to connect to (else uses $PRINTER)"\
2397      "\n        -m      Send mail on completion" \
2398      "\n        -h      Print banner page too" \
2399      "\n        -V      Verbose" \
2400
2401 #define ls_trivial_usage \
2402        "[-1Aa" IF_FEATURE_LS_TIMESTAMPS("c") "Cd" \
2403         IF_FEATURE_LS_TIMESTAMPS("e") IF_FEATURE_LS_FILETYPES("F") "iln" \
2404         IF_FEATURE_LS_FILETYPES("p") IF_FEATURE_LS_FOLLOWLINKS("L") \
2405         IF_FEATURE_LS_RECURSIVE("R") IF_FEATURE_LS_SORTFILES("rS") "s" \
2406         IF_FEATURE_AUTOWIDTH("T") IF_FEATURE_LS_TIMESTAMPS("tu") \
2407         IF_FEATURE_LS_SORTFILES("v") IF_FEATURE_AUTOWIDTH("w") "x" \
2408         IF_FEATURE_LS_SORTFILES("X") IF_FEATURE_HUMAN_READABLE("h") "k" \
2409         IF_SELINUX("K") "] [FILE]..."
2410 #define ls_full_usage "\n\n" \
2411        "List directory contents\n" \
2412      "\nOptions:" \
2413      "\n        -1      List in a single column" \
2414      "\n        -A      Don't list . and .." \
2415      "\n        -a      Don't hide entries starting with ." \
2416      "\n        -C      List by columns" \
2417         IF_FEATURE_LS_TIMESTAMPS( \
2418      "\n        -c      With -l: sort by ctime") \
2419         IF_FEATURE_LS_COLOR( \
2420      "\n        --color[={always,never,auto}]   Control coloring") \
2421      "\n        -d      List directory entries instead of contents" \
2422         IF_FEATURE_LS_TIMESTAMPS( \
2423      "\n        -e      List full date and time") \
2424         IF_FEATURE_LS_FILETYPES( \
2425      "\n        -F      Append indicator (one of */=@|) to entries") \
2426      "\n        -i      List inode numbers" \
2427      "\n        -l      Long listing format" \
2428      "\n        -n      List numeric UIDs and GIDs instead of names" \
2429         IF_FEATURE_LS_FILETYPES( \
2430      "\n        -p      Append indicator (one of /=@|) to entries") \
2431         IF_FEATURE_LS_FOLLOWLINKS( \
2432      "\n        -L      List entries pointed to by symlinks") \
2433         IF_FEATURE_LS_RECURSIVE( \
2434      "\n        -R      Recurse") \
2435         IF_FEATURE_LS_SORTFILES( \
2436      "\n        -r      Sort in reverse order") \
2437         IF_FEATURE_LS_SORTFILES( \
2438      "\n        -S      Sort by file size") \
2439      "\n        -s      List the size of each file, in blocks" \
2440         IF_FEATURE_AUTOWIDTH( \
2441      "\n        -T N    Assume tabstop every N columns") \
2442         IF_FEATURE_LS_TIMESTAMPS( \
2443      "\n        -t      With -l: sort by modification time") \
2444         IF_FEATURE_LS_TIMESTAMPS( \
2445      "\n        -u      With -l: sort by access time") \
2446         IF_FEATURE_LS_SORTFILES( \
2447      "\n        -v      Sort by version") \
2448         IF_FEATURE_AUTOWIDTH( \
2449      "\n        -w N    Assume the terminal is N columns wide") \
2450      "\n        -x      List by lines" \
2451         IF_FEATURE_LS_SORTFILES( \
2452      "\n        -X      Sort by extension") \
2453         IF_FEATURE_HUMAN_READABLE( \
2454      "\n        -h      List sizes in human readable format (1K 243M 2G)") \
2455         IF_SELINUX( \
2456      "\n        -k      List security context") \
2457         IF_SELINUX( \
2458      "\n        -K      List security context in long format") \
2459         IF_SELINUX( \
2460      "\n        -Z      List security context and permission") \
2461
2462 #define lsattr_trivial_usage \
2463        "[-Radlv] [FILE]..."
2464 #define lsattr_full_usage "\n\n" \
2465        "List file attributes on an ext2 fs\n" \
2466      "\nOptions:" \
2467      "\n        -R      Recurse" \
2468      "\n        -a      Don't hide entries starting with ." \
2469      "\n        -d      List directory entries instead of contents" \
2470      "\n        -l      List long flag names" \
2471      "\n        -v      List the file's version/generation number" \
2472
2473 #define lsmod_trivial_usage \
2474        ""
2475 #define lsmod_full_usage "\n\n" \
2476        "List the currently loaded kernel modules"
2477
2478 #define lspci_trivial_usage \
2479        "[-mk]"
2480 #define lspci_full_usage "\n\n" \
2481        "List all PCI devices" \
2482      "\n" \
2483      "\n        -m      Parseable output" \
2484      "\n        -k      Show driver" \
2485
2486 #define lsusb_trivial_usage NOUSAGE_STR
2487 #define lsusb_full_usage ""
2488
2489 #if ENABLE_FEATURE_MAKEDEVS_LEAF
2490 #define makedevs_trivial_usage \
2491        "NAME TYPE MAJOR MINOR FIRST LAST [s]"
2492 #define makedevs_full_usage "\n\n" \
2493        "Create a range of block or character special files" \
2494      "\n" \
2495      "\nTYPE is:" \
2496      "\n        b       Block device" \
2497      "\n        c       Character device" \
2498      "\n        f       FIFO, MAJOR and MINOR are ignored" \
2499      "\n" \
2500      "\nFIRST..LAST specify numbers appended to NAME." \
2501      "\nIf 's' is the last argument, the base device is created as well." \
2502      "\n" \
2503      "\nExamples:" \
2504      "\n        makedevs /dev/ttyS c 4 66 2 63   ->  ttyS2-ttyS63" \
2505      "\n        makedevs /dev/hda b 3 0 0 8 s    ->  hda,hda1-hda8"
2506 #define makedevs_example_usage \
2507        "# makedevs /dev/ttyS c 4 66 2 63\n" \
2508        "[creates ttyS2-ttyS63]\n" \
2509        "# makedevs /dev/hda b 3 0 0 8 s\n" \
2510        "[creates hda,hda1-hda8]\n"
2511 #endif
2512
2513 #if ENABLE_FEATURE_MAKEDEVS_TABLE
2514 #define makedevs_trivial_usage \
2515        "[-d device_table] rootdir"
2516 #define makedevs_full_usage "\n\n" \
2517        "Create a range of special files as specified in a device table.\n" \
2518        "Device table entries take the form of:\n" \
2519        "<type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>\n" \
2520        "Where name is the file name, type can be one of:\n" \
2521        "        f       Regular file\n" \
2522        "        d       Directory\n" \
2523        "        c       Character device\n" \
2524        "        b       Block device\n" \
2525        "        p       Fifo (named pipe)\n" \
2526        "uid is the user id for the target file, gid is the group id for the\n" \
2527        "target file. The rest of the entries (major, minor, etc) apply to\n" \
2528        "to device special files. A '-' may be used for blank entries."
2529 #define makedevs_example_usage \
2530        "For example:\n" \
2531        "<name>    <type> <mode><uid><gid><major><minor><start><inc><count>\n" \
2532        "/dev         d   755    0    0    -      -      -      -    -\n" \
2533        "/dev/console c   666    0    0    5      1      -      -    -\n" \
2534        "/dev/null    c   666    0    0    1      3      0      0    -\n" \
2535        "/dev/zero    c   666    0    0    1      5      0      0    -\n" \
2536        "/dev/hda     b   640    0    0    3      0      0      0    -\n" \
2537        "/dev/hda     b   640    0    0    3      1      1      1    15\n\n" \
2538        "Will Produce:\n" \
2539        "/dev\n" \
2540        "/dev/console\n" \
2541        "/dev/null\n" \
2542        "/dev/zero\n" \
2543        "/dev/hda\n" \
2544        "/dev/hda[0-15]\n"
2545 #endif
2546
2547 #define makemime_trivial_usage \
2548        "[OPTIONS] [FILE]..."
2549 #define makemime_full_usage "\n\n" \
2550        "Create multipart MIME-encoded message from FILEs\n" \
2551 /*     "Transfer encoding is base64, disposition is inline (not attachment)\n" */ \
2552      "\nOptions:" \
2553      "\n        -o FILE Output. Default: stdout" \
2554      "\n        -a HDR  Add header. Examples:" \
2555      "\n                \"From: user@host.org\", \"Date: `date -R`\"" \
2556      "\n        -c CT   Content type. Default: text/plain" \
2557      "\n        -C CS   Charset. Default: " CONFIG_FEATURE_MIME_CHARSET \
2558 /*   "\n        -e ENC  Transfer encoding. Ignored. base64 is assumed" */ \
2559      "\n" \
2560      "\nOther options are silently ignored" \
2561
2562 #define man_trivial_usage \
2563        "[OPTIONS] [MANPAGE]..."
2564 #define man_full_usage "\n\n" \
2565        "Format and display manual page\n" \
2566      "\nOptions:" \
2567      "\n        -a      Display all pages" \
2568      "\n        -w      Show page locations" \
2569
2570 #define matchpathcon_trivial_usage \
2571        "[-n] [-N] [-f file_contexts_file] [-p prefix] [-V]"
2572 #define matchpathcon_full_usage "\n\n" \
2573        "        -n      Don't display path" \
2574      "\n        -N      Don't use translations" \
2575      "\n        -f      Use alternate file_context file" \
2576      "\n        -p      Use prefix to speed translations" \
2577      "\n        -V      Verify file context on disk matches defaults" \
2578
2579 #define md5sum_trivial_usage \
2580        "[OPTIONS] [FILE]..." \
2581         IF_FEATURE_MD5_SHA1_SUM_CHECK("\n   or: md5sum [OPTIONS] -c [FILE]")
2582 #define md5sum_full_usage "\n\n" \
2583        "Print" IF_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " MD5 checksums" \
2584         IF_FEATURE_MD5_SHA1_SUM_CHECK( "\n" \
2585      "\nOptions:" \
2586      "\n        -c      Check sums against given list" \
2587      "\n        -s      Don't output anything, status code shows success" \
2588      "\n        -w      Warn about improperly formatted checksum lines" \
2589         )
2590
2591 #define md5sum_example_usage \
2592        "$ md5sum < busybox\n" \
2593        "6fd11e98b98a58f64ff3398d7b324003\n" \
2594        "$ md5sum busybox\n" \
2595        "6fd11e98b98a58f64ff3398d7b324003  busybox\n" \
2596        "$ md5sum -c -\n" \
2597        "6fd11e98b98a58f64ff3398d7b324003  busybox\n" \
2598        "busybox: OK\n" \
2599        "^D\n"
2600
2601 #define sha1sum_trivial_usage \
2602        "[OPTIONS] [FILE]..." \
2603         IF_FEATURE_MD5_SHA1_SUM_CHECK("\n   or: sha1sum [OPTIONS] -c [FILE]")
2604 #define sha1sum_full_usage "\n\n" \
2605        "Print" IF_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " SHA1 checksums" \
2606         IF_FEATURE_MD5_SHA1_SUM_CHECK( "\n" \
2607      "\nOptions:" \
2608      "\n        -c      Check sums against given list" \
2609      "\n        -s      Don't output anything, status code shows success" \
2610      "\n        -w      Warn about improperly formatted checksum lines" \
2611         )
2612
2613 #define sha256sum_trivial_usage \
2614        "[OPTIONS] [FILE]..." \
2615         IF_FEATURE_MD5_SHA1_SUM_CHECK("\n   or: sha256sum [OPTIONS] -c [FILE]")
2616 #define sha256sum_full_usage "\n\n" \
2617        "Print" IF_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " SHA256 checksums" \
2618         IF_FEATURE_MD5_SHA1_SUM_CHECK( "\n" \
2619      "\nOptions:" \
2620      "\n        -c      Check sums against given list" \
2621      "\n        -s      Don't output anything, status code shows success" \
2622      "\n        -w      Warn about improperly formatted checksum lines" \
2623         )
2624
2625 #define sha512sum_trivial_usage \
2626        "[OPTIONS] [FILE]..." \
2627         IF_FEATURE_MD5_SHA1_SUM_CHECK("\n   or: sha512sum [OPTIONS] -c [FILE]")
2628 #define sha512sum_full_usage "\n\n" \
2629        "Print" IF_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " SHA512 checksums" \
2630         IF_FEATURE_MD5_SHA1_SUM_CHECK( "\n" \
2631      "\nOptions:" \
2632      "\n        -c      Check sums against given list" \
2633      "\n        -s      Don't output anything, status code shows success" \
2634      "\n        -w      Warn about improperly formatted checksum lines" \
2635         )
2636
2637 #define mdev_trivial_usage \
2638        "[-s]"
2639 #define mdev_full_usage "\n\n" \
2640        "        -s      Scan /sys and populate /dev during system boot\n" \
2641        "\n" \
2642        "It can be run by kernel as a hotplug helper. To activate it:\n" \
2643        " echo /sbin/mdev > /proc/sys/kernel/hotplug\n" \
2644         IF_FEATURE_MDEV_CONF( \
2645        "It uses /etc/mdev.conf with lines\n" \
2646        "[-]DEVNAME UID:GID PERM" \
2647                         IF_FEATURE_MDEV_RENAME(" [>|=PATH]") \
2648                         IF_FEATURE_MDEV_EXEC(" [@|$|*PROG]") \
2649         ) \
2650
2651 #define mdev_notes_usage "" \
2652         IF_FEATURE_MDEV_CONFIG( \
2653        "The mdev config file contains lines that look like:\n" \
2654        "  hd[a-z][0-9]* 0:3 660\n\n" \
2655        "That's device name (with regex match), uid:gid, and permissions.\n\n" \
2656         IF_FEATURE_MDEV_EXEC( \
2657        "Optionally, that can be followed (on the same line) by a special character\n" \
2658        "and a command line to run after creating/before deleting the corresponding\n" \
2659        "device(s). The environment variable $MDEV indicates the active device node\n" \
2660        "(which is useful if it's a regex match). For example:\n\n" \
2661        "  hdc root:cdrom 660  *ln -s $MDEV cdrom\n\n" \
2662        "The special characters are @ (run after creating), $ (run before deleting),\n" \
2663        "and * (run both after creating and before deleting). The commands run in\n" \
2664        "the /dev directory, and use system() which calls /bin/sh.\n\n" \
2665         ) \
2666        "Config file parsing stops on the first matching line. If no config\n" \
2667        "entry is matched, devices are created with default 0:0 660. (Make\n" \
2668        "the last line match .* to override this.)\n\n" \
2669         )
2670
2671 #define mesg_trivial_usage \
2672        "[y|n]"
2673 #define mesg_full_usage "\n\n" \
2674        "Control write access to your terminal\n" \
2675        "        y       Allow write access to your terminal\n" \
2676        "        n       Disallow write access to your terminal"
2677
2678 #define microcom_trivial_usage \
2679        "[-d DELAY] [-t TIMEOUT] [-s SPEED] [-X] TTY"
2680 #define microcom_full_usage "\n\n" \
2681        "Copy bytes for stdin to TTY and from TTY to stdout\n" \
2682      "\nOptions:" \
2683      "\n        -d      Wait up to DELAY ms for TTY output before sending every" \
2684      "\n                next byte to it" \
2685      "\n        -t      Exit if both stdin and TTY are silent for TIMEOUT ms" \
2686      "\n        -s      Set serial line to SPEED" \
2687      "\n        -X      Disable special meaning of NUL and Ctrl-X from stdin" \
2688
2689 #define mkdir_trivial_usage \
2690        "[OPTIONS] DIRECTORY..."
2691 #define mkdir_full_usage "\n\n" \
2692        "Create DIRECTORY\n" \
2693      "\nOptions:" \
2694      "\n        -m      Mode" \
2695      "\n        -p      No error if exists; make parent directories as needed" \
2696         IF_SELINUX( \
2697      "\n        -Z      Set security context" \
2698         )
2699
2700 #define mkdir_example_usage \
2701        "$ mkdir /tmp/foo\n" \
2702        "$ mkdir /tmp/foo\n" \
2703        "/tmp/foo: File exists\n" \
2704        "$ mkdir /tmp/foo/bar/baz\n" \
2705        "/tmp/foo/bar/baz: No such file or directory\n" \
2706        "$ mkdir -p /tmp/foo/bar/baz\n"
2707
2708 #define mkfifo_trivial_usage \
2709        "[OPTIONS] name"
2710 #define mkfifo_full_usage "\n\n" \
2711        "Create named pipe (identical to 'mknod name p')\n" \
2712      "\nOptions:" \
2713      "\n        -m MODE Mode (default a=rw)" \
2714         IF_SELINUX( \
2715      "\n        -Z      Set security context" \
2716         )
2717
2718 #define mkfs_ext2_trivial_usage \
2719        "[-Fn] " \
2720        /* "[-c|-l filename] " */ \
2721        "[-b BLK_SIZE] " \
2722        /* "[-f fragment-size] [-g blocks-per-group] " */ \
2723        "[-i INODE_RATIO] [-I INODE_SIZE] " \
2724        /* "[-j] [-J journal-options] [-N number-of-inodes] " */ \
2725        "[-m RESERVED_PERCENT] " \
2726        /* "[-o creator-os] [-O feature[,...]] [-q] " */ \
2727        /* "[r fs-revision-level] [-E extended-options] [-v] [-F] " */ \
2728        "[-L LABEL] " \
2729        /* "[-M last-mounted-directory] [-S] [-T filesystem-type] " */ \
2730        "BLOCKDEV [KBYTES]"
2731 #define mkfs_ext2_full_usage "\n\n" \
2732        "        -b BLK_SIZE     Block size, bytes" \
2733 /*   "\n        -c              Check device for bad blocks" */ \
2734 /*   "\n        -E opts         Set extended options" */ \
2735 /*   "\n        -f size         Fragment size in bytes" */ \
2736      "\n        -F              Force" \
2737 /*   "\n        -g N            Number of blocks in a block group" */ \
2738      "\n        -i RATIO        Max number of files is filesystem_size / RATIO" \
2739      "\n        -I BYTES        Inode size (min 128)" \
2740 /*   "\n        -j              Create a journal (ext3)" */ \
2741 /*   "\n        -J opts         Set journal options (size/device)" */ \
2742 /*   "\n        -l file         Read bad blocks list from file" */ \
2743      "\n        -L LBL          Volume label" \
2744      "\n        -m PERCENT      Percent of blocks to reserve for admin" \
2745 /*   "\n        -M dir          Set last mounted directory" */ \
2746      "\n        -n              Dry run" \
2747 /*   "\n        -N N            Number of inodes to create" */ \
2748 /*   "\n        -o os           Set the 'creator os' field" */ \
2749 /*   "\n        -O features     Dir_index/filetype/has_journal/journal_dev/sparse_super" */ \
2750 /*   "\n        -q              Quiet" */ \
2751 /*   "\n        -r rev          Set filesystem revision" */ \
2752 /*   "\n        -S              Write superblock and group descriptors only" */ \
2753 /*   "\n        -T fs-type      Set usage type (news/largefile/largefile4)" */ \
2754 /*   "\n        -v              Verbose" */ \
2755
2756 #define mkfs_minix_trivial_usage \
2757        "[-c | -l FILE] [-nXX] [-iXX] BLOCKDEV [KBYTES]"
2758 #define mkfs_minix_full_usage "\n\n" \
2759        "Make a MINIX filesystem\n" \
2760      "\nOptions:" \
2761      "\n        -c              Check device for bad blocks" \
2762      "\n        -n [14|30]      Maximum length of filenames" \
2763      "\n        -i INODES       Number of inodes for the filesystem" \
2764      "\n        -l FILE         Read bad blocks list from FILE" \
2765      "\n        -v              Make version 2 filesystem" \
2766
2767 #define mkfs_reiser_trivial_usage \
2768        "[-f] [-l LABEL] BLOCKDEV [4K-BLOCKS]"
2769
2770 #define mkfs_reiser_full_usage "\n\n" \
2771        "Make a ReiserFS V3 filesystem\n" \
2772      "\nOptions:" \
2773      "\n        -f      Force" \
2774      "\n        -l LBL  Volume label" \
2775
2776 #define mkfs_vfat_trivial_usage \
2777        "[-v] [-n LABEL] BLOCKDEV [KBYTES]"
2778 /* Accepted but ignored:
2779        "[-c] [-C] [-I] [-l bad-block-file] [-b backup-boot-sector] "
2780        "[-m boot-msg-file] [-i volume-id] "
2781        "[-s sectors-per-cluster] [-S logical-sector-size] [-f number-of-FATs] "
2782        "[-h hidden-sectors] [-F fat-size] [-r root-dir-entries] [-R reserved-sectors] "
2783 */
2784 #define mkfs_vfat_full_usage "\n\n" \
2785        "Make a FAT32 filesystem\n" \
2786      "\nOptions:" \
2787 /*   "\n        -c      Check device for bad blocks" */ \
2788      "\n        -v      Verbose" \
2789 /*   "\n        -I      Allow to use entire disk device (e.g. /dev/hda)" */ \
2790      "\n        -n LBL  Volume label" \
2791
2792 #define mknod_trivial_usage \
2793        "[OPTIONS] NAME TYPE MAJOR MINOR"
2794 #define mknod_full_usage "\n\n" \
2795        "Create a special file (block, character, or pipe)\n" \
2796      "\nOptions:" \
2797      "\n        -m      Create the special file using the specified mode (default a=rw)" \
2798      "\nTYPEs include:" \
2799      "\n        b:      Make a block device" \
2800      "\n        c or u: Make a character device" \
2801      "\n        p:      Make a named pipe (MAJOR and MINOR are ignored)" \
2802         IF_SELINUX( \
2803      "\n        -Z      Set security context" \
2804         )
2805
2806 #define mknod_example_usage \
2807        "$ mknod /dev/fd0 b 2 0\n" \
2808        "$ mknod -m 644 /tmp/pipe p\n"
2809
2810 #define mkswap_trivial_usage \
2811        "[OPTIONS] BLOCKDEV [KBYTES]"
2812 #define mkswap_full_usage "\n\n" \
2813        "Prepare BLOCKDEV to be used as swap partition\n" \
2814      "\nOptions:" \
2815      "\n        -L LBL  Label" \
2816
2817 #define mktemp_trivial_usage \
2818        "[-dt] [-p DIR] [TEMPLATE]"
2819 #define mktemp_full_usage "\n\n" \
2820        "Create a temporary file with name based on TEMPLATE and print its name.\n" \
2821        "TEMPLATE must end with XXXXXX (e.g. [/dir/]nameXXXXXX).\n" \
2822      "\nOptions:" \
2823      "\n        -d      Make a directory instead of a file" \
2824 /*   "\n        -q      Fail silently if an error occurs" - we ignore it */ \
2825      "\n        -t      Generate a path rooted in temporary directory" \
2826      "\n        -p DIR  Use DIR as a temporary directory (implies -t)" \
2827      "\n" \
2828      "\nFor -t or -p, directory is chosen as follows:" \
2829      "\n$TMPDIR if set, else -p DIR, else /tmp" \
2830
2831 #define mktemp_example_usage \
2832        "$ mktemp /tmp/temp.XXXXXX\n" \
2833        "/tmp/temp.mWiLjM\n" \
2834        "$ ls -la /tmp/temp.mWiLjM\n" \
2835        "-rw-------    1 andersen andersen        0 Apr 25 17:10 /tmp/temp.mWiLjM\n"
2836
2837 #define more_trivial_usage \
2838        "[FILE]..."
2839 #define more_full_usage "\n\n" \
2840        "View FILE (or stdin) one screenful at a time"
2841
2842 #define more_example_usage \
2843        "$ dmesg | more\n"
2844
2845 #define mount_trivial_usage \
2846        "[OPTIONS] [-o OPTS] DEVICE NODE"
2847 #define mount_full_usage "\n\n" \
2848        "Mount a filesystem. Filesystem autodetection requires /proc.\n" \
2849      "\nOptions:" \
2850      "\n        -a              Mount all filesystems in fstab" \
2851         IF_FEATURE_MOUNT_FAKE( \
2852         IF_FEATURE_MTAB_SUPPORT( \
2853      "\n        -f              Update /etc/mtab, but don't mount" \
2854         ) \
2855         IF_NOT_FEATURE_MTAB_SUPPORT( \
2856      "\n        -f              Dry run" \
2857         ) \
2858         ) \
2859         IF_FEATURE_MOUNT_HELPERS( \
2860      "\n        -i              Don't run mount helper" \
2861         ) \
2862         IF_FEATURE_MTAB_SUPPORT( \
2863      "\n        -n              Don't update /etc/mtab" \
2864         ) \
2865      "\n        -r              Read-only mount" \
2866      "\n        -w              Read-write mount (default)" \
2867      "\n        -t FSTYPE       Filesystem type" \
2868      "\n        -O OPT          Mount only filesystems with option OPT (-a only)" \
2869      "\n-o OPT:" \
2870         IF_FEATURE_MOUNT_LOOP( \
2871      "\n        loop            Ignored (loop devices are autodetected)" \
2872         ) \
2873         IF_FEATURE_MOUNT_FLAGS( \
2874      "\n        [a]sync         Writes are [a]synchronous" \
2875      "\n        [no]atime       Disable/enable updates to inode access times" \
2876      "\n        [no]diratime    Disable/enable atime updates to directories" \
2877      "\n        [no]relatime    Disable/enable atime updates relative to modification time" \
2878      "\n        [no]dev         (Dis)allow use of special device files" \
2879      "\n        [no]exec        (Dis)allow use of executable files" \
2880      "\n        [no]suid        (Dis)allow set-user-id-root programs" \
2881      "\n        [r]shared       Convert [recursively] to a shared subtree" \
2882      "\n        [r]slave        Convert [recursively] to a slave subtree" \
2883      "\n        [r]private      Convert [recursively] to a private subtree" \
2884      "\n        [un]bindable    Make mount point [un]able to be bind mounted" \
2885      "\n        bind            Bind a file or directory to another location" \
2886      "\n        move            Relocate an existing mount point" \
2887         ) \
2888      "\n        remount         Remount a mounted filesystem, changing flags" \
2889      "\n        ro/rw           Same as -r/-w" \
2890      "\n" \
2891      "\nThere are filesystem-specific -o flags." \
2892
2893 #define mount_example_usage \
2894        "$ mount\n" \
2895        "/dev/hda3 on / type minix (rw)\n" \
2896        "proc on /proc type proc (rw)\n" \
2897        "devpts on /dev/pts type devpts (rw)\n" \
2898        "$ mount /dev/fd0 /mnt -t msdos -o ro\n" \
2899        "$ mount /tmp/diskimage /opt -t ext2 -o loop\n" \
2900        "$ mount cd_image.iso mydir\n"
2901 #define mount_notes_usage \
2902        "Returns 0 for success, number of failed mounts for -a, or errno for one mount."
2903
2904 #define mountpoint_trivial_usage \
2905        "[-q] <[-dn] DIR | -x DEVICE>"
2906 #define mountpoint_full_usage "\n\n" \
2907        "Check if the directory is a mountpoint\n" \
2908      "\nOptions:" \
2909      "\n        -q      Quiet" \
2910      "\n        -d      Print major/minor device number of the filesystem" \
2911      "\n        -n      Print device name of the filesystem" \
2912      "\n        -x      Print major/minor device number of the blockdevice" \
2913
2914 #define mountpoint_example_usage \
2915        "$ mountpoint /proc\n" \
2916        "/proc is not a mountpoint\n" \
2917        "$ mountpoint /sys\n" \
2918        "/sys is a mountpoint\n"
2919
2920 #define mt_trivial_usage \
2921        "[-f device] opcode value"
2922 #define mt_full_usage "\n\n" \
2923        "Control magnetic tape drive operation\n" \
2924        "\n" \
2925        "Available Opcodes:\n" \
2926        "\n" \
2927        "bsf bsfm bsr bss datacompression drvbuffer eof eom erase\n" \
2928        "fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2\n" \
2929        "ras3 reset retension rewind rewoffline seek setblk setdensity\n" \
2930        "setpart tell unload unlock weof wset" \
2931
2932 #define mv_trivial_usage \
2933        "[OPTIONS] SOURCE DEST\n" \
2934        "or: mv [OPTIONS] SOURCE... DIRECTORY"
2935 #define mv_full_usage "\n\n" \
2936        "Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY\n" \
2937      "\nOptions:" \
2938      "\n        -f      Don't prompt before overwriting" \
2939      "\n        -i      Interactive, prompt before overwrite" \
2940
2941 #define mv_example_usage \
2942        "$ mv /tmp/foo /bin/bar\n"
2943
2944 #define nameif_trivial_usage \
2945        "[-s] [-c FILE] [{IFNAME MACADDR}]"
2946 #define nameif_full_usage "\n\n" \
2947        "Rename network interface while it in the down state\n" \
2948      "\nOptions:" \
2949      "\n        -c FILE         Use configuration file (default: /etc/mactab)" \
2950      "\n        -s              Use syslog (LOCAL0 facility)" \
2951      "\n        IFNAME MACADDR  new_interface_name interface_mac_address" \
2952
2953 #define nameif_example_usage \
2954        "$ nameif -s dmz0 00:A0:C9:8C:F6:3F\n" \
2955        " or\n" \
2956        "$ nameif -c /etc/my_mactab_file\n" \
2957
2958 #define netstat_trivial_usage \
2959        "[-laentuwxr"IF_FEATURE_NETSTAT_WIDE("W")IF_FEATURE_NETSTAT_PRG("p")"]"
2960 #define netstat_full_usage "\n\n" \
2961        "Display networking information\n" \
2962      "\nOptions:" \
2963      "\n        -l      Display listening server sockets" \
2964      "\n        -a      Display all sockets (default: connected)" \
2965      "\n        -e      Display other/more information" \
2966      "\n        -n      Don't resolve names" \
2967      "\n        -t      Tcp sockets" \
2968      "\n        -u      Udp sockets" \
2969      "\n        -w      Raw sockets" \
2970      "\n        -x      Unix sockets" \
2971      "\n        -r      Display routing table" \
2972         IF_FEATURE_NETSTAT_WIDE( \
2973      "\n        -W      Display with no column truncation" \
2974         ) \
2975         IF_FEATURE_NETSTAT_PRG( \
2976      "\n        -p      Display PID/Program name for sockets" \
2977         )
2978
2979 #define nmeter_trivial_usage \
2980        "format_string"
2981 #define nmeter_full_usage "\n\n" \
2982        "Monitor system in real time\n\n" \
2983        "Format specifiers:\n" \
2984        " %Nc or %[cN]   Monitor CPU. N - bar size, default 10\n" \
2985        "                (displays: S:system U:user N:niced D:iowait I:irq i:softirq)\n" \
2986        " %[niface]      Monitor network interface 'iface'\n" \
2987        " %m             Monitor allocated memory\n" \
2988        " %[mf]          Monitor free memory\n" \
2989        " %[mt]          Monitor total memory\n" \
2990        " %s             Monitor allocated swap\n" \
2991        " %f             Monitor number of used file descriptors\n" \
2992        " %Ni            Monitor total/specific IRQ rate\n" \
2993        " %x             Monitor context switch rate\n" \
2994        " %p             Monitor forks\n" \
2995        " %[pn]          Monitor # of processes\n" \
2996        " %b             Monitor block io\n" \
2997        " %Nt            Show time (with N decimal points)\n" \
2998        " %Nd            Milliseconds between updates (default:1000)\n" \
2999        " %r             Print <cr> instead of <lf> at EOL" \
3000
3001 #define nmeter_example_usage \
3002        "nmeter '%250d%t %20c int %i bio %b mem %m forks%p'"
3003
3004 #define nohup_trivial_usage \
3005        "PROG ARGS"
3006 #define nohup_full_usage "\n\n" \
3007        "Run PROG immune to hangups, with output to a non-tty"
3008 #define nohup_example_usage \
3009        "$ nohup make &"
3010
3011 #define nslookup_trivial_usage \
3012        "[HOST] [SERVER]"
3013 #define nslookup_full_usage "\n\n" \
3014        "Query the nameserver for the IP address of the given HOST\n" \
3015        "optionally using a specified DNS server"
3016 #define nslookup_example_usage \
3017        "$ nslookup localhost\n" \
3018        "Server:     default\n" \
3019        "Address:    default\n" \
3020        "\n" \
3021        "Name:       debian\n" \
3022        "Address:    127.0.0.1\n"
3023
3024 #define ntpd_trivial_usage \
3025         "[-dnqwl] [-S PROG] [-p PEER]..."
3026 #define ntpd_full_usage "\n\n" \
3027        "NTP client/server\n" \
3028      "\nOptions:" \
3029      "\n        -d      Verbose" \
3030      "\n        -n      Do not daemonize" \
3031      "\n        -q      Quit after clock is set" \
3032 /* -N exists for mostly compat reasons, thus not essential to inform */ \
3033 /* the user that it exists: user may use nice as well */ \
3034 /*   "\n        -N      Run at high priority" */ \
3035      "\n        -w      Do not set time (only query peers), implies -n" \
3036      "\n        -l      Run as server on port 123" \
3037      "\n        -S PROG Run PROG after stepping time, stratum change, and every 11 mins" \
3038      "\n        -p PEER Obtain time from PEER (may be repeated)" \
3039
3040 #define od_trivial_usage \
3041        "[-aBbcDdeFfHhIiLlOovXx] " IF_DESKTOP("[-t TYPE] ") "[FILE]"
3042 #define od_full_usage "\n\n" \
3043        "Write an unambiguous representation, octal bytes by default, of FILE\n" \
3044        "(or stdin) to stdout"
3045
3046 #define openvt_trivial_usage \
3047        "[-c N] [-sw] [PROG ARGS]"
3048 #define openvt_full_usage "\n\n" \
3049        "Start PROG on a new virtual terminal\n" \
3050      "\nOptions:" \
3051      "\n        -c N    Use specified VT" \
3052      "\n        -s      Switch to the VT" \
3053 /*   "\n        -l      Run PROG as login shell (by prepending '-')" */ \
3054      "\n        -w      Wait for PROG to exit" \
3055
3056 #define openvt_example_usage \
3057        "openvt 2 /bin/ash\n"
3058
3059 /*
3060 #define parse_trivial_usage \
3061        "[-n MAXTOKENS] [-m MINTOKENS] [-d DELIMS] [-f FLAGS] FILE..."
3062 #define parse_full_usage ""
3063 */
3064
3065 #define passwd_trivial_usage \
3066        "[OPTIONS] [USER]"
3067 #define passwd_full_usage "\n\n" \
3068        "Change USER's password. If no USER is specified,\n" \
3069        "changes the password for the current user.\n" \
3070      "\nOptions:" \
3071      "\n        -a      Algorithm to use for password (des, md5)" /* ", sha1)" */ \
3072      "\n        -d      Delete password for the account" \
3073      "\n        -l      Lock (disable) account" \
3074      "\n        -u      Unlock (re-enable) account" \
3075
3076 #define chpasswd_trivial_usage \
3077         IF_LONG_OPTS("[--md5|--encrypted]") IF_NOT_LONG_OPTS("[-m|-e]")
3078 #define chpasswd_full_usage "\n\n" \
3079        "Read user:password from stdin and update /etc/passwd\n" \
3080      "\nOptions:" \
3081         IF_LONG_OPTS( \
3082      "\n        -e,--encrypted  Supplied passwords are in encrypted form" \
3083      "\n        -m,--md5        Use MD5 encryption instead of DES" \
3084         ) \
3085         IF_NOT_LONG_OPTS( \
3086      "\n        -e      Supplied passwords are in encrypted form" \
3087      "\n        -m      Use MD5 encryption instead of DES" \
3088         )
3089
3090 #define patch_trivial_usage \
3091        "[OPTIONS] [ORIGFILE [PATCHFILE]]"
3092 #define patch_full_usage "\n\n" \
3093         IF_LONG_OPTS( \
3094        "        -p,--strip N    Strip N leading components from file names" \
3095      "\n        -i,--input DIFF Read DIFF instead of stdin" \
3096      "\n        -R,--reverse    Reverse patch" \
3097      "\n        -N,--forward    Ignore already applied patches" \
3098      "\n        --dry-run       Don't actually change files" \
3099         ) \
3100         IF_NOT_LONG_OPTS( \
3101        "        -p N    Strip N leading components from file names" \
3102      "\n        -i DIFF Read DIFF instead of stdin" \
3103      "\n        -R      Reverse patch" \
3104      "\n        -N      Ignore already applied patches" \
3105         )
3106
3107 #define patch_example_usage \
3108        "$ patch -p1 < example.diff\n" \
3109        "$ patch -p0 -i example.diff"
3110
3111 #define pgrep_trivial_usage \
3112        "[-flnovx] [-s SID|-P PPID|PATTERN]"
3113 #define pgrep_full_usage "\n\n" \
3114        "Display process(es) selected by regex PATTERN\n" \
3115      "\nOptions:" \
3116      "\n        -l      Show command name too" \
3117      "\n        -f      Match against entire command line" \
3118      "\n        -n      Show the newest process only" \
3119      "\n        -o      Show the oldest process only" \
3120      "\n        -v      Negate the match" \
3121      "\n        -x      Match whole name (not substring)" \
3122      "\n        -s      Match session ID (0 for current)" \
3123      "\n        -P      Match parent process ID" \
3124
3125 #if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT)
3126 #define pidof_trivial_usage \
3127        "[OPTIONS] [NAME]..."
3128 #define USAGE_PIDOF "\n\nOptions:"
3129 #else
3130 #define pidof_trivial_usage \
3131        "[NAME]..."
3132 #define USAGE_PIDOF /* none */
3133 #endif
3134 #define pidof_full_usage "\n\n" \
3135        "List PIDs of all processes with names that match NAMEs" \
3136         USAGE_PIDOF \
3137         IF_FEATURE_PIDOF_SINGLE( \
3138      "\n        -s      Show only one PID") \
3139         IF_FEATURE_PIDOF_OMIT( \
3140      "\n        -o PID  Omit given pid" \
3141      "\n                Use %PPID to omit pid of pidof's parent") \
3142
3143 #define pidof_example_usage \
3144        "$ pidof init\n" \
3145        "1\n" \
3146         IF_FEATURE_PIDOF_OMIT( \
3147        "$ pidof /bin/sh\n20351 5973 5950\n") \
3148         IF_FEATURE_PIDOF_OMIT( \
3149        "$ pidof /bin/sh -o %PPID\n20351 5950")
3150
3151 #if !ENABLE_FEATURE_FANCY_PING
3152 #define ping_trivial_usage \
3153        "host"
3154 #define ping_full_usage "\n\n" \
3155        "Send ICMP ECHO_REQUEST packets to network hosts"
3156 #define ping6_trivial_usage \
3157        "host"
3158 #define ping6_full_usage "\n\n" \
3159        "Send ICMP ECHO_REQUEST packets to network hosts"
3160 #else
3161 #define ping_trivial_usage \
3162        "[OPTIONS] HOST"
3163 #define ping_full_usage "\n\n" \
3164        "Send ICMP ECHO_REQUEST packets to network hosts\n" \
3165      "\nOptions:" \
3166      "\n        -4, -6          Force IP or IPv6 name resolution" \
3167      "\n        -c CNT          Send only CNT pings" \
3168      "\n        -s SIZE         Send SIZE data bytes in packets (default:56)" \
3169      "\n        -I IFACE/IP     Use interface or IP address as source" \
3170      "\n        -W SEC          Seconds to wait for the first response (default:10)" \
3171      "\n                        (after all -c CNT packets are sent)" \
3172      "\n        -w SEC          Seconds until ping exits (default:infinite)" \
3173      "\n                        (can exit earlier with -c CNT)" \
3174      "\n        -q              Quiet, only displays output at start" \
3175      "\n                        and when finished" \
3176
3177 #define ping6_trivial_usage \
3178        "[OPTIONS] HOST"
3179 #define ping6_full_usage "\n\n" \
3180        "Send ICMP ECHO_REQUEST packets to network hosts\n" \
3181      "\nOptions:" \
3182      "\n        -c CNT          Send only CNT pings" \
3183      "\n        -s SIZE         Send SIZE data bytes in packets (default:56)" \
3184      "\n        -I IFACE/IP     Use interface or IP address as source" \
3185      "\n        -q              Quiet, only displays output at start" \
3186      "\n                        and when finished" \
3187
3188 #endif
3189 #define ping_example_usage \
3190        "$ ping localhost\n" \
3191        "PING slag (127.0.0.1): 56 data bytes\n" \
3192        "64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=20.1 ms\n" \
3193        "\n" \
3194        "--- debian ping statistics ---\n" \
3195        "1 packets transmitted, 1 packets received, 0% packet loss\n" \
3196        "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"
3197 #define ping6_example_usage \
3198        "$ ping6 ip6-localhost\n" \
3199        "PING ip6-localhost (::1): 56 data bytes\n" \
3200        "64 bytes from ::1: icmp6_seq=0 ttl=64 time=20.1 ms\n" \
3201        "\n" \
3202        "--- ip6-localhost ping statistics ---\n" \
3203        "1 packets transmitted, 1 packets received, 0% packet loss\n" \
3204        "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"
3205
3206 #define pipe_progress_trivial_usage NOUSAGE_STR
3207 #define pipe_progress_full_usage ""
3208
3209 #define pivot_root_trivial_usage \
3210        "NEW_ROOT PUT_OLD"
3211 #define pivot_root_full_usage "\n\n" \
3212        "Move the current root file system to PUT_OLD and make NEW_ROOT\n" \
3213        "the new root file system"
3214
3215 #define pkill_trivial_usage \
3216        "[-l|-SIGNAL] [-fnovx] [-s SID|-P PPID|PATTERN]"
3217 #define pkill_full_usage "\n\n" \
3218        "Send a signal to process(es) selected by regex PATTERN\n" \
3219      "\nOptions:" \
3220      "\n        -l      List all signals" \
3221      "\n        -f      Match against entire command line" \
3222      "\n        -n      Signal the newest process only" \
3223      "\n        -o      Signal the oldest process only" \
3224      "\n        -v      Negate the match" \
3225      "\n        -x      Match whole name (not substring)" \
3226      "\n        -s      Match session ID (0 for current)" \
3227      "\n        -P      Match parent process ID" \
3228
3229 #define popmaildir_trivial_usage \
3230        "[OPTIONS] MAILDIR [CONN_HELPER ARGS]"
3231 #define popmaildir_full_usage "\n\n" \
3232        "Fetch content of remote mailbox to local maildir\n" \
3233      "\nOptions:" \
3234 /*   "\n        -b              Binary mode. Ignored" */ \
3235 /*   "\n        -d              Debug. Ignored" */ \
3236 /*   "\n        -m              Show used memory. Ignored" */ \
3237 /*   "\n        -V              Show version. Ignored" */ \
3238 /*   "\n        -c              Use tcpclient. Ignored" */ \
3239 /*   "\n        -a              Use APOP protocol. Implied. If server supports APOP -> use it" */ \
3240      "\n        -s              Skip authorization" \
3241      "\n        -T              Get messages with TOP instead of RETR" \
3242      "\n        -k              Keep retrieved messages on the server" \
3243      "\n        -t SEC          Network timeout" \
3244         IF_FEATURE_POPMAILDIR_DELIVERY( \
3245      "\n        -F \"PROG ARGS\"        Filter program (may be repeated)" \
3246      "\n        -M \"PROG ARGS\"        Delivery program" \
3247         ) \
3248      "\n" \
3249      "\nFetch from plain POP3 server:" \
3250      "\npopmaildir -k DIR nc pop3.server.com 110 <user_and_pass.txt" \
3251      "\nFetch from SSLed POP3 server and delete fetched emails:" \
3252      "\npopmaildir DIR -- openssl s_client -quiet -connect pop3.server.com:995 <user_and_pass.txt"
3253 /*   "\n        -R BYTES        Remove old messages on the server >= BYTES. Ignored" */
3254 /*   "\n        -Z N1-N2        Remove messages from N1 to N2 (dangerous). Ignored" */
3255 /*   "\n        -L BYTES        Don't retrieve new messages >= BYTES. Ignored" */
3256 /*   "\n        -H LINES        Type first LINES of a message. Ignored" */
3257 #define popmaildir_example_usage \
3258        "$ popmaildir -k ~/Maildir -- nc pop.drvv.ru 110 [<password_file]\n" \
3259        "$ popmaildir ~/Maildir -- openssl s_client -quiet -connect pop.gmail.com:995 [<password_file]\n"
3260
3261 #define poweroff_trivial_usage \
3262        "[-d DELAY] [-n] [-f]"
3263 #define poweroff_full_usage "\n\n" \
3264        "Halt and shut off power\n" \
3265      "\nOptions:" \
3266      "\n        -d      Delay interval for halting" \
3267      "\n        -n      Do not sync" \
3268      "\n        -f      Force power off (don't go through init)" \
3269
3270 #define printenv_trivial_usage \
3271        "[VARIABLE]..."
3272 #define printenv_full_usage "\n\n" \
3273        "Print environment VARIABLEs.\n" \
3274        "If no VARIABLE specified, print all."
3275
3276 #define printf_trivial_usage \
3277        "FORMAT [ARGUMENT]..."
3278 #define printf_full_usage "\n\n" \
3279        "Format and print ARGUMENT(s) according to FORMAT,\n" \
3280        "where FORMAT controls the output exactly as in C printf"
3281 #define printf_example_usage \
3282        "$ printf \"Val=%d\\n\" 5\n" \
3283        "Val=5\n"
3284
3285
3286 #if ENABLE_DESKTOP
3287
3288 #define ps_trivial_usage \
3289        "[-o COL1,COL2=HEADER]" IF_FEATURE_SHOW_THREADS(" [-T]")
3290 #define ps_full_usage "\n\n" \
3291        "Show list of processes\n" \
3292      "\nOptions:" \
3293      "\n        -o COL1,COL2=HEADER     Select columns for display" \
3294         IF_FEATURE_SHOW_THREADS( \
3295      "\n        -T                      Show threads" \
3296         )
3297
3298 #else /* !ENABLE_DESKTOP */
3299
3300 #if !ENABLE_SELINUX && !ENABLE_FEATURE_PS_WIDE
3301 #define USAGE_PS "\nThis version of ps accepts no options"
3302 #else
3303 #define USAGE_PS "\nOptions:"
3304 #endif
3305
3306 #define ps_trivial_usage \
3307        ""
3308 #define ps_full_usage "\n\n" \
3309        "Show list of processes\n" \
3310         USAGE_PS \
3311         IF_SELINUX( \
3312      "\n        -Z      Show selinux context" \
3313         ) \
3314         IF_FEATURE_PS_WIDE( \
3315      "\n        w       Wide output" \
3316         )
3317
3318 #endif /* ENABLE_DESKTOP */
3319
3320 #define ps_example_usage \
3321        "$ ps\n" \
3322        "  PID  Uid      Gid State Command\n" \
3323        "    1 root     root     S init\n" \
3324        "    2 root     root     S [kflushd]\n" \
3325        "    3 root     root     S [kupdate]\n" \
3326        "    4 root     root     S [kpiod]\n" \
3327        "    5 root     root     S [kswapd]\n" \
3328        "  742 andersen andersen S [bash]\n" \
3329        "  743 andersen andersen S -bash\n" \
3330        "  745 root     root     S [getty]\n" \
3331        " 2990 andersen andersen R ps\n" \
3332
3333 #define pscan_trivial_usage \
3334        "[-cb] [-p MIN_PORT] [-P MAX_PORT] [-t TIMEOUT] [-T MIN_RTT] HOST"
3335 #define pscan_full_usage "\n\n" \
3336        "Scan a host, print all open ports\n" \
3337      "\nOptions:" \
3338      "\n        -c      Show closed ports too" \
3339      "\n        -b      Show blocked ports too" \
3340      "\n        -p      Scan from this port (default 1)" \
3341      "\n        -P      Scan up to this port (default 1024)" \
3342      "\n        -t      Timeout (default 5000 ms)" \
3343      "\n        -T      Minimum rtt (default 5 ms, increase for congested hosts)" \
3344
3345 #define pwd_trivial_usage \
3346        ""
3347 #define pwd_full_usage "\n\n" \
3348        "Print the full filename of the current working directory"
3349 #define pwd_example_usage \
3350        "$ pwd\n" \
3351        "/root\n"
3352
3353 #define raidautorun_trivial_usage \
3354        "DEVICE"
3355 #define raidautorun_full_usage "\n\n" \
3356        "Tell the kernel to automatically search and start RAID arrays"
3357 #define raidautorun_example_usage \
3358        "$ raidautorun /dev/md0"
3359
3360 #define rdate_trivial_usage \
3361        "[-sp] HOST"
3362 #define rdate_full_usage "\n\n" \
3363        "Get and possibly set the system date and time from a remote HOST\n" \
3364      "\nOptions:" \
3365      "\n        -s      Set the system date and time (default)" \
3366      "\n        -p      Print the date and time" \
3367
3368 #define rdev_trivial_usage \
3369        ""
3370 #define rdev_full_usage "\n\n" \
3371        "Print the device node associated with the filesystem mounted at '/'"
3372 #define rdev_example_usage \
3373        "$ rdev\n" \
3374        "/dev/mtdblock9 /\n"
3375
3376 #define readahead_trivial_usage \
3377        "[FILE]..."
3378 #define readahead_full_usage "\n\n" \
3379        "Preload FILEs to RAM"
3380
3381 #define readlink_trivial_usage \
3382         IF_FEATURE_READLINK_FOLLOW("[-fnv] ") "FILE"
3383 #define readlink_full_usage "\n\n" \
3384        "Display the value of a symlink" \
3385         IF_FEATURE_READLINK_FOLLOW( "\n" \
3386      "\nOptions:" \
3387      "\n        -f      Canonicalize by following all symlinks" \
3388      "\n        -n      Don't add newline" \
3389      "\n        -v      Verbose" \
3390         ) \
3391
3392 #define readprofile_trivial_usage \
3393        "[OPTIONS]"
3394 #define readprofile_full_usage "\n\n" \
3395        "Options:" \
3396      "\n        -m mapfile      (Default: /boot/System.map)" \
3397      "\n        -p profile      (Default: /proc/profile)" \
3398      "\n        -M NUM          Set the profiling multiplier to NUM" \
3399      "\n        -i              Print only info about the sampling step" \
3400      "\n        -v              Verbose" \
3401      "\n        -a              Print all symbols, even if count is 0" \
3402      "\n        -b              Print individual histogram-bin counts" \
3403      "\n        -s              Print individual counters within functions" \
3404      "\n        -r              Reset all the counters (root only)" \
3405      "\n        -n              Disable byte order auto-detection" \
3406
3407 #define realpath_trivial_usage \
3408        "FILE..."
3409 #define realpath_full_usage "\n\n" \
3410        "Return the absolute pathnames of given FILE"
3411
3412 #define reboot_trivial_usage \
3413        "[-d DELAY] [-n] [-f]"
3414 #define reboot_full_usage "\n\n" \
3415        "Reboot the system\n" \
3416      "\nOptions:" \
3417      "\n        -d      Delay interval for rebooting" \
3418      "\n        -n      No call to sync()" \
3419      "\n        -f      Force reboot (don't go through init)" \
3420
3421 #define reformime_trivial_usage \
3422        "[OPTIONS] [FILE]..."
3423 #define reformime_full_usage "\n\n" \
3424        "Parse MIME-encoded message\n" \
3425      "\nOptions:" \
3426      "\n        -x PREFIX       Extract content of MIME sections to files" \
3427      "\n        -X PROG ARGS    Filter content of MIME sections through PROG" \
3428      "\n                        Must be the last option" \
3429      "\n" \
3430      "\nOther options are silently ignored" \
3431
3432 #define scriptreplay_trivial_usage \
3433        "timingfile [typescript [divisor]]"
3434 #define scriptreplay_full_usage "\n\n" \
3435        "Play back typescripts, using timing information"
3436
3437 #define reset_trivial_usage \
3438        ""
3439 #define reset_full_usage "\n\n" \
3440        "Reset the screen"
3441
3442 #define resize_trivial_usage \
3443        ""
3444 #define resize_full_usage "\n\n" \
3445        "Resize the screen"
3446
3447 #define restorecon_trivial_usage \
3448        "[-iFnRv] [-e EXCLUDEDIR]... [-o FILE] [-f FILE]"
3449 #define restorecon_full_usage "\n\n" \
3450        "Reset security contexts of files in pathname\n" \
3451      "\n        -i      Ignore files that don't exist" \
3452      "\n        -f FILE File with list of files to process" \
3453      "\n        -e DIR  Directory to exclude" \
3454      "\n        -R,-r   Recurse" \
3455      "\n        -n      Don't change any file labels" \
3456      "\n        -o FILE Save list of files with incorrect context" \
3457      "\n        -v      Verbose" \
3458      "\n        -vv     Show changed labels" \
3459      "\n        -F      Force reset of context to match file_context" \
3460      "\n                for customizable files, or the user section," \
3461      "\n                if it has changed" \
3462
3463 #define rfkill_trivial_usage \
3464        "COMMAND [INDEX|TYPE]"
3465 #define rfkill_full_usage "\n\n" \
3466        "Enable/disable wireless devices\n" \
3467        "\nCommands:" \
3468      "\n        list [INDEX|TYPE]       List current state" \
3469      "\n        block INDEX|TYPE        Disable device" \
3470      "\n        unblock INDEX|TYPE      Enable device" \
3471      "\n" \
3472      "\n        TYPE: all, wlan(wifi), bluetooth, uwb(ultrawideband)," \
3473      "\n                wimax, wwan, gps, fm" \
3474
3475 #define rm_trivial_usage \
3476        "[OPTIONS] FILE..."
3477 #define rm_full_usage "\n\n" \
3478        "Remove (unlink) FILEs\n" \
3479      "\nOptions:" \
3480      "\n        -i      Always prompt before removing" \
3481      "\n        -f      Never prompt" \
3482      "\n        -R,-r   Recurse" \
3483
3484 #define rm_example_usage \
3485        "$ rm -rf /tmp/foo\n"
3486
3487 #define rmdir_trivial_usage \
3488        "[OPTIONS] DIRECTORY..."
3489 #define rmdir_full_usage "\n\n" \
3490        "Remove DIRECTORY if it is empty\n" \
3491      "\nOptions:" \
3492         IF_FEATURE_RMDIR_LONG_OPTIONS( \
3493      "\n        -p|--parents    Include parents" \
3494      "\n        --ignore-fail-on-non-empty" \
3495         ) \
3496         IF_NOT_FEATURE_RMDIR_LONG_OPTIONS( \
3497      "\n        -p      Include parents" \
3498         )
3499
3500 #define rmdir_example_usage \
3501        "# rmdir /tmp/foo\n"
3502
3503 #define rmmod_trivial_usage \
3504        "[OPTIONS] [MODULE]..."
3505 #define rmmod_full_usage "\n\n" \
3506        "Unload the specified kernel modules from the kernel\n" \
3507      "\nOptions:" \
3508      "\n        -w      Wait until the module is no longer used" \
3509      "\n        -f      Force unloading" \
3510      "\n        -a      Remove all unused modules (recursively)" \
3511
3512 #define rmmod_example_usage \
3513        "$ rmmod tulip\n"
3514
3515 #define route_trivial_usage \
3516        "[{add|del|delete}]"
3517 #define route_full_usage "\n\n" \
3518        "Edit kernel routing tables\n" \
3519      "\nOptions:" \
3520      "\n        -n      Don't resolve names" \
3521      "\n        -e      Display other/more information" \
3522      "\n        -A inet" IF_FEATURE_IPV6("{6}") "       Select address family" \
3523
3524 #define rpm_trivial_usage \
3525        "-i PACKAGE.rpm; rpm -qp[ildc] PACKAGE.rpm"
3526 #define rpm_full_usage "\n\n" \
3527        "Manipulate RPM packages\n" \
3528      "\nCommands:" \
3529      "\n        -i      Install package" \
3530      "\n        -qp     Query package" \
3531      "\nOptions:" \
3532      "\n        -i      Show information" \
3533      "\n        -l      List contents" \
3534      "\n        -d      List documents" \
3535      "\n        -c      List config files" \
3536
3537 #define rpm2cpio_trivial_usage \
3538        "package.rpm"
3539 #define rpm2cpio_full_usage "\n\n" \
3540        "Output a cpio archive of the rpm file"
3541
3542 #define rtcwake_trivial_usage \
3543        "[-a | -l | -u] [-d DEV] [-m MODE] [-s SEC | -t TIME]"
3544 #define rtcwake_full_usage "\n\n" \
3545        "Enter a system sleep state until specified wakeup time\n" \
3546         IF_LONG_OPTS( \
3547      "\n        -a,--auto       Read clock mode from adjtime" \
3548      "\n        -l,--local      Clock is set to local time" \
3549      "\n        -u,--utc        Clock is set to UTC time" \
3550      "\n        -d,--device=DEV Specify the RTC device" \
3551      "\n        -m,--mode=MODE  Set the sleep state (default: standby)" \
3552      "\n        -s,--seconds=SEC Set the timeout in SEC seconds from now" \
3553      "\n        -t,--time=TIME  Set the timeout to TIME seconds from epoch" \
3554         ) \
3555         IF_NOT_LONG_OPTS( \
3556      "\n        -a      Read clock mode from adjtime" \
3557      "\n        -l      Clock is set to local time" \
3558      "\n        -u      Clock is set to UTC time" \
3559      "\n        -d DEV  Specify the RTC device" \
3560      "\n        -m MODE Set the sleep state (default: standby)" \
3561      "\n        -s SEC  Set the timeout in SEC seconds from now" \
3562      "\n        -t TIME Set the timeout to TIME seconds from epoch" \
3563         )
3564
3565 #define runcon_trivial_usage \
3566        "[-c] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] PROG ARGS\n" \
3567        "runcon CONTEXT PROG ARGS"
3568 #define runcon_full_usage "\n\n" \
3569        "Run PROG in a different security context\n" \
3570      "\n        CONTEXT         Complete security context\n" \
3571         IF_FEATURE_RUNCON_LONG_OPTIONS( \
3572      "\n        -c,--compute    Compute process transition context before modifying" \
3573      "\n        -t,--type=TYPE  Type (for same role as parent)" \
3574      "\n        -u,--user=USER  User identity" \
3575      "\n        -r,--role=ROLE  Role" \
3576      "\n        -l,--range=RNG  Levelrange" \
3577         ) \
3578         IF_NOT_FEATURE_RUNCON_LONG_OPTIONS( \
3579      "\n        -c      Compute process transition context before modifying" \
3580      "\n        -t TYPE Type (for same role as parent)" \
3581      "\n        -u USER User identity" \
3582      "\n        -r ROLE Role" \
3583      "\n        -l RNG  Levelrange" \
3584         )
3585
3586 #define run_parts_trivial_usage \
3587        "[-t] "IF_FEATURE_RUN_PARTS_FANCY("[-l] ")"[-a ARG] [-u MASK] DIRECTORY"
3588 #define run_parts_full_usage "\n\n" \
3589        "Run a bunch of scripts in DIRECTORY\n" \
3590      "\nOptions:" \
3591      "\n        -t      Print what would be run, but don't actually run anything" \
3592      "\n        -a ARG  Pass ARG as argument for every program" \
3593      "\n        -u MASK Set the umask to MASK before running every program" \
3594         IF_FEATURE_RUN_PARTS_FANCY( \
3595      "\n        -l      Print names of all matching files even if they are not executable" \
3596         )
3597
3598 #define run_parts_example_usage \
3599        "$ run-parts -a start /etc/init.d\n" \
3600        "$ run-parts -a stop=now /etc/init.d\n\n" \
3601        "Let's assume you have a script foo/dosomething:\n" \
3602        "#!/bin/sh\n" \
3603        "for i in $*; do eval $i; done; unset i\n" \
3604        "case \"$1\" in\n" \
3605        "start*) echo starting something;;\n" \
3606        "stop*) set -x; shutdown -h $stop;;\n" \
3607        "esac\n\n" \
3608        "Running this yields:\n" \
3609        "$run-parts -a stop=+4m foo/\n" \
3610        "+ shutdown -h +4m"
3611
3612 #define runlevel_trivial_usage \
3613        "[FILE]"
3614 #define runlevel_full_usage "\n\n" \
3615        "Find the current and previous system runlevel\n" \
3616        "\n" \
3617        "If no utmp FILE exists or if no runlevel record can be found,\n" \
3618        "print \"unknown\""
3619 #define runlevel_example_usage \
3620        "$ runlevel /var/run/utmp\n" \
3621        "N 2"
3622
3623 #define runsv_trivial_usage \
3624        "DIR"
3625 #define runsv_full_usage "\n\n" \
3626        "Start and monitor a service and optionally an appendant log service"
3627
3628 #define runsvdir_trivial_usage \
3629        "[-P] [-s SCRIPT] DIR"
3630 #define runsvdir_full_usage "\n\n" \
3631        "Start a runsv process for each subdirectory. If it exits, restart it.\n" \
3632      "\n        -P              Put each runsv in a new session" \
3633      "\n        -s SCRIPT       Run SCRIPT <signo> after signal is processed" \
3634
3635 #define rx_trivial_usage \
3636        "FILE"
3637 #define rx_full_usage "\n\n" \
3638        "Receive a file using the xmodem protocol"
3639 #define rx_example_usage \
3640        "$ rx /tmp/foo\n"
3641
3642 #define script_trivial_usage \
3643        "[-afq" IF_SCRIPTREPLAY("t") "] [-c PROG] [OUTFILE]"
3644 #define script_full_usage "\n\n" \
3645        "Options:" \
3646      "\n        -a      Append output" \
3647      "\n        -c PROG Run PROG, not shell" \
3648      "\n        -f      Flush output after each write" \
3649      "\n        -q      Quiet" \
3650         IF_SCRIPTREPLAY( \
3651      "\n        -t      Send timing to stderr" \
3652         )
3653
3654 #define sed_trivial_usage \
3655        "[-efinr] SED_CMD [FILE]..."
3656 #define sed_full_usage "\n\n" \
3657        "Options:" \
3658      "\n        -e CMD  Add CMD to sed commands to be executed" \
3659      "\n        -f FILE Add FILE contents to sed commands to be executed" \
3660      "\n        -i      Edit files in-place (else sends result to stdout)" \
3661      "\n        -n      Suppress automatic printing of pattern space" \
3662      "\n        -r      Use extended regex syntax" \
3663      "\n" \
3664      "\nIf no -e or -f, the first non-option argument is the sed command string." \
3665      "\nRemaining arguments are input files (stdin if none)."
3666
3667 #define sed_example_usage \
3668        "$ echo \"foo\" | sed -e 's/f[a-zA-Z]o/bar/g'\n" \
3669        "bar\n"
3670
3671 #define selinuxenabled_trivial_usage NOUSAGE_STR
3672 #define selinuxenabled_full_usage ""
3673
3674 #define sendmail_trivial_usage \
3675        "[OPTIONS] [RECIPIENT_EMAIL]..."
3676 #define sendmail_full_usage "\n\n" \
3677        "Read email from stdin and send it\n" \
3678      "\nStandard options:" \
3679      "\n        -t              Read additional recipients from message body" \
3680      "\n        -f sender       Sender (required)" \
3681      "\n        -o options      Various options. -oi implied, others are ignored" \
3682      "\n        -i              -oi synonym. implied and ignored" \
3683      "\n" \
3684      "\nBusybox specific options:" \
3685      "\n        -w seconds      Network timeout" \
3686      "\n        -H 'PROG ARGS'  Run connection helper" \
3687      "\n                        Examples:" \
3688      "\n                        -H 'exec openssl s_client -quiet -tls1 -starttls smtp" \
3689      "\n                                -connect smtp.gmail.com:25' <email.txt" \
3690      "\n                                [4<username_and_passwd.txt | -au<username> -ap<password>]" \
3691      "\n                        -H 'exec openssl s_client -quiet -tls1" \
3692      "\n                                -connect smtp.gmail.com:465' <email.txt" \
3693      "\n                                [4<username_and_passwd.txt | -au<username> -ap<password>]" \
3694      "\n        -S server[:port] Server" \
3695      "\n        -au<username>   Username for AUTH LOGIN" \
3696      "\n        -ap<password>   Password for AUTH LOGIN" \
3697      "\n        -am<method>     Authentication method. Ignored. LOGIN is implied" \
3698      "\n" \
3699      "\nOther options are silently ignored; -oi -t is implied" \
3700         IF_MAKEMIME( \
3701      "\nUse makemime applet to create message with attachments" \
3702         )
3703
3704 #define seq_trivial_usage \
3705        "[-w] [-s SEP] [FIRST [INC]] LAST"
3706 #define seq_full_usage "\n\n" \
3707        "Print numbers from FIRST to LAST, in steps of INC.\n" \
3708        "FIRST, INC default to 1.\n" \
3709      "\nOptions:" \
3710      "\n        -w      Pad to last with leading zeros" \
3711      "\n        -s SEP  String separator" \
3712
3713 #define sestatus_trivial_usage \
3714        "[-vb]"
3715 #define sestatus_full_usage "\n\n" \
3716        "        -v      Verbose" \
3717      "\n        -b      Display current state of booleans" \
3718
3719 #define setconsole_trivial_usage \
3720        "[-r" IF_FEATURE_SETCONSOLE_LONG_OPTIONS("|--reset") "] [DEVICE]"
3721 #define setconsole_full_usage "\n\n" \
3722        "Redirect system console output to DEVICE (default: /dev/tty)\n" \
3723      "\nOptions:" \
3724      "\n        -r      Reset output to /dev/console" \
3725
3726 #define setenforce_trivial_usage \
3727        "[Enforcing | Permissive | 1 | 0]"
3728 #define setenforce_full_usage ""
3729
3730 #define setfiles_trivial_usage \
3731        "[-dnpqsvW] [-e DIR]... [-o FILE] [-r alt_root_path]" \
3732         IF_FEATURE_SETFILES_CHECK_OPTION( \
3733        " [-c policyfile] spec_file" \
3734         ) \
3735        " pathname"
3736 #define setfiles_full_usage "\n\n" \
3737        "Reset file contexts under pathname according to spec_file\n" \
3738         IF_FEATURE_SETFILES_CHECK_OPTION( \
3739      "\n        -c FILE Check the validity of the contexts against the specified binary policy" \
3740         ) \
3741      "\n        -d      Show which specification matched each file" \
3742      "\n        -l      Log changes in file labels to syslog" \
3743      "\n        -n      Don't change any file labels" \
3744      "\n        -q      Suppress warnings" \
3745      "\n        -r DIR  Use an alternate root path" \
3746      "\n        -e DIR  Exclude DIR" \
3747      "\n        -F      Force reset of context to match file_context for customizable files" \
3748      "\n        -o FILE Save list of files with incorrect context" \
3749      "\n        -s      Take a list of files from stdin (instead of command line)" \
3750      "\n        -v      Show changes in file labels, if type or role are changing" \
3751      "\n        -vv     Show changes in file labels, if type, role, or user are changing" \
3752      "\n        -W      Display warnings about entries that had no matching files" \
3753
3754 #define setfont_trivial_usage \
3755        "FONT [-m MAPFILE] [-C TTY]"
3756 #define setfont_full_usage "\n\n" \
3757        "Load a console font\n" \
3758      "\nOptions:" \
3759      "\n        -m MAPFILE      Load console screen map" \
3760      "\n        -C TTY          Affect TTY instead of /dev/tty" \
3761
3762 #define setfont_example_usage \
3763        "$ setfont -m koi8-r /etc/i18n/fontname\n"
3764
3765 #define setkeycodes_trivial_usage \
3766        "SCANCODE KEYCODE..."
3767 #define setkeycodes_full_usage "\n\n" \
3768        "Set entries into the kernel's scancode-to-keycode map,\n" \
3769        "allowing unusual keyboards to generate usable keycodes.\n\n" \
3770        "SCANCODE may be either xx or e0xx (hexadecimal),\n" \
3771        "and KEYCODE is given in decimal." \
3772
3773 #define setkeycodes_example_usage \
3774        "$ setkeycodes e030 127\n"
3775
3776 #define setlogcons_trivial_usage \
3777        "N"
3778 #define setlogcons_full_usage "\n\n" \
3779        "Redirect the kernel output to console N (0 for current)"
3780
3781 #define setsebool_trivial_usage \
3782        "boolean value"
3783
3784 #define setsebool_full_usage "\n\n" \
3785        "Change boolean setting"
3786
3787 #define setsid_trivial_usage \
3788        "PROG ARGS"
3789 #define setsid_full_usage "\n\n" \
3790        "Run PROG in a new session. PROG will have no controlling terminal\n" \
3791        "and will not be affected by keyboard signals (Ctrl-C etc).\n" \
3792        "See setsid(2) for details." \
3793
3794 #define last_trivial_usage \
3795        ""IF_FEATURE_LAST_FANCY("[-HW] [-f FILE]")
3796 #define last_full_usage "\n\n" \
3797        "Show listing of the last users that logged into the system" \
3798         IF_FEATURE_LAST_FANCY( "\n" \
3799      "\nOptions:" \
3800 /*   "\n        -H      Show header line" */ \
3801      "\n        -W      Display with no host column truncation" \
3802      "\n        -f FILE Read from FILE instead of /var/log/wtmp" \
3803         )
3804
3805 #define showkey_trivial_usage \
3806        "[-a | -k | -s]"
3807 #define showkey_full_usage "\n\n" \
3808        "Show keys pressed\n" \
3809      "\nOptions:" \
3810      "\n        -a      Display decimal/octal/hex values of the keys" \
3811      "\n        -k      Display interpreted keycodes (default)" \
3812      "\n        -s      Display raw scan-codes" \
3813
3814 #define slattach_trivial_usage \
3815        "[-cehmLF] [-s SPEED] [-p PROTOCOL] DEVICE"
3816 #define slattach_full_usage "\n\n" \
3817        "Attach network interface(s) to serial line(s)\n" \
3818      "\nOptions:" \
3819      "\n        -p PROT Set protocol (slip, cslip, slip6, clisp6 or adaptive)" \
3820      "\n        -s SPD  Set line speed" \
3821      "\n        -e      Exit after initializing device" \
3822      "\n        -h      Exit when the carrier is lost" \
3823      "\n        -c PROG Run PROG when the line is hung up" \
3824      "\n        -m      Do NOT initialize the line in raw 8 bits mode" \
3825      "\n        -L      Enable 3-wire operation" \
3826      "\n        -F      Disable RTS/CTS flow control" \
3827
3828 #define sleep_trivial_usage \
3829         IF_FEATURE_FANCY_SLEEP("[") "N" IF_FEATURE_FANCY_SLEEP("]...")
3830 #define sleep_full_usage "\n\n" \
3831         IF_NOT_FEATURE_FANCY_SLEEP("Pause for N seconds") \
3832         IF_FEATURE_FANCY_SLEEP( \
3833        "Pause for a time equal to the total of the args given, where each arg can\n" \
3834        "have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays")
3835 #define sleep_example_usage \
3836        "$ sleep 2\n" \
3837        "[2 second delay results]\n" \
3838         IF_FEATURE_FANCY_SLEEP( \
3839        "$ sleep 1d 3h 22m 8s\n" \
3840        "[98528 second delay results]\n")
3841
3842 #define sort_trivial_usage \
3843        "[-nru" \
3844         IF_FEATURE_SORT_BIG("gMcszbdfimSTokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR") \
3845        "] [FILE]..."
3846 #define sort_full_usage "\n\n" \
3847        "Sort lines of text\n" \
3848      "\nOptions:" \
3849         IF_FEATURE_SORT_BIG( \
3850      "\n        -b      Ignore leading blanks" \
3851      "\n        -c      Check whether input is sorted" \
3852      "\n        -d      Dictionary order (blank or alphanumeric only)" \
3853      "\n        -f      Ignore case" \
3854      "\n        -g      General numerical sort" \
3855      "\n        -i      Ignore unprintable characters" \
3856      "\n        -k      Sort key" \
3857      "\n        -M      Sort month" \
3858         ) \
3859      "\n        -n      Sort numbers" \
3860         IF_FEATURE_SORT_BIG( \
3861      "\n        -o      Output to file" \
3862      "\n        -k      Sort by key" \
3863      "\n        -t CHAR Key separator" \
3864         ) \
3865      "\n        -r      Reverse sort order" \
3866         IF_FEATURE_SORT_BIG( \
3867      "\n        -s      Stable (don't sort ties alphabetically)" \
3868         ) \
3869      "\n        -u      Suppress duplicate lines" \
3870         IF_FEATURE_SORT_BIG( \
3871      "\n        -z      Lines are terminated by NUL, not newline" \
3872      "\n        -mST    Ignored for GNU compatibility") \
3873
3874 #define sort_example_usage \
3875        "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \
3876        "a\n" \
3877        "b\n" \
3878        "c\n" \
3879        "d\n" \
3880        "e\n" \
3881        "f\n" \
3882         IF_FEATURE_SORT_BIG( \
3883                 "$ echo -e \"c 3\\nb 2\\nd 2\" | $SORT -k 2,2n -k 1,1r\n" \
3884                 "d 2\n" \
3885                 "b 2\n" \
3886                 "c 3\n" \
3887         ) \
3888        ""
3889
3890 #define split_trivial_usage \
3891        "[OPTIONS] [INPUT [PREFIX]]"
3892 #define split_full_usage "\n\n" \
3893        "Options:" \
3894      "\n        -b n[k|m]       Split by bytes" \
3895      "\n        -l n            Split by lines" \
3896      "\n        -a n            Use n letters as suffix" \
3897
3898 #define split_example_usage \
3899        "$ split TODO foo\n" \
3900        "$ cat TODO | split -a 2 -l 2 TODO_\n"
3901
3902 #define start_stop_daemon_trivial_usage \
3903        "[OPTIONS] [-S|-K] ... [-- ARGS...]"
3904 #define start_stop_daemon_full_usage "\n\n" \
3905        "Search for matching processes, and then\n" \
3906        "-K: stop all matching processes.\n" \
3907        "-S: start a process unless a matching process is found.\n" \
3908         IF_FEATURE_START_STOP_DAEMON_LONG_OPTIONS( \
3909      "\nProcess matching:" \
3910      "\n        -u,--user USERNAME|UID  Match only this user's processes" \
3911      "\n        -n,--name NAME          Match processes with NAME" \
3912      "\n                                in comm field in /proc/PID/stat" \
3913      "\n        -x,--exec EXECUTABLE    Match processes with this command" \
3914      "\n                                in /proc/PID/cmdline" \
3915      "\n        -p,--pidfile FILE       Match a process with PID from the file" \
3916      "\n        All specified conditions must match" \
3917      "\n-S only:" \
3918      "\n        -x,--exec EXECUTABLE    Program to run" \
3919      "\n        -a,--startas NAME       Zeroth argument" \
3920      "\n        -b,--background         Background" \
3921         IF_FEATURE_START_STOP_DAEMON_FANCY( \
3922      "\n        -N,--nicelevel N        Change nice level" \
3923         ) \
3924      "\n        -c,--chuid USER[:[GRP]] Change to user/group" \
3925      "\n        -m,--make-pidfile       Write PID to the pidfile specified by -p" \
3926      "\n-K only:" \
3927      "\n        -s,--signal SIG         Signal to send" \
3928      "\n        -t,--test               Match only, exit with 0 if a process is found" \
3929      "\nOther:" \
3930         IF_FEATURE_START_STOP_DAEMON_FANCY( \
3931      "\n        -o,--oknodo             Exit with status 0 if nothing is done" \
3932      "\n        -v,--verbose            Verbose" \
3933         ) \
3934      "\n        -q,--quiet              Quiet" \
3935         ) \
3936         IF_NOT_FEATURE_START_STOP_DAEMON_LONG_OPTIONS( \
3937      "\nProcess matching:" \
3938      "\n        -u USERNAME|UID Match only this user's processes" \
3939      "\n        -n NAME         Match processes with NAME" \
3940      "\n                        in comm field in /proc/PID/stat" \
3941      "\n        -x EXECUTABLE   Match processes with this command" \
3942      "\n                        command in /proc/PID/cmdline" \
3943      "\n        -p FILE         Match a process with PID from the file" \
3944      "\n        All specified conditions must match" \
3945      "\n-S only:" \
3946      "\n        -x EXECUTABLE   Program to run" \
3947      "\n        -a NAME         Zeroth argument" \
3948      "\n        -b              Background" \
3949         IF_FEATURE_START_STOP_DAEMON_FANCY( \
3950      "\n        -N N            Change nice level" \
3951         ) \
3952      "\n        -c USER[:[GRP]] Change to user/group" \
3953      "\n        -m              Write PID to the pidfile specified by -p" \
3954      "\n-K only:" \
3955      "\n        -s SIG          Signal to send" \
3956      "\n        -t              Match only, exit with 0 if a process is found" \
3957      "\nOther:" \
3958         IF_FEATURE_START_STOP_DAEMON_FANCY( \
3959      "\n        -o              Exit with status 0 if nothing is done" \
3960      "\n        -v              Verbose" \
3961         ) \
3962      "\n        -q              Quiet" \
3963         ) \
3964
3965 #define stat_trivial_usage \
3966        "[OPTIONS] FILE..."
3967 #define stat_full_usage "\n\n" \
3968        "Display file (default) or filesystem status\n" \
3969      "\nOptions:" \
3970         IF_FEATURE_STAT_FORMAT( \
3971      "\n        -c fmt  Use the specified format" \
3972         ) \
3973      "\n        -f      Display filesystem status" \
3974      "\n        -L      Follow links" \
3975      "\n        -t      Display info in terse form" \
3976         IF_SELINUX( \
3977      "\n        -Z      Print security context" \
3978         ) \
3979         IF_FEATURE_STAT_FORMAT( \
3980        "\n\nValid format sequences for files:\n" \
3981        " %a     Access rights in octal\n" \
3982        " %A     Access rights in human readable form\n" \
3983        " %b     Number of blocks allocated (see %B)\n" \
3984        " %B     The size in bytes of each block reported by %b\n" \
3985        " %d     Device number in decimal\n" \
3986        " %D     Device number in hex\n" \
3987        " %f     Raw mode in hex\n" \
3988        " %F     File type\n" \
3989        " %g     Group ID of owner\n" \
3990        " %G     Group name of owner\n" \
3991        " %h     Number of hard links\n" \
3992        " %i     Inode number\n" \
3993        " %n     File name\n" \
3994        " %N     File name, with -> TARGET if symlink\n" \
3995        " %o     I/O block size\n" \
3996        " %s     Total size, in bytes\n" \
3997        " %t     Major device type in hex\n" \
3998        " %T     Minor device type in hex\n" \
3999        " %u     User ID of owner\n" \
4000        " %U     User name of owner\n" \
4001        " %x     Time of last access\n" \
4002        " %X     Time of last access as seconds since Epoch\n" \
4003        " %y     Time of last modification\n" \
4004        " %Y     Time of last modification as seconds since Epoch\n" \
4005        " %z     Time of last change\n" \
4006        " %Z     Time of last change as seconds since Epoch\n" \
4007        "\nValid format sequences for file systems:\n" \
4008        " %a     Free blocks available to non-superuser\n" \
4009        " %b     Total data blocks in file system\n" \
4010        " %c     Total file nodes in file system\n" \
4011        " %d     Free file nodes in file system\n" \
4012        " %f     Free blocks in file system\n" \
4013         IF_SELINUX( \
4014        " %C     Security context in selinux\n" \
4015         ) \
4016        " %i     File System ID in hex\n" \
4017        " %l     Maximum length of filenames\n" \
4018        " %n     File name\n" \
4019        " %s     Block size (for faster transfer)\n" \
4020        " %S     Fundamental block size (for block counts)\n" \
4021        " %t     Type in hex\n" \
4022        " %T     Type in human readable form" \
4023         ) \
4024
4025 #define strings_trivial_usage \
4026        "[-afo] [-n LEN] [FILE]..."
4027 #define strings_full_usage "\n\n" \
4028        "Display printable strings in a binary file\n" \
4029      "\nOptions:" \
4030      "\n        -a      Scan whole file (default)" \
4031      "\n        -f      Precede strings with filenames" \
4032      "\n        -n LEN  At least LEN characters form a string (default 4)" \
4033      "\n        -o      Precede strings with decimal offsets" \
4034
4035 #define stty_trivial_usage \
4036        "[-a|g] [-F DEVICE] [SETTING]..."
4037 #define stty_full_usage "\n\n" \
4038        "Without arguments, prints baud rate, line discipline,\n" \
4039        "and deviations from stty sane\n" \
4040      "\nOptions:" \
4041      "\n        -F DEVICE       Open device instead of stdin" \
4042      "\n        -a              Print all current settings in human-readable form" \
4043      "\n        -g              Print in stty-readable form" \
4044      "\n        [SETTING]       See manpage" \
4045
4046 #define su_trivial_usage \
4047        "[OPTIONS] [-] [USERNAME]"
4048 #define su_full_usage "\n\n" \
4049        "Change user id or become root\n" \
4050      "\nOptions:" \
4051      "\n        -p,-m   Preserve environment" \
4052      "\n        -c CMD  Command to pass to 'sh -c'" \
4053      "\n        -s SH   Shell to use instead of default shell" \
4054
4055 #define sulogin_trivial_usage \
4056        "[-t N] [TTY]"
4057 #define sulogin_full_usage "\n\n" \
4058        "Single user login\n" \
4059      "\nOptions:" \
4060      "\n        -t N    Timeout" \
4061
4062 #define sum_trivial_usage \
4063        "[-rs] [FILE]..."
4064 #define sum_full_usage "\n\n" \
4065        "Checksum and count the blocks in a file\n" \
4066      "\nOptions:" \
4067      "\n        -r      Use BSD sum algorithm (1K blocks)" \
4068      "\n        -s      Use System V sum algorithm (512byte blocks)" \
4069
4070 #define sv_trivial_usage \
4071        "[-v] [-w SEC] CMD SERVICE_DIR..."
4072 #define sv_full_usage "\n\n" \
4073        "Control services monitored by runsv supervisor.\n" \
4074        "Commands (only first character is enough):\n" \
4075        "\n" \
4076        "status: query service status\n" \
4077        "up: if service isn't running, start it. If service stops, restart it\n" \
4078        "once: like 'up', but if service stops, don't restart it\n" \
4079        "down: send TERM and CONT signals. If ./run exits, start ./finish\n" \
4080        "        if it exists. After it stops, don't restart service\n" \
4081        "exit: send TERM and CONT signals to service and log service. If they exit,\n" \
4082        "        runsv exits too\n" \
4083        "pause, cont, hup, alarm, interrupt, quit, 1, 2, term, kill: send\n" \
4084        "STOP, CONT, HUP, ALRM, INT, QUIT, USR1, USR2, TERM, KILL signal to service" \
4085
4086 #define svlogd_trivial_usage \
4087        "[-ttv] [-r C] [-R CHARS] [-l MATCHLEN] [-b BUFLEN] DIR..."
4088 #define svlogd_full_usage "\n\n" \
4089        "Continuously read log data from stdin, optionally\n" \
4090        "filter log messages, and write the data to one or more automatically\n" \
4091        "rotated logs" \
4092
4093 #define swapoff_trivial_usage \
4094        "[-a] [DEVICE]"
4095 #define swapoff_full_usage "\n\n" \
4096        "Stop swapping on DEVICE\n" \
4097      "\nOptions:" \
4098      "\n        -a      Stop swapping on all swap devices" \
4099
4100 #define swapon_trivial_usage \
4101        "[-a]" IF_FEATURE_SWAPON_PRI(" [-p PRI]") " [DEVICE]"
4102 #define swapon_full_usage "\n\n" \
4103        "Start swapping on DEVICE\n" \
4104      "\nOptions:" \
4105      "\n        -a      Start swapping on all swap devices" \
4106         IF_FEATURE_SWAPON_PRI( \
4107      "\n        -p PRI  Set swap device priority" \
4108         ) \
4109
4110 #define switch_root_trivial_usage \
4111        "[-c /dev/console] NEW_ROOT NEW_INIT [ARGS]"
4112 #define switch_root_full_usage "\n\n" \
4113        "Free initramfs and switch to another root fs:\n" \
4114        "chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,\n" \
4115        "execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.\n" \
4116      "\nOptions:" \
4117      "\n        -c DEV  Reopen stdio to DEV after switch" \
4118
4119 #define sync_trivial_usage \
4120        ""
4121 #define sync_full_usage "\n\n" \
4122        "Write all buffered blocks to disk"
4123
4124 #define fsync_trivial_usage \
4125        "[OPTIONS] FILE..."
4126 #define fsync_full_usage "\n\n" \
4127        "Write files' buffered blocks to disk\n" \
4128      "\nOptions:" \
4129      "\n        -d      Avoid syncing metadata"
4130
4131 #define sysctl_trivial_usage \
4132        "[OPTIONS] [VALUE]..."
4133 #define sysctl_full_usage "\n\n" \
4134        "Configure kernel parameters at runtime\n" \
4135      "\nOptions:" \
4136      "\n        -n      Don't print key names" \
4137      "\n        -e      Don't warn about unknown keys" \
4138      "\n        -w      Change sysctl setting" \
4139      "\n        -p FILE Load sysctl settings from FILE (default /etc/sysctl.conf)" \
4140      "\n        -a      Display all values" \
4141      "\n        -A      Display all values in table form" \
4142
4143 #define sysctl_example_usage \
4144        "sysctl [-n] [-e] variable...\n" \
4145        "sysctl [-n] [-e] -w variable=value...\n" \
4146        "sysctl [-n] [-e] -a\n" \
4147        "sysctl [-n] [-e] -p file        (default /etc/sysctl.conf)\n" \
4148        "sysctl [-n] [-e] -A\n"
4149
4150 #define syslogd_trivial_usage \
4151        "[OPTIONS]"
4152 #define syslogd_full_usage "\n\n" \
4153        "System logging utility.\n" \
4154        "This version of syslogd ignores /etc/syslog.conf\n" \
4155      "\nOptions:" \
4156      "\n        -n              Run in foreground" \
4157      "\n        -O FILE         Log to given file (default:/var/log/messages)" \
4158      "\n        -l N            Set local log level" \
4159      "\n        -S              Smaller logging output" \
4160         IF_FEATURE_ROTATE_LOGFILE( \
4161      "\n        -s SIZE         Max size (KB) before rotate (default:200KB, 0=off)" \
4162      "\n        -b N            N rotated logs to keep (default:1, max=99, 0=purge)") \
4163         IF_FEATURE_REMOTE_LOG( \
4164      "\n        -R HOST[:PORT]  Log to IP or hostname on PORT (default PORT=514/UDP)" \
4165      "\n        -L              Log locally and via network (default is network only if -R)") \
4166         IF_FEATURE_SYSLOGD_DUP( \
4167      "\n        -D              Drop duplicates") \
4168         IF_FEATURE_IPC_SYSLOG( \
4169      "\n        -C[size(KiB)]   Log to shared mem buffer (read it using logread)") \
4170         /* NB: -Csize shouldn't have space (because size is optional) */
4171 /*   "\n        -m MIN          Minutes between MARK lines (default:20, 0=off)" */
4172
4173 #define syslogd_example_usage \
4174        "$ syslogd -R masterlog:514\n" \
4175        "$ syslogd -R 192.168.1.1:601\n"
4176
4177 #define tac_trivial_usage \
4178         "[FILE]..."
4179 #define tac_full_usage "\n\n" \
4180         "Concatenate FILEs and print them in reverse"
4181
4182 #define taskset_trivial_usage \
4183        "[-p] [MASK] [PID | PROG ARGS]"
4184 #define taskset_full_usage "\n\n" \
4185        "Set or get CPU affinity\n" \
4186      "\nOptions:" \
4187      "\n        -p      Operate on an existing PID" \
4188
4189 #define taskset_example_usage \
4190        "$ taskset 0x7 ./dgemm_test&\n" \
4191        "$ taskset -p 0x1 $!\n" \
4192        "pid 4790's current affinity mask: 7\n" \
4193        "pid 4790's new affinity mask: 1\n" \
4194        "$ taskset 0x7 /bin/sh -c './taskset -p 0x1 $$'\n" \
4195        "pid 6671's current affinity mask: 1\n" \
4196        "pid 6671's new affinity mask: 1\n" \
4197        "$ taskset -p 1\n" \
4198        "pid 1's current affinity mask: 3\n"
4199
4200 #define tee_trivial_usage \
4201        "[OPTIONS] [FILE]..."
4202 #define tee_full_usage "\n\n" \
4203        "Copy stdin to each FILE, and also to stdout\n" \
4204      "\nOptions:" \
4205      "\n        -a      Append to the given FILEs, don't overwrite" \
4206      "\n        -i      Ignore interrupt signals (SIGINT)" \
4207
4208 #define tee_example_usage \
4209        "$ echo \"Hello\" | tee /tmp/foo\n" \
4210        "$ cat /tmp/foo\n" \
4211        "Hello\n"
4212
4213 #if ENABLE_FEATURE_TELNET_AUTOLOGIN
4214 #define telnet_trivial_usage \
4215        "[-a] [-l USER] HOST [PORT]"
4216 #define telnet_full_usage "\n\n" \
4217        "Connect to telnet server\n" \
4218      "\nOptions:" \
4219      "\n        -a      Automatic login with $USER variable" \
4220      "\n        -l USER Automatic login as USER" \
4221
4222 #else
4223 #define telnet_trivial_usage \
4224        "HOST [PORT]"
4225 #define telnet_full_usage "\n\n" \
4226        "Connect to telnet server"
4227 #endif
4228
4229 #define telnetd_trivial_usage \
4230        "[OPTIONS]"
4231 #define telnetd_full_usage "\n\n" \
4232        "Handle incoming telnet connections" \
4233         IF_NOT_FEATURE_TELNETD_STANDALONE(" via inetd") "\n" \
4234      "\nOptions:" \
4235      "\n        -l LOGIN        Exec LOGIN on connect" \
4236      "\n        -f ISSUE_FILE   Display ISSUE_FILE instead of /etc/issue" \
4237      "\n        -K              Close connection as soon as login exits" \
4238      "\n                        (normally wait until all programs close slave pty)" \
4239         IF_FEATURE_TELNETD_STANDALONE( \
4240      "\n        -p PORT         Port to listen on" \
4241      "\n        -b ADDR[:PORT]  Address to bind to" \
4242      "\n        -F              Run in foreground" \
4243      "\n        -i              Inetd mode" \
4244         IF_FEATURE_TELNETD_INETD_WAIT( \
4245      "\n        -w SEC          Inetd 'wait' mode, linger time SEC" \
4246      "\n        -S              Log to syslog (implied by -i or without -F and -w)" \
4247         ) \
4248         )
4249
4250 /* "test --help" does not print help (POSIX compat), only "[ --help" does.
4251  * We display "<applet> EXPRESSION ]" here (not "<applet> EXPRESSION")
4252  * Unfortunately, it screws up generated BusyBox.html. TODO. */
4253 #define test_trivial_usage \
4254        "EXPRESSION ]"
4255 #define test_full_usage "\n\n" \
4256        "Check file types, compare values etc. Return a 0/1 exit code\n" \
4257        "depending on logical value of EXPRESSION"
4258 #define test_example_usage \
4259        "$ test 1 -eq 2\n" \
4260        "$ echo $?\n" \
4261        "1\n" \
4262        "$ test 1 -eq 1\n" \
4263        "$ echo $?\n" \
4264        "0\n" \
4265        "$ [ -d /etc ]\n" \
4266        "$ echo $?\n" \
4267        "0\n" \
4268        "$ [ -d /junk ]\n" \
4269        "$ echo $?\n" \
4270        "1\n"
4271
4272 #define tc_trivial_usage \
4273         /*"[OPTIONS] "*/"OBJECT CMD [dev STRING]"
4274 #define tc_full_usage "\n\n" \
4275         "OBJECT: {qdisc|class|filter}\n" \
4276         "CMD: {add|del|change|replace|show}\n" \
4277         "\n" \
4278         "qdisc [ handle QHANDLE ] [ root |"IF_FEATURE_TC_INGRESS(" ingress |")" parent CLASSID ]\n" \
4279         /* "[ estimator INTERVAL TIME_CONSTANT ]\n" */ \
4280         "       [ [ QDISC_KIND ] [ help | OPTIONS ] ]\n" \
4281         "       QDISC_KIND := { [p|b]fifo | tbf | prio | cbq | red | etc. }\n" \
4282         "qdisc show [ dev STRING ]"IF_FEATURE_TC_INGRESS(" [ingress]")"\n" \
4283         "class [ classid CLASSID ] [ root | parent CLASSID ]\n" \
4284         "       [ [ QDISC_KIND ] [ help | OPTIONS ] ]\n" \
4285         "class show [ dev STRING ] [ root | parent CLASSID ]\n" \
4286         "filter [ pref PRIO ] [ protocol PROTO ]\n" \
4287         /* "\t[ estimator INTERVAL TIME_CONSTANT ]\n" */ \
4288         "       [ root | classid CLASSID ] [ handle FILTERID ]\n" \
4289         "       [ [ FILTER_TYPE ] [ help | OPTIONS ] ]\n" \
4290         "filter show [ dev STRING ] [ root | parent CLASSID ]"
4291
4292 #define tcpsvd_trivial_usage \
4293        "[-hEv] [-c N] [-C N[:MSG]] [-b N] [-u USER] [-l NAME] IP PORT PROG"
4294 /* with not-implemented options: */
4295 /*     "[-hpEvv] [-c N] [-C N[:MSG]] [-b N] [-u USER] [-l NAME] [-i DIR|-x CDB] [-t SEC] IP PORT PROG" */
4296 #define tcpsvd_full_usage "\n\n" \
4297        "Create TCP socket, bind to IP:PORT and listen\n" \
4298        "for incoming connection. Run PROG for each connection.\n" \
4299      "\n        IP              IP to listen on. '0' = all" \
4300      "\n        PORT            Port to listen on" \
4301      "\n        PROG ARGS       Program to run" \
4302      "\n        -l NAME         Local hostname (else looks up local hostname in DNS)" \
4303      "\n        -u USER[:GRP]   Change to user/group after bind" \
4304      "\n        -c N            Handle up to N connections simultaneously" \
4305      "\n        -b N            Allow a backlog of approximately N TCP SYNs" \
4306      "\n        -C N[:MSG]      Allow only up to N connections from the same IP" \
4307      "\n                        New connections from this IP address are closed" \
4308      "\n                        immediately. MSG is written to the peer before close" \
4309      "\n        -h              Look up peer's hostname" \
4310      "\n        -E              Don't set up environment variables" \
4311      "\n        -v              Verbose" \
4312
4313 #define udpsvd_trivial_usage \
4314        "[-hEv] [-c N] [-u USER] [-l NAME] IP PORT PROG"
4315 #define udpsvd_full_usage "\n\n" \
4316        "Create UDP socket, bind to IP:PORT and wait\n" \
4317        "for incoming packets. Run PROG for each packet,\n" \
4318        "redirecting all further packets with same peer ip:port to it.\n" \
4319      "\n        IP              IP to listen on. '0' = all" \
4320      "\n        PORT            Port to listen on" \
4321      "\n        PROG ARGS       Program to run" \
4322      "\n        -l NAME         Local hostname (else looks up local hostname in DNS)" \
4323      "\n        -u USER[:GRP]   Change to user/group after bind" \
4324      "\n        -c N            Handle up to N connections simultaneously" \
4325      "\n        -h              Look up peer's hostname" \
4326      "\n        -E              Don't set up environment variables" \
4327      "\n        -v              Verbose" \
4328
4329 #define tftp_trivial_usage \
4330        "[OPTIONS] HOST [PORT]"
4331 #define tftp_full_usage "\n\n" \
4332        "Transfer a file from/to tftp server\n" \
4333      "\nOptions:" \
4334      "\n        -l FILE Local FILE" \
4335      "\n        -r FILE Remote FILE" \
4336         IF_FEATURE_TFTP_GET( \
4337      "\n        -g      Get file" \
4338         ) \
4339         IF_FEATURE_TFTP_PUT( \
4340      "\n        -p      Put file" \
4341         ) \
4342         IF_FEATURE_TFTP_BLOCKSIZE( \
4343      "\n        -b SIZE Transfer blocks of SIZE octets" \
4344         )
4345
4346 #define tftpd_trivial_usage \
4347        "[-cr] [-u USER] [DIR]"
4348 #define tftpd_full_usage "\n\n" \
4349        "Transfer a file on tftp client's request\n" \
4350        "\n" \
4351        "tftpd should be used as an inetd service.\n" \
4352        "tftpd's line for inetd.conf:\n" \
4353        "        69 dgram udp nowait root tftpd tftpd /files/to/serve\n" \
4354        "It also can be ran from udpsvd:\n" \
4355        "        udpsvd -vE 0.0.0.0 69 tftpd /files/to/serve\n" \
4356      "\nOptions:" \
4357      "\n        -r      Prohibit upload" \
4358      "\n        -c      Allow file creation via upload" \
4359      "\n        -u      Access files as USER" \
4360
4361 #define time_trivial_usage \
4362        "[OPTIONS] PROG ARGS"
4363 #define time_full_usage "\n\n" \
4364        "Run PROG, display resource usage when it exits\n" \
4365      "\nOptions:" \
4366      "\n        -v      Verbose" \
4367
4368 #define timeout_trivial_usage \
4369        "[-t SECS] [-s SIG] PROG ARGS"
4370 #define timeout_full_usage "\n\n" \
4371        "Runs PROG. Sends SIG to it if it is not gone in SECS seconds.\n" \
4372        "Defaults: SECS: 10, SIG: TERM." \
4373
4374 #define top_trivial_usage \
4375        "[-b] [-nCOUNT] [-dSECONDS]" IF_FEATURE_TOPMEM(" [-m]")
4376 #define top_full_usage "\n\n" \
4377        "Provide a view of process activity in real time.\n" \
4378        "Read the status of all processes from /proc each SECONDS\n" \
4379        "and display a screenful of them." \
4380 //TODO: add options and keyboard commands
4381
4382 #define touch_trivial_usage \
4383        "[-c] [-d DATE] FILE [FILE]..."
4384 #define touch_full_usage "\n\n" \
4385        "Update the last-modified date on the given FILE[s]\n" \
4386      "\nOptions:" \
4387      "\n        -c      Don't create files" \
4388      "\n        -d DT   Date/time to use" \
4389
4390 #define touch_example_usage \
4391        "$ ls -l /tmp/foo\n" \
4392        "/bin/ls: /tmp/foo: No such file or directory\n" \
4393        "$ touch /tmp/foo\n" \
4394        "$ ls -l /tmp/foo\n" \
4395        "-rw-rw-r--    1 andersen andersen        0 Apr 15 01:11 /tmp/foo\n"
4396
4397 #define tr_trivial_usage \
4398        "[-cds] STRING1 [STRING2]"
4399 #define tr_full_usage "\n\n" \
4400        "Translate, squeeze, or delete characters from stdin, writing to stdout\n" \
4401      "\nOptions:" \
4402      "\n        -c      Take complement of STRING1" \
4403      "\n        -d      Delete input characters coded STRING1" \
4404      "\n        -s      Squeeze multiple output characters of STRING2 into one character" \
4405
4406 #define tr_example_usage \
4407        "$ echo \"gdkkn vnqkc\" | tr [a-y] [b-z]\n" \
4408        "hello world\n"
4409
4410 #define traceroute_trivial_usage \
4411        "[-"IF_TRACEROUTE6("46")"FIldnrv] [-f 1ST_TTL] [-m MAXTTL] [-p PORT] [-q PROBES]\n" \
4412        "        [-s SRC_IP] [-t TOS] [-w WAIT_SEC] [-g GATEWAY] [-i IFACE]\n" \
4413        "        [-z PAUSE_MSEC] HOST [BYTES]"
4414 #define traceroute_full_usage "\n\n" \
4415        "Trace the route to HOST\n" \
4416      "\nOptions:" \
4417         IF_TRACEROUTE6( \
4418      "\n        -4, -6  Force IP or IPv6 name resolution" \
4419         ) \
4420      "\n        -F      Set the don't fragment bit" \
4421      "\n        -I      Use ICMP ECHO instead of UDP datagrams" \
4422      "\n        -l      Display the TTL value of the returned packet" \
4423      "\n        -d      Set SO_DEBUG options to socket" \
4424      "\n        -n      Print numeric addresses" \
4425      "\n        -r      Bypass routing tables, send directly to HOST" \
4426      "\n        -v      Verbose" \
4427      "\n        -m      Max time-to-live (max number of hops)" \
4428      "\n        -p      Base UDP port number used in probes" \
4429      "\n                (default 33434)" \
4430      "\n        -q      Number of probes per TTL (default 3)" \
4431      "\n        -s      IP address to use as the source address" \
4432      "\n        -t      Type-of-service in probe packets (default 0)" \
4433      "\n        -w      Time in seconds to wait for a response (default 3)" \
4434      "\n        -g      Loose source route gateway (8 max)" \
4435
4436 #define traceroute6_trivial_usage \
4437        "[-dnrv] [-m MAXTTL] [-p PORT] [-q PROBES]\n" \
4438        "        [-s SRC_IP] [-t TOS] [-w WAIT_SEC] [-i IFACE]\n" \
4439        "        HOST [BYTES]"
4440 #define traceroute6_full_usage "\n\n" \
4441        "Trace the route to HOST\n" \
4442      "\nOptions:" \
4443      "\n        -d      Set SO_DEBUG options to socket" \
4444      "\n        -n      Print numeric addresses" \
4445      "\n        -r      Bypass routing tables, send directly to HOST" \
4446      "\n        -v      Verbose" \
4447      "\n        -m      Max time-to-live (max number of hops)" \
4448      "\n        -p      Base UDP port number used in probes" \
4449      "\n                (default is 33434)" \
4450      "\n        -q      Number of probes per TTL (default 3)" \
4451      "\n        -s      IP address to use as the source address" \
4452      "\n        -t      Type-of-service in probe packets (default 0)" \
4453      "\n        -w      Time in seconds to wait for a response (default 3)" \
4454
4455 #define true_trivial_usage \
4456        ""
4457 #define true_full_usage "\n\n" \
4458        "Return an exit code of TRUE (0)"
4459 #define true_example_usage \
4460        "$ true\n" \
4461        "$ echo $?\n" \
4462        "0\n"
4463
4464 #define tty_trivial_usage \
4465        ""
4466 #define tty_full_usage "\n\n" \
4467        "Print file name of stdin's terminal" \
4468         IF_INCLUDE_SUSv2( "\n" \
4469      "\nOptions:" \
4470      "\n        -s      Print nothing, only return exit status" \
4471         )
4472 #define tty_example_usage \
4473        "$ tty\n" \
4474        "/dev/tty2\n"
4475
4476 #define ttysize_trivial_usage \
4477        "[w] [h]"
4478 #define ttysize_full_usage "\n\n" \
4479        "Print dimension(s) of stdin's terminal, on error return 80x25"
4480
4481 #define tunctl_trivial_usage \
4482        "[-f device] ([-t name] | -d name)" IF_FEATURE_TUNCTL_UG(" [-u owner] [-g group] [-b]")
4483 #define tunctl_full_usage "\n\n" \
4484        "Create or delete tun interfaces\n" \
4485      "\nOptions:" \
4486      "\n        -f name         tun device (/dev/net/tun)" \
4487      "\n        -t name         Create iface 'name'" \
4488      "\n        -d name         Delete iface 'name'" \
4489         IF_FEATURE_TUNCTL_UG( \
4490      "\n        -u owner        Set iface owner" \
4491      "\n        -g group        Set iface group" \
4492      "\n        -b              Brief output" \
4493         )
4494 #define tunctl_example_usage \
4495        "# tunctl\n" \
4496        "# tunctl -d tun0\n"
4497
4498 #define tune2fs_trivial_usage \
4499 /*     "[-c max-mounts-count] [-e errors-behavior] [-g group] " */ \
4500 /*     "[-i interval[d|m|w]] [-j] [-J journal-options] [-l] [-s sparse-flag] " */ \
4501 /*     "[-m reserved-blocks-percent] [-o [^]mount-options[,...]] " */ \
4502 /*     "[-r reserved-blocks-count] [-u user] [-C mount-count] " */ \
4503        "[-L LABEL] " \
4504 /*     "[-M last-mounted-dir] [-O [^]feature[,...]] " */ \
4505 /*     "[-T last-check-time] [-U UUID] " */ \
4506        "BLOCKDEV"
4507 #define tune2fs_full_usage "\n\n" \
4508        "Adjust filesystem options on ext[23] filesystems"
4509
4510 #define udhcpc_trivial_usage \
4511        "[-fbnqvoCR] [-i IFACE] [-r IP] [-s PROG] [-p PIDFILE]\n" \
4512        "        [-H HOSTNAME] [-c CID] [-V VENDOR] [-O DHCP_OPT]..." IF_FEATURE_UDHCP_PORT(" [-P N]")
4513 #define udhcpc_full_usage "\n" \
4514         IF_LONG_OPTS( \
4515      "\n        -i,--interface IFACE    Interface to use (default eth0)" \
4516      "\n        -p,--pidfile FILE       Create pidfile" \
4517      "\n        -r,--request IP         IP address to request" \
4518      "\n        -s,--script PROG        Run PROG at DHCP events (default "CONFIG_UDHCPC_DEFAULT_SCRIPT")" \
4519      "\n        -t,--retries N          Send up to N discover packets" \
4520      "\n        -T,--timeout N          Pause between packets (default 3 seconds)" \
4521      "\n        -A,--tryagain N         Wait N seconds after failure (default 20)" \
4522      "\n        -f,--foreground         Run in foreground" \
4523         USE_FOR_MMU( \
4524      "\n        -b,--background         Background if lease is not obtained" \
4525         ) \
4526      "\n        -S,--syslog             Log to syslog too" \
4527      "\n        -n,--now                Exit if lease is not obtained" \
4528      "\n        -q,--quit               Exit after obtaining lease" \
4529      "\n        -R,--release            Release IP on exit" \
4530         IF_FEATURE_UDHCP_PORT( \
4531      "\n        -P,--client-port N      Use port N (default 68)" \
4532         ) \
4533         IF_FEATURE_UDHCPC_ARPING( \
4534      "\n        -a,--arping             Use arping to validate offered address" \
4535         ) \
4536      "\n        -O,--request-option OPT Request DHCP option OPT (cumulative)" \
4537      "\n        -o,--no-default-options Don't request any options (unless -O is given)" \
4538      "\n        -x OPT:VAL              Include option OPT in sent packets (cumulative)" \
4539      "\n        -F,--fqdn NAME          Ask server to update DNS mapping for NAME" \
4540      "\n        -H,-h,--hostname NAME   Send NAME as client hostname (default none)" \
4541      "\n        -V,--vendorclass VENDOR Vendor identifier (default 'udhcp VERSION')" \
4542      "\n        -c,--clientid CLIENTID  Client identifier (default own MAC)" \
4543      "\n        -C,--clientid-none      Don't send client identifier" \
4544         ) \
4545         IF_NOT_LONG_OPTS( \
4546      "\n        -i IFACE        Interface to use (default eth0)" \
4547      "\n        -p FILE         Create pidfile" \
4548      "\n        -r IP           IP address to request" \
4549      "\n        -s PROG         Run PROG at DHCP events (default "CONFIG_UDHCPC_DEFAULT_SCRIPT")" \
4550      "\n        -t N            Send up to N discover packets" \
4551      "\n        -T N            Pause between packets (default 3 seconds)" \
4552      "\n        -A N            Wait N seconds (default 20) after failure" \
4553      "\n        -x OPT:VAL      Include option OPT in sent packets" \
4554      "\n        -O OPT          Request DHCP option OPT (cumulative)" \
4555      "\n        -o              Don't request any options (unless -O is given)" \
4556      "\n        -f              Run in foreground" \
4557         USE_FOR_MMU( \
4558      "\n        -b              Background if lease is not obtained" \
4559         ) \
4560      "\n        -S              Log to syslog too" \
4561      "\n        -n              Exit if lease is not obtained" \
4562      "\n        -q              Exit after obtaining lease" \
4563      "\n        -R              Release IP on exit" \
4564         IF_FEATURE_UDHCP_PORT( \
4565      "\n        -P N            Use port N (default 68)" \
4566         ) \
4567         IF_FEATURE_UDHCPC_ARPING( \
4568      "\n        -a              Use arping to validate offered address" \
4569         ) \
4570      "\n        -F NAME         Ask server to update DNS mapping for NAME" \
4571      "\n        -H,-h NAME      Send NAME as client hostname (default none)" \
4572      "\n        -V VENDOR       Vendor identifier (default 'udhcp VERSION')" \
4573      "\n        -c CLIENTID     Client identifier (default own MAC)" \
4574      "\n        -C              Don't send client identifier" \
4575         )
4576
4577 #define udhcpd_trivial_usage \
4578        "[-fS]" IF_FEATURE_UDHCP_PORT(" [-P N]") " [configfile]" \
4579
4580 #define udhcpd_full_usage "\n\n" \
4581        "DHCP server\n" \
4582      "\n        -f      Run in foreground" \
4583      "\n        -S      Log to syslog too" \
4584         IF_FEATURE_UDHCP_PORT( \
4585      "\n        -P N    Use port N (default 67)" \
4586         )
4587
4588 #define umount_trivial_usage \
4589        "[OPTIONS] FILESYSTEM|DIRECTORY"
4590 #define umount_full_usage "\n\n" \
4591        "Unmount file systems\n" \
4592      "\nOptions:" \
4593         IF_FEATURE_UMOUNT_ALL( \
4594      "\n        -a      Unmount all file systems" IF_FEATURE_MTAB_SUPPORT(" in /etc/mtab") \
4595         ) \
4596         IF_FEATURE_MTAB_SUPPORT( \
4597      "\n        -n      Don't erase /etc/mtab entries" \
4598         ) \
4599      "\n        -r      Try to remount devices as read-only if mount is busy" \
4600      "\n        -l      Lazy umount (detach filesystem)" \
4601      "\n        -f      Force umount (i.e., unreachable NFS server)" \
4602         IF_FEATURE_MOUNT_LOOP( \
4603      "\n        -d      Free loop device if it has been used" \
4604         )
4605
4606 #define umount_example_usage \
4607        "$ umount /dev/hdc1\n"
4608
4609 #define uname_trivial_usage \
4610        "[-amnrspv]"
4611 #define uname_full_usage "\n\n" \
4612        "Print system information\n" \
4613      "\nOptions:" \
4614      "\n        -a      Print all" \
4615      "\n        -m      The machine (hardware) type" \
4616      "\n        -n      Hostname" \
4617      "\n        -r      OS release" \
4618      "\n        -s      OS name (default)" \
4619      "\n        -p      Processor type" \
4620      "\n        -v      OS version" \
4621
4622 #define uname_example_usage \
4623        "$ uname -a\n" \
4624        "Linux debian 2.4.23 #2 Tue Dec 23 17:09:10 MST 2003 i686 GNU/Linux\n"
4625
4626 #define uncompress_trivial_usage \
4627        "[-cf] [FILE]..."
4628 #define uncompress_full_usage "\n\n" \
4629        "Decompress .Z file[s]\n" \
4630      "\nOptions:" \
4631      "\n        -c      Write to stdout" \
4632      "\n        -f      Overwrite" \
4633
4634 #define unexpand_trivial_usage \
4635        "[-fa][-t N] [FILE]..."
4636 #define unexpand_full_usage "\n\n" \
4637        "Convert spaces to tabs, writing to stdout\n" \
4638      "\nOptions:" \
4639         IF_FEATURE_UNEXPAND_LONG_OPTIONS( \
4640      "\n        -a,--all        Convert all blanks" \
4641      "\n        -f,--first-only Convert only leading blanks" \
4642      "\n        -t,--tabs=N     Tabstops every N chars" \
4643         ) \
4644         IF_NOT_FEATURE_UNEXPAND_LONG_OPTIONS( \
4645      "\n        -a      Convert all blanks" \
4646      "\n        -f      Convert only leading blanks" \
4647      "\n        -t N    Tabstops every N chars" \
4648         )
4649
4650 #define uniq_trivial_usage \
4651        "[-cdu][-f,s,w N] [INPUT [OUTPUT]]"
4652 #define uniq_full_usage "\n\n" \
4653        "Discard duplicate lines\n" \
4654      "\nOptions:" \
4655      "\n        -c      Prefix lines by the number of occurrences" \
4656      "\n        -d      Only print duplicate lines" \
4657      "\n        -u      Only print unique lines" \
4658      "\n        -f N    Skip first N fields" \
4659      "\n        -s N    Skip first N chars (after any skipped fields)" \
4660      "\n        -w N    Compare N characters in line" \
4661
4662 #define uniq_example_usage \
4663        "$ echo -e \"a\\na\\nb\\nc\\nc\\na\" | sort | uniq\n" \
4664        "a\n" \
4665        "b\n" \
4666        "c\n"
4667
4668 #define unzip_trivial_usage \
4669        "[-opts[modifiers]] FILE[.zip] [LIST] [-x XLIST] [-d DIR]"
4670 #define unzip_full_usage "\n\n" \
4671        "Extract files from ZIP archives\n" \
4672      "\nOptions:" \
4673      "\n        -l      List archive contents (with -q for short form)" \
4674      "\n        -n      Never overwrite files (default)" \
4675      "\n        -o      Overwrite" \
4676      "\n        -p      Send output to stdout" \
4677      "\n        -q      Quiet" \
4678      "\n        -x XLST Exclude these files" \
4679      "\n        -d DIR  Extract files into DIR" \
4680
4681 #define uptime_trivial_usage \
4682        ""
4683 #define uptime_full_usage "\n\n" \
4684        "Display the time since the last boot"
4685
4686 #define uptime_example_usage \
4687        "$ uptime\n" \
4688        "  1:55pm  up  2:30, load average: 0.09, 0.04, 0.00\n"
4689
4690 #define usleep_trivial_usage \
4691        "N"
4692 #define usleep_full_usage "\n\n" \
4693        "Pause for N microseconds"
4694
4695 #define usleep_example_usage \
4696        "$ usleep 1000000\n" \
4697        "[pauses for 1 second]\n"
4698
4699 #define uudecode_trivial_usage \
4700        "[-o OUTFILE] [INFILE]"
4701 #define uudecode_full_usage "\n\n" \
4702        "Uudecode a file\n" \
4703        "Finds outfile name in uuencoded source unless -o is given"
4704
4705 #define uudecode_example_usage \
4706        "$ uudecode -o busybox busybox.uu\n" \
4707        "$ ls -l busybox\n" \
4708        "-rwxr-xr-x   1 ams      ams        245264 Jun  7 21:35 busybox\n"
4709
4710 #define uuencode_trivial_usage \
4711        "[-m] [INFILE] STORED_FILENAME"
4712 #define uuencode_full_usage "\n\n" \
4713        "Uuencode a file to stdout\n" \
4714      "\nOptions:" \
4715      "\n        -m      Use base64 encoding per RFC1521" \
4716
4717 #define uuencode_example_usage \
4718        "$ uuencode busybox busybox\n" \
4719        "begin 755 busybox\n" \
4720        "<encoded file snipped>\n" \
4721        "$ uudecode busybox busybox > busybox.uu\n" \
4722        "$\n"
4723
4724 #define vconfig_trivial_usage \
4725        "COMMAND [OPTIONS]"
4726 #define vconfig_full_usage "\n\n" \
4727        "Create and remove virtual ethernet devices\n" \
4728      "\nOptions:" \
4729      "\n        add             [interface-name] [vlan_id]" \
4730      "\n        rem             [vlan-name]" \
4731      "\n        set_flag        [interface-name] [flag-num] [0 | 1]" \
4732      "\n        set_egress_map  [vlan-name] [skb_priority] [vlan_qos]" \
4733      "\n        set_ingress_map [vlan-name] [skb_priority] [vlan_qos]" \
4734      "\n        set_name_type   [name-type]" \
4735
4736 #define vi_trivial_usage \
4737        "[OPTIONS] [FILE]..."
4738 #define vi_full_usage "\n\n" \
4739        "Edit FILE\n" \
4740      "\nOptions:" \
4741         IF_FEATURE_VI_COLON( \
4742      "\n        -c      Initial command to run ($EXINIT also available)") \
4743         IF_FEATURE_VI_READONLY( \
4744      "\n        -R      Read-only") \
4745      "\n        -H      Short help regarding available features" \
4746
4747 #define vlock_trivial_usage \
4748        "[OPTIONS]"
4749 #define vlock_full_usage "\n\n" \
4750        "Lock a virtual terminal. A password is required to unlock.\n" \
4751      "\nOptions:" \
4752      "\n        -a      Lock all VTs" \
4753
4754 #define volname_trivial_usage \
4755        "[DEVICE]"
4756 #define volname_full_usage "\n\n" \
4757        "Show CD volume name of the DEVICE (default /dev/cdrom)"
4758
4759 #define wall_trivial_usage \
4760         "[FILE]"
4761 #define wall_full_usage "\n\n" \
4762         "Write content of FILE or stdin to all logged-in users"
4763 #define wall_sample_usage \
4764         "echo foo | wall\n" \
4765         "wall ./mymessage"
4766
4767 #define watch_trivial_usage \
4768        "[-n SEC] [-t] PROG ARGS"
4769 #define watch_full_usage "\n\n" \
4770        "Run PROG periodically\n" \
4771      "\nOptions:" \
4772      "\n        -n      Loop period in seconds (default 2)" \
4773      "\n        -t      Don't print header" \
4774
4775 #define watch_example_usage \
4776        "$ watch date\n" \
4777        "Mon Dec 17 10:31:40 GMT 2000\n" \
4778        "Mon Dec 17 10:31:42 GMT 2000\n" \
4779        "Mon Dec 17 10:31:44 GMT 2000"
4780
4781 #define watchdog_trivial_usage \
4782        "[-t N[ms]] [-T N[ms]] [-F] DEV"
4783 #define watchdog_full_usage "\n\n" \
4784        "Periodically write to watchdog device DEV\n" \
4785      "\nOptions:" \
4786      "\n        -T N    Reboot after N seconds if not reset (default 60)" \
4787      "\n        -t N    Reset every N seconds (default 30)" \
4788      "\n        -F      Run in foreground" \
4789      "\n" \
4790      "\nUse 500ms to specify period in milliseconds" \
4791
4792 #define wc_trivial_usage \
4793        "[OPTIONS] [FILE]..."
4794 #define wc_full_usage "\n\n" \
4795        "Print line, word, and byte counts for each FILE (or stdin),\n" \
4796        "and a total line if more than one FILE is specified\n" \
4797      "\nOptions:" \
4798      "\n        -c      Print the byte counts" \
4799      "\n        -l      Print the newline counts" \
4800      "\n        -L      Print the length of the longest line" \
4801      "\n        -w      Print the word counts" \
4802
4803 #define wc_example_usage \
4804        "$ wc /etc/passwd\n" \
4805        "     31      46    1365 /etc/passwd\n"
4806
4807 #define wget_trivial_usage \
4808         IF_FEATURE_WGET_LONG_OPTIONS( \
4809        "[-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]\n" \
4810        "        [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]\n" \
4811        "        [--no-check-certificate] [-U|--user-agent AGENT] URL" \
4812         ) \
4813         IF_NOT_FEATURE_WGET_LONG_OPTIONS( \
4814        "[-csq] [-O FILE] [-Y on/off] [-P DIR] [-U AGENT] URL" \
4815         )
4816 #define wget_full_usage "\n\n" \
4817        "Retrieve files via HTTP or FTP\n" \
4818      "\nOptions:" \
4819      "\n        -s      Spider mode - only check file existence" \
4820      "\n        -c      Continue retrieval of aborted transfer" \
4821      "\n        -q      Quiet" \
4822      "\n        -P      Set directory prefix to DIR" \
4823      "\n        -O FILE Save to FILE ('-' for stdout)" \
4824      "\n        -U STR  Use STR for User-Agent header" \
4825      "\n        -Y      Use proxy ('on' or 'off')" \
4826
4827 #define which_trivial_usage \
4828        "[COMMAND]..."
4829 #define which_full_usage "\n\n" \
4830        "Locate a COMMAND"
4831 #define which_example_usage \
4832        "$ which login\n" \
4833        "/bin/login\n"
4834
4835 #define who_trivial_usage \
4836        "[-a]"
4837 #define who_full_usage "\n\n" \
4838        "Show who is logged on\n" \
4839      "\nOptions:" \
4840      "\n        -a      Show all" \
4841
4842 #define whoami_trivial_usage \
4843        ""
4844 #define whoami_full_usage "\n\n" \
4845        "Print the user name associated with the current effective user id"
4846
4847 #define zcat_trivial_usage \
4848        "FILE"
4849 #define zcat_full_usage "\n\n" \
4850        "Decompress to stdout"
4851
4852 #define zcip_trivial_usage \
4853        "[OPTIONS] IFACE SCRIPT"
4854 #define zcip_full_usage "\n\n" \
4855        "Manage a ZeroConf IPv4 link-local address\n" \
4856      "\nOptions:" \
4857      "\n        -f              Run in foreground" \
4858      "\n        -q              Quit after obtaining address" \
4859      "\n        -r 169.254.x.x  Request this address first" \
4860      "\n        -v              Verbose" \
4861      "\n" \
4862      "\nWith no -q, runs continuously monitoring for ARP conflicts," \
4863      "\nexits only on I/O errors (link down etc)" \
4864
4865
4866 #endif