aboutsummaryrefslogtreecommitdiff
path: root/include/usage.src.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/usage.src.h')
-rw-r--r--include/usage.src.h255
1 files changed, 2 insertions, 253 deletions
diff --git a/include/usage.src.h b/include/usage.src.h
index 6973c93ef..ea0e6a452 100644
--- a/include/usage.src.h
+++ b/include/usage.src.h
@@ -592,35 +592,6 @@ INSERT
592 "\n -i Prompt before overwrite" \ 592 "\n -i Prompt before overwrite" \
593 "\n -l,-s Create (sym)links" \ 593 "\n -l,-s Create (sym)links" \
594 594
595#define cpio_trivial_usage \
596 "[-dmvu] [-F FILE]" IF_FEATURE_CPIO_O(" [-H newc]") \
597 " [-ti"IF_FEATURE_CPIO_O("o")"]" IF_FEATURE_CPIO_P(" [-p DIR]")
598#define cpio_full_usage "\n\n" \
599 "Extract or list files from a cpio archive" \
600 IF_FEATURE_CPIO_O(", or" \
601 "\ncreate an archive" IF_FEATURE_CPIO_P(" (-o) or copy files (-p)") \
602 " using file list on stdin" \
603 ) \
604 "\n" \
605 "\nMain operation mode:" \
606 "\n -t List" \
607 "\n -i Extract" \
608 IF_FEATURE_CPIO_O( \
609 "\n -o Create (requires -H newc)" \
610 ) \
611 IF_FEATURE_CPIO_P( \
612 "\n -p DIR Copy files to DIR" \
613 ) \
614 "\nOptions:" \
615 "\n -d Make leading directories" \
616 "\n -m Preserve mtime" \
617 "\n -v Verbose" \
618 "\n -u Overwrite" \
619 "\n -F FILE Input (-t,-i,-p) or output (-o) file" \
620 IF_FEATURE_CPIO_O( \
621 "\n -H newc Archive format" \
622 ) \
623
624#define crond_trivial_usage \ 595#define crond_trivial_usage \
625 "-fbS -l N " IF_FEATURE_CROND_D("-d N ") "-L LOGFILE -c DIR" 596 "-fbS -l N " IF_FEATURE_CROND_D("-d N ") "-L LOGFILE -c DIR"
626#define crond_full_usage "\n\n" \ 597#define crond_full_usage "\n\n" \
@@ -1577,8 +1548,8 @@ INSERT
1577 "\n -c One-byte character display" \ 1548 "\n -c One-byte character display" \
1578 "\n -C Canonical hex+ASCII, 16 bytes per line" \ 1549 "\n -C Canonical hex+ASCII, 16 bytes per line" \
1579 "\n -d Two-byte decimal display" \ 1550 "\n -d Two-byte decimal display" \
1580 "\n -e FORMAT STRING" \ 1551 "\n -e FORMAT_STRING" \
1581 "\n -f FORMAT FILE" \ 1552 "\n -f FORMAT_FILE" \
1582 "\n -n LENGTH Interpret only LENGTH bytes of input" \ 1553 "\n -n LENGTH Interpret only LENGTH bytes of input" \
1583 "\n -o Two-byte octal display" \ 1554 "\n -o Two-byte octal display" \
1584 "\n -s OFFSET Skip OFFSET bytes" \ 1555 "\n -s OFFSET Skip OFFSET bytes" \
@@ -2044,9 +2015,6 @@ INSERT
2044#define linux64_trivial_usage NOUSAGE_STR 2015#define linux64_trivial_usage NOUSAGE_STR
2045#define linux64_full_usage "" 2016#define linux64_full_usage ""
2046 2017
2047#define linuxrc_trivial_usage NOUSAGE_STR
2048#define linuxrc_full_usage ""
2049
2050#define setarch_trivial_usage \ 2018#define setarch_trivial_usage \
2051 "personality PROG ARGS" 2019 "personality PROG ARGS"
2052#define setarch_full_usage "\n\n" \ 2020#define setarch_full_usage "\n\n" \
@@ -2176,67 +2144,6 @@ INSERT
2176 "\n -h Print banner page too" \ 2144 "\n -h Print banner page too" \
2177 "\n -V Verbose" \ 2145 "\n -V Verbose" \
2178 2146
2179#define ls_trivial_usage \
2180 "[-1Aa" IF_FEATURE_LS_TIMESTAMPS("c") "Cd" \
2181 IF_FEATURE_LS_TIMESTAMPS("e") IF_FEATURE_LS_FILETYPES("F") "iln" \
2182 IF_FEATURE_LS_FILETYPES("p") IF_FEATURE_LS_FOLLOWLINKS("L") \
2183 IF_FEATURE_LS_RECURSIVE("R") IF_FEATURE_LS_SORTFILES("rS") "s" \
2184 IF_FEATURE_AUTOWIDTH("T") IF_FEATURE_LS_TIMESTAMPS("tu") \
2185 IF_FEATURE_LS_SORTFILES("v") IF_FEATURE_AUTOWIDTH("w") "x" \
2186 IF_FEATURE_LS_SORTFILES("X") IF_FEATURE_HUMAN_READABLE("h") "k" \
2187 IF_SELINUX("K") "] [FILE]..."
2188#define ls_full_usage "\n\n" \
2189 "List directory contents\n" \
2190 "\nOptions:" \
2191 "\n -1 List in a single column" \
2192 "\n -A Don't list . and .." \
2193 "\n -a Don't hide entries starting with ." \
2194 "\n -C List by columns" \
2195 IF_FEATURE_LS_TIMESTAMPS( \
2196 "\n -c With -l: sort by ctime") \
2197 IF_FEATURE_LS_COLOR( \
2198 "\n --color[={always,never,auto}] Control coloring") \
2199 "\n -d List directory entries instead of contents" \
2200 IF_FEATURE_LS_TIMESTAMPS( \
2201 "\n -e List full date and time") \
2202 IF_FEATURE_LS_FILETYPES( \
2203 "\n -F Append indicator (one of */=@|) to entries") \
2204 "\n -i List inode numbers" \
2205 "\n -l Long listing format" \
2206 "\n -n List numeric UIDs and GIDs instead of names" \
2207 IF_FEATURE_LS_FILETYPES( \
2208 "\n -p Append indicator (one of /=@|) to entries") \
2209 IF_FEATURE_LS_FOLLOWLINKS( \
2210 "\n -L List entries pointed to by symlinks") \
2211 IF_FEATURE_LS_RECURSIVE( \
2212 "\n -R Recurse") \
2213 IF_FEATURE_LS_SORTFILES( \
2214 "\n -r Sort in reverse order") \
2215 IF_FEATURE_LS_SORTFILES( \
2216 "\n -S Sort by file size") \
2217 "\n -s List the size of each file, in blocks" \
2218 IF_FEATURE_AUTOWIDTH( \
2219 "\n -T N Assume tabstop every N columns") \
2220 IF_FEATURE_LS_TIMESTAMPS( \
2221 "\n -t With -l: sort by modification time") \
2222 IF_FEATURE_LS_TIMESTAMPS( \
2223 "\n -u With -l: sort by access time") \
2224 IF_FEATURE_LS_SORTFILES( \
2225 "\n -v Sort by version") \
2226 IF_FEATURE_AUTOWIDTH( \
2227 "\n -w N Assume the terminal is N columns wide") \
2228 "\n -x List by lines" \
2229 IF_FEATURE_LS_SORTFILES( \
2230 "\n -X Sort by extension") \
2231 IF_FEATURE_HUMAN_READABLE( \
2232 "\n -h List sizes in human readable format (1K 243M 2G)") \
2233 IF_SELINUX( \
2234 "\n -k List security context") \
2235 IF_SELINUX( \
2236 "\n -K List security context in long format") \
2237 IF_SELINUX( \
2238 "\n -Z List security context and permission") \
2239
2240#define lsattr_trivial_usage \ 2147#define lsattr_trivial_usage \
2241 "[-Radlv] [FILE]..." 2148 "[-Radlv] [FILE]..."
2242#define lsattr_full_usage "\n\n" \ 2149#define lsattr_full_usage "\n\n" \
@@ -2709,31 +2616,6 @@ INSERT
2709 " or\n" \ 2616 " or\n" \
2710 "$ nameif -c /etc/my_mactab_file\n" \ 2617 "$ nameif -c /etc/my_mactab_file\n" \
2711 2618
2712#define nmeter_trivial_usage \
2713 "format_string"
2714#define nmeter_full_usage "\n\n" \
2715 "Monitor system in real time\n\n" \
2716 "Format specifiers:\n" \
2717 " %Nc or %[cN] Monitor CPU. N - bar size, default 10\n" \
2718 " (displays: S:system U:user N:niced D:iowait I:irq i:softirq)\n" \
2719 " %[niface] Monitor network interface 'iface'\n" \
2720 " %m Monitor allocated memory\n" \
2721 " %[mf] Monitor free memory\n" \
2722 " %[mt] Monitor total memory\n" \
2723 " %s Monitor allocated swap\n" \
2724 " %f Monitor number of used file descriptors\n" \
2725 " %Ni Monitor total/specific IRQ rate\n" \
2726 " %x Monitor context switch rate\n" \
2727 " %p Monitor forks\n" \
2728 " %[pn] Monitor # of processes\n" \
2729 " %b Monitor block io\n" \
2730 " %Nt Show time (with N decimal points)\n" \
2731 " %Nd Milliseconds between updates (default:1000)\n" \
2732 " %r Print <cr> instead of <lf> at EOL" \
2733
2734#define nmeter_example_usage \
2735 "nmeter '%250d%t %20c int %i bio %b mem %m forks%p'"
2736
2737#define nohup_trivial_usage \ 2619#define nohup_trivial_usage \
2738 "PROG ARGS" 2620 "PROG ARGS"
2739#define nohup_full_usage "\n\n" \ 2621#define nohup_full_usage "\n\n" \
@@ -2820,29 +2702,6 @@ INSERT
2820 "\n -m Use MD5 encryption instead of DES" \ 2702 "\n -m Use MD5 encryption instead of DES" \
2821 ) 2703 )
2822 2704
2823#define patch_trivial_usage \
2824 "[OPTIONS] [ORIGFILE [PATCHFILE]]"
2825#define patch_full_usage "\n\n" \
2826 IF_LONG_OPTS( \
2827 " -p,--strip N Strip N leading components from file names" \
2828 "\n -i,--input DIFF Read DIFF instead of stdin" \
2829 "\n -R,--reverse Reverse patch" \
2830 "\n -N,--forward Ignore already applied patches" \
2831 "\n --dry-run Don't actually change files" \
2832 "\n -E,--remove-empty-files Remove output files if they become empty" \
2833 ) \
2834 IF_NOT_LONG_OPTS( \
2835 " -p N Strip N leading components from file names" \
2836 "\n -i DIFF Read DIFF instead of stdin" \
2837 "\n -R Reverse patch" \
2838 "\n -N Ignore already applied patches" \
2839 "\n -E Remove output files if they become empty" \
2840 )
2841
2842#define patch_example_usage \
2843 "$ patch -p1 < example.diff\n" \
2844 "$ patch -p0 -i example.diff"
2845
2846#define pgrep_trivial_usage \ 2705#define pgrep_trivial_usage \
2847 "[-flnovx] [-s SID|-P PPID|PATTERN]" 2706 "[-flnovx] [-s SID|-P PPID|PATTERN]"
2848#define pgrep_full_usage "\n\n" \ 2707#define pgrep_full_usage "\n\n" \
@@ -2885,61 +2744,6 @@ INSERT
2885 IF_FEATURE_PIDOF_OMIT( \ 2744 IF_FEATURE_PIDOF_OMIT( \
2886 "$ pidof /bin/sh -o %PPID\n20351 5950") 2745 "$ pidof /bin/sh -o %PPID\n20351 5950")
2887 2746
2888#if !ENABLE_FEATURE_FANCY_PING
2889#define ping_trivial_usage \
2890 "host"
2891#define ping_full_usage "\n\n" \
2892 "Send ICMP ECHO_REQUEST packets to network hosts"
2893#define ping6_trivial_usage \
2894 "host"
2895#define ping6_full_usage "\n\n" \
2896 "Send ICMP ECHO_REQUEST packets to network hosts"
2897#else
2898#define ping_trivial_usage \
2899 "[OPTIONS] HOST"
2900#define ping_full_usage "\n\n" \
2901 "Send ICMP ECHO_REQUEST packets to network hosts\n" \
2902 "\nOptions:" \
2903 "\n -4,-6 Force IP or IPv6 name resolution" \
2904 "\n -c CNT Send only CNT pings" \
2905 "\n -s SIZE Send SIZE data bytes in packets (default:56)" \
2906 "\n -I IFACE/IP Use interface or IP address as source" \
2907 "\n -W SEC Seconds to wait for the first response (default:10)" \
2908 "\n (after all -c CNT packets are sent)" \
2909 "\n -w SEC Seconds until ping exits (default:infinite)" \
2910 "\n (can exit earlier with -c CNT)" \
2911 "\n -q Quiet, only displays output at start" \
2912 "\n and when finished" \
2913
2914#define ping6_trivial_usage \
2915 "[OPTIONS] HOST"
2916#define ping6_full_usage "\n\n" \
2917 "Send ICMP ECHO_REQUEST packets to network hosts\n" \
2918 "\nOptions:" \
2919 "\n -c CNT Send only CNT pings" \
2920 "\n -s SIZE Send SIZE data bytes in packets (default:56)" \
2921 "\n -I IFACE/IP Use interface or IP address as source" \
2922 "\n -q Quiet, only displays output at start" \
2923 "\n and when finished" \
2924
2925#endif
2926#define ping_example_usage \
2927 "$ ping localhost\n" \
2928 "PING slag (127.0.0.1): 56 data bytes\n" \
2929 "64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=20.1 ms\n" \
2930 "\n" \
2931 "--- debian ping statistics ---\n" \
2932 "1 packets transmitted, 1 packets received, 0% packet loss\n" \
2933 "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"
2934#define ping6_example_usage \
2935 "$ ping6 ip6-localhost\n" \
2936 "PING ip6-localhost (::1): 56 data bytes\n" \
2937 "64 bytes from ::1: icmp6_seq=0 ttl=64 time=20.1 ms\n" \
2938 "\n" \
2939 "--- ip6-localhost ping statistics ---\n" \
2940 "1 packets transmitted, 1 packets received, 0% packet loss\n" \
2941 "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"
2942
2943#define pipe_progress_trivial_usage NOUSAGE_STR 2747#define pipe_progress_trivial_usage NOUSAGE_STR
2944#define pipe_progress_full_usage "" 2748#define pipe_progress_full_usage ""
2945 2749
@@ -3378,36 +3182,6 @@ INSERT
3378#define selinuxenabled_trivial_usage NOUSAGE_STR 3182#define selinuxenabled_trivial_usage NOUSAGE_STR
3379#define selinuxenabled_full_usage "" 3183#define selinuxenabled_full_usage ""
3380 3184
3381#define sendmail_trivial_usage \
3382 "[OPTIONS] [RECIPIENT_EMAIL]..."
3383#define sendmail_full_usage "\n\n" \
3384 "Read email from stdin and send it\n" \
3385 "\nStandard options:" \
3386 "\n -t Read additional recipients from message body" \
3387 "\n -f sender Sender (required)" \
3388 "\n -o options Various options. -oi implied, others are ignored" \
3389 "\n -i -oi synonym. implied and ignored" \
3390 "\n" \
3391 "\nBusybox specific options:" \
3392 "\n -w seconds Network timeout" \
3393 "\n -H 'PROG ARGS' Run connection helper" \
3394 "\n Examples:" \
3395 "\n -H 'exec openssl s_client -quiet -tls1 -starttls smtp" \
3396 "\n -connect smtp.gmail.com:25' <email.txt" \
3397 "\n [4<username_and_passwd.txt | -au<username> -ap<password>]" \
3398 "\n -H 'exec openssl s_client -quiet -tls1" \
3399 "\n -connect smtp.gmail.com:465' <email.txt" \
3400 "\n [4<username_and_passwd.txt | -au<username> -ap<password>]" \
3401 "\n -S server[:port] Server" \
3402 "\n -au<username> Username for AUTH LOGIN" \
3403 "\n -ap<password> Password for AUTH LOGIN" \
3404 "\n -am<method> Authentication method. Ignored. LOGIN is implied" \
3405 "\n" \
3406 "\nOther options are silently ignored; -oi -t is implied" \
3407 IF_MAKEMIME( \
3408 "\nUse makemime applet to create message with attachments" \
3409 )
3410
3411#define seq_trivial_usage \ 3185#define seq_trivial_usage \
3412 "[-w] [-s SEP] [FIRST [INC]] LAST" 3186 "[-w] [-s SEP] [FIRST [INC]] LAST"
3413#define seq_full_usage "\n\n" \ 3187#define seq_full_usage "\n\n" \
@@ -3750,15 +3524,6 @@ INSERT
3750 "\n -g Print in stty-readable form" \ 3524 "\n -g Print in stty-readable form" \
3751 "\n [SETTING] See manpage" \ 3525 "\n [SETTING] See manpage" \
3752 3526
3753#define su_trivial_usage \
3754 "[OPTIONS] [-] [USERNAME]"
3755#define su_full_usage "\n\n" \
3756 "Change user id or become root\n" \
3757 "\nOptions:" \
3758 "\n -p,-m Preserve environment" \
3759 "\n -c CMD Command to pass to 'sh -c'" \
3760 "\n -s SH Shell to use instead of default shell" \
3761
3762#define sulogin_trivial_usage \ 3527#define sulogin_trivial_usage \
3763 "[-t N] [TTY]" 3528 "[-t N] [TTY]"
3764#define sulogin_full_usage "\n\n" \ 3529#define sulogin_full_usage "\n\n" \
@@ -4086,22 +3851,6 @@ INSERT
4086 "and display a screenful of them." \ 3851 "and display a screenful of them." \
4087//TODO: add options and keyboard commands 3852//TODO: add options and keyboard commands
4088 3853
4089#define touch_trivial_usage \
4090 "[-c] [-d DATE] [-r FILE] FILE [FILE]..."
4091#define touch_full_usage "\n\n" \
4092 "Update the last-modified date on the given FILE[s]\n" \
4093 "\nOptions:" \
4094 "\n -c Don't create files" \
4095 "\n -d DT Date/time to use" \
4096 "\n -r FILE Use FILE's date/time" \
4097
4098#define touch_example_usage \
4099 "$ ls -l /tmp/foo\n" \
4100 "/bin/ls: /tmp/foo: No such file or directory\n" \
4101 "$ touch /tmp/foo\n" \
4102 "$ ls -l /tmp/foo\n" \
4103 "-rw-rw-r-- 1 andersen andersen 0 Apr 15 01:11 /tmp/foo\n"
4104
4105#define tr_trivial_usage \ 3854#define tr_trivial_usage \
4106 "[-cds] STRING1 [STRING2]" 3855 "[-cds] STRING1 [STRING2]"
4107#define tr_full_usage "\n\n" \ 3856#define tr_full_usage "\n\n" \