Eric Andersen | 3570a34 | 2000-09-25 21:45:58 +0000 | [diff] [blame] | 1 | #include "busybox.h" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 2 | |
| 3 | #if defined BB_AR |
| 4 | const char ar_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 5 | "ar -[ovR]{ptx} archive filenames" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 6 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 7 | "\n\nExtract or list files from an ar archive.\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 8 | "Options:\n" |
Glenn L McGrath | 06aeb6c | 2000-08-25 03:50:10 +0000 | [diff] [blame] | 9 | "\t-o\t\tpreserve original dates\n" |
| 10 | "\t-p\t\textract to stdout\n" |
| 11 | "\t-t\t\tlist\n" |
| 12 | "\t-x\t\textract\n" |
| 13 | "\t-v\t\tverbosely list files processed\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 14 | "\t-R\t\trecursive action" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 15 | #endif |
| 16 | ; |
| 17 | #endif |
| 18 | |
| 19 | #if defined BB_BASENAME |
| 20 | const char basename_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 21 | "basename FILE [SUFFIX]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 22 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 23 | "\n\nStrips directory path and suffixes from FILE.\n" |
| 24 | "If specified, also removes any trailing SUFFIX." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 25 | #endif |
| 26 | ; |
| 27 | #endif |
| 28 | |
| 29 | #if defined BB_CAT |
| 30 | const char cat_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 31 | "cat [FILE]..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 32 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 33 | "\n\nConcatenates FILE(s) and prints them to stdout." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 34 | #endif |
| 35 | ; |
| 36 | #endif |
| 37 | |
| 38 | #if defined BB_CHMOD_CHOWN_CHGRP |
| 39 | const char chgrp_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 40 | "chgrp [OPTION]... GROUP FILE..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 41 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 42 | "\n\nChange the group membership of each FILE to GROUP.\n" |
| 43 | "\nOptions:\n\t-R\tChanges files and directories recursively." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 44 | #endif |
| 45 | ; |
| 46 | #endif |
| 47 | |
| 48 | #if defined BB_CHMOD_CHOWN_CHGRP |
| 49 | const char chmod_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 50 | "chmod [-R] MODE[,MODE]... FILE..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 51 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 52 | "\n\nEach MODE is one or more of the letters ugoa, one of the symbols +-= and\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 53 | "one or more of the letters rwxst.\n\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 54 | "\nOptions:\n\t-R\tChanges files and directories recursively." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 55 | #endif |
| 56 | ; |
| 57 | #endif |
| 58 | |
| 59 | #if defined BB_CHMOD_CHOWN_CHGRP |
| 60 | const char chown_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 61 | "chown [OPTION]... OWNER[<.|:>[GROUP] FILE..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 62 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 63 | "\n\nChange the owner and/or group of each FILE to OWNER and/or GROUP.\n" |
| 64 | "\nOptions:\n\t-R\tChanges files and directories recursively." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 65 | #endif |
| 66 | ; |
| 67 | #endif |
| 68 | |
| 69 | #if defined BB_CHROOT |
| 70 | const char chroot_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 71 | "chroot NEWROOT [COMMAND...]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 72 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 73 | "\n\nRun COMMAND with root directory set to NEWROOT." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 74 | #endif |
| 75 | ; |
| 76 | #endif |
| 77 | |
| 78 | #if defined BB_CHVT |
| 79 | const char chvt_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 80 | "chvt N" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 81 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 82 | "\n\nChanges the foreground virtual terminal to /dev/ttyN" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 83 | #endif |
| 84 | ; |
| 85 | #endif |
| 86 | |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 87 | #if defined BB_CLEAR |
| 88 | const char clear_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 89 | "clear" |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 90 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 91 | "\n\nClear screen." |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 92 | #endif |
| 93 | ; |
| 94 | #endif |
| 95 | |
Mark Whitley | 872138d | 2000-10-09 18:56:47 +0000 | [diff] [blame] | 96 | #if defined BB_CMP |
| 97 | const char cmp_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 98 | "cmp FILE1 [FILE2]" |
Mark Whitley | 872138d | 2000-10-09 18:56:47 +0000 | [diff] [blame] | 99 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 100 | "\n\nCompare files." |
Mark Whitley | 872138d | 2000-10-09 18:56:47 +0000 | [diff] [blame] | 101 | #endif |
| 102 | ; |
| 103 | #endif |
| 104 | |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 105 | #if defined BB_CP_MV |
| 106 | const char cp_usage[] = |
| 107 | "cp [OPTION]... SOURCE DEST\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 108 | " or: cp [OPTION]... SOURCE... DIRECTORY" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 109 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 110 | "\n\nCopies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 111 | "\n" |
| 112 | "\t-a\tSame as -dpR\n" |
| 113 | "\t-d\tPreserves links\n" |
| 114 | "\t-p\tPreserves file attributes if possible\n" |
| 115 | "\t-f\tforce (implied; ignored) - always set\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 116 | "\t-R\tCopies directories recursively" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 117 | #endif |
| 118 | ; |
| 119 | #endif |
| 120 | |
| 121 | #if defined BB_CUT |
| 122 | const char cut_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 123 | "cut [OPTION]... [FILE]..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 124 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 125 | "\n\nPrints selected fields from each input FILE to standard output.\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 126 | "Options:\n" |
| 127 | "\t-b LIST\tOutput only bytes from LIST\n" |
| 128 | "\t-c LIST\tOutput only characters from LIST\n" |
| 129 | "\t-d CHAR\tUse CHAR instead of tab as the field delimiter\n" |
Pavel Roskin | 0010ee4 | 2000-07-21 15:10:57 +0000 | [diff] [blame] | 130 | "\t-s\tOutput only the lines containing delimiter\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 131 | "\t-f N\tPrint only these fields\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 132 | "\t-n\tIgnored" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 133 | #endif |
| 134 | ; |
| 135 | #endif |
| 136 | |
| 137 | #if defined BB_DATE |
| 138 | const char date_usage[] = |
| 139 | "date [OPTION]... [+FORMAT]\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 140 | " or: date [OPTION] [MMDDhhmm[[CC]YY][.ss]]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 141 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 142 | "\n\nDisplays the current time in the given FORMAT, or sets the system date.\n" |
Eric Andersen | 7b5d594 | 2000-11-29 22:01:42 +0000 | [diff] [blame] | 143 | "\nOptions:\n\t-R\t\tOutputs RFC-822 compliant date string\n" |
| 144 | "\t-d STRING\tdisplay time described by STRING, not `now'\n" |
| 145 | "\t-s\t\tSets time described by STRING\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 146 | "\t-u\t\tPrints or sets Coordinated Universal Time" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 147 | #endif |
| 148 | ; |
| 149 | #endif |
| 150 | |
| 151 | #if defined BB_DC |
| 152 | const char dc_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 153 | "dc expression ..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 154 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 155 | "\n\nThis is a Tiny RPN calculator that understands the\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 156 | "following operations: +, -, /, *, and, or, not, eor.\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 157 | "i.e. 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 158 | #endif |
| 159 | ; |
| 160 | #endif |
| 161 | |
| 162 | #if defined BB_DD |
| 163 | const char dd_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 164 | "dd [if=FILE] [of=FILE] [bs=N] [count=N] [skip=N] [seek=N] [conv=notrunc|sync]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 165 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 166 | "\n\nCopy a file, converting and formatting according to options\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 167 | "\tif=FILE\tread from FILE instead of stdin\n" |
| 168 | "\tof=FILE\twrite to FILE instead of stdout\n" |
| 169 | "\tbs=N\tread and write N bytes at a time\n" |
| 170 | "\tcount=N\tcopy only N input blocks\n" |
| 171 | "\tskip=N\tskip N input blocks\n" |
| 172 | "\tseek=N\tskip N output blocks\n" |
Matt Kraai | 24ac017 | 2000-12-18 21:38:57 +0000 | [diff] [blame] | 173 | "\tconv=notrunc\tdon't truncate output file\n" |
| 174 | "\tconv=sync\tpad blocks with zeros\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 175 | "\n" |
Matt Kraai | 24ac017 | 2000-12-18 21:38:57 +0000 | [diff] [blame] | 176 | "Numbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024),\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 177 | "MD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 178 | #endif |
| 179 | ; |
| 180 | #endif |
| 181 | |
| 182 | #if defined BB_DEALLOCVT |
| 183 | const char deallocvt_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 184 | "deallocvt N" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 185 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 186 | "\n\nDeallocate unused virtual terminal /dev/ttyN" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 187 | #endif |
| 188 | ; |
| 189 | #endif |
| 190 | |
| 191 | #if defined BB_DF |
| 192 | const char df_usage[] = |
Richard June | 6d0921c | 2001-01-22 22:35:38 +0000 | [diff] [blame] | 193 | "df [-?" |
| 194 | #ifdef BB_FEATURE_HUMAN_READABLE |
| 195 | "hm" |
| 196 | #endif |
| 197 | "k] [filesystem ...]\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 198 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 199 | "\n\nPrint the filesystem space used and space available." |
Richard June | 6d0921c | 2001-01-22 22:35:38 +0000 | [diff] [blame] | 200 | "Options:\n" |
| 201 | "\t-?\tshow usage information\n" |
| 202 | #ifdef BB_FEATURE_HUMAN_READABLE |
| 203 | "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" |
| 204 | "\t-m\tprint sizes in megabytes\n" |
| 205 | "\t-k\tprint sizes in kilobytes(default)\n" |
| 206 | #else |
| 207 | "\t-k\tprint sizes in kilobytes(compatability)\n" |
| 208 | #endif |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 209 | #endif |
| 210 | ; |
| 211 | #endif |
| 212 | |
| 213 | #if defined BB_DIRNAME |
| 214 | const char dirname_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 215 | "dirname [FILENAME ...]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 216 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 217 | "\n\nStrips non-directory suffix from FILENAME" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 218 | #endif |
| 219 | ; |
| 220 | #endif |
| 221 | |
| 222 | #if defined BB_DMESG |
| 223 | const char dmesg_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 224 | "dmesg [-c] [-n LEVEL] [-s SIZE]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 225 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 226 | "\n\nPrints or controls the kernel ring buffer\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 227 | "Options:\n" |
| 228 | "\t-c\t\tClears the ring buffer's contents after printing\n" |
| 229 | "\t-n LEVEL\tSets console logging level\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 230 | "\t-s SIZE\t\tUse a buffer of size SIZE" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 231 | #endif |
| 232 | ; |
| 233 | #endif |
| 234 | |
Eric Andersen | cff3fe3 | 2000-09-20 19:22:26 +0000 | [diff] [blame] | 235 | #if defined BB_DOS2UNIX |
| 236 | const char dos2unix_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 237 | "dos2unix < dosfile > unixfile" |
Eric Andersen | cff3fe3 | 2000-09-20 19:22:26 +0000 | [diff] [blame] | 238 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 239 | "\n\nConverts a text file from dos format to unix format." |
Eric Andersen | cff3fe3 | 2000-09-20 19:22:26 +0000 | [diff] [blame] | 240 | #endif |
| 241 | ; |
| 242 | #endif |
| 243 | |
Glenn L McGrath | 7541e3a | 2001-01-02 23:41:50 +0000 | [diff] [blame] | 244 | #if defined BB_DPKG_DEB |
| 245 | const char dpkg_deb_usage[] = |
| 246 | "dpkg-deb [-cexX] file directory" |
| 247 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 248 | "\n\nPerform actions on debian packages (.debs)\n\n" |
Glenn L McGrath | 7541e3a | 2001-01-02 23:41:50 +0000 | [diff] [blame] | 249 | "Options:\n" |
| 250 | "\t-c\tList contents of filesystem tree\n" |
| 251 | "\t-e\tExtract control files to directory\n" |
| 252 | "\t-x\tExctract packages filesystem tree to directory\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 253 | "\t-X\tVerbose extract" |
Glenn L McGrath | 7541e3a | 2001-01-02 23:41:50 +0000 | [diff] [blame] | 254 | #endif |
| 255 | ; |
| 256 | #endif |
| 257 | |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 258 | #if defined BB_DU |
| 259 | const char du_usage[] = |
Richard June | 6d0921c | 2001-01-22 22:35:38 +0000 | [diff] [blame] | 260 | "du [-?ls" |
| 261 | #ifdef BB_FEATURE_HUMAN_READABLE |
| 262 | "hm" |
| 263 | #endif |
| 264 | "k] [FILE]...\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 265 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 266 | "\n\nSummarizes disk space used for each FILE and/or directory.\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 267 | "Disk space is printed in units of 1024 bytes.\n\n" |
| 268 | "Options:\n" |
Richard June | 6d0921c | 2001-01-22 22:35:38 +0000 | [diff] [blame] | 269 | "\t-?\tshow usage information\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 270 | "\t-l\tcount sizes many times if hard linked\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 271 | "\t-s\tdisplay only a total for each argument" |
Richard June | 6d0921c | 2001-01-22 22:35:38 +0000 | [diff] [blame] | 272 | #ifdef BB_FEATURE_HUMAN_READABLE |
| 273 | "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" |
| 274 | "\t-m\tprint sizes in megabytes\n" |
| 275 | "\t-k\tprint sizes in kilobytes(default)\n" |
| 276 | #else |
| 277 | "\t-k\tprint sizes in kilobytes(compatability)\n" |
| 278 | #endif |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 279 | #endif |
| 280 | ; |
| 281 | #endif |
| 282 | |
| 283 | #if defined BB_DUMPKMAP |
| 284 | const char dumpkmap_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 285 | "dumpkmap > keymap" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 286 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 287 | "\n\nPrints out a binary keyboard translation table to standard input." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 288 | #endif |
| 289 | ; |
| 290 | #endif |
| 291 | |
| 292 | #if defined BB_DUTMP |
| 293 | const char dutmp_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 294 | "dutmp [FILE]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 295 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 296 | "\n\nDump utmp file format (pipe delimited) from FILE\n" |
| 297 | "or stdin to stdout. (i.e. 'dutmp /var/run/utmp')" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 298 | #endif |
| 299 | ; |
| 300 | #endif |
| 301 | |
| 302 | #if defined BB_ECHO |
| 303 | const char echo_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 304 | "echo [-neE] [ARG ...]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 305 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 306 | "\n\nPrints the specified ARGs to stdout\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 307 | "Options:\n" |
| 308 | "\t-n\tsuppress trailing newline\n" |
| 309 | "\t-e\tinterpret backslash-escaped characters (i.e. \\t=tab etc)\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 310 | "\t-E\tdisable interpretation of backslash-escaped characters" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 311 | #endif |
| 312 | ; |
| 313 | #endif |
| 314 | |
Eric Andersen | 1b355eb | 2000-09-05 17:37:48 +0000 | [diff] [blame] | 315 | #if defined BB_EXPR |
| 316 | const char expr_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 317 | "expr EXPRESSION" |
Eric Andersen | 1b355eb | 2000-09-05 17:37:48 +0000 | [diff] [blame] | 318 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 319 | "\n\nPrints the value of EXPRESSION to standard output.\n\n" |
| 320 | "EXPRESSION may be:\n" |
| 321 | "ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2\n" |
| 322 | "ARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0\n" |
| 323 | "ARG1 < ARG2 ARG1 is less than ARG2\n" |
| 324 | "ARG1 <= ARG2 ARG1 is less than or equal to ARG2\n" |
| 325 | "ARG1 = ARG2 ARG1 is equal to ARG2\n" |
| 326 | "ARG1 != ARG2 ARG1 is unequal to ARG2\n" |
| 327 | "ARG1 >= ARG2 ARG1 is greater than or equal to ARG2\n" |
| 328 | "ARG1 > ARG2 ARG1 is greater than ARG2\n" |
| 329 | "ARG1 + ARG2 arithmetic sum of ARG1 and ARG2\n" |
| 330 | "ARG1 - ARG2 arithmetic difference of ARG1 and ARG2\n" |
| 331 | "ARG1 * ARG2 arithmetic product of ARG1 and ARG2\n" |
| 332 | "ARG1 / ARG2 arithmetic quotient of ARG1 divided by ARG2\n" |
| 333 | "ARG1 % ARG2 arithmetic remainder of ARG1 divided by ARG2\n" |
| 334 | "STRING : REGEXP anchored pattern match of REGEXP in STRING\n" |
| 335 | "match STRING REGEXP same as STRING : REGEXP\n" |
| 336 | "substr STRING POS LENGTH substring of STRING, POS counted from 1\n" |
| 337 | "index STRING CHARS index in STRING where any CHARS is found, or 0\n" |
| 338 | "length STRING length of STRING\n" |
| 339 | "quote TOKEN interpret TOKEN as a string, even if it is a \n" |
| 340 | " keyword like `match' or an operator like `/'\n" |
| 341 | "( EXPRESSION ) value of EXPRESSION\n\n" |
| 342 | "Beware that many operators need to be escaped or quoted for shells.\n" |
| 343 | "Comparisons are arithmetic if both ARGs are numbers, else\n" |
| 344 | "lexicographical. Pattern matches return the string matched between \n" |
| 345 | "\\( and \\) or null; if \\( and \\) are not used, they return the number \n" |
| 346 | "of characters matched or 0." |
Eric Andersen | 1b355eb | 2000-09-05 17:37:48 +0000 | [diff] [blame] | 347 | |
| 348 | #endif |
| 349 | ; |
| 350 | #endif |
| 351 | |
| 352 | |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 353 | #if defined BB_TRUE_FALSE |
| 354 | const char false_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 355 | "false" |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 356 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 357 | "\n\nReturn an exit code of FALSE (1)." |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 358 | #endif |
| 359 | ; |
| 360 | #endif |
| 361 | |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 362 | #if defined BB_FDFLUSH |
| 363 | const char fdflush_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 364 | "fdflush DEVICE" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 365 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 366 | "\n\nForces floppy disk drive to detect disk change" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 367 | #endif |
| 368 | ; |
| 369 | #endif |
| 370 | |
| 371 | #if defined BB_FIND |
| 372 | const char find_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 373 | "find [PATH...] [EXPRESSION]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 374 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 375 | "\n\nSearch for files in a directory hierarchy. The default PATH is\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 376 | "the current directory; default EXPRESSION is '-print'\n\n" |
| 377 | "\nEXPRESSION may consist of:\n" |
| 378 | "\t-follow\t\tDereference symbolic links.\n" |
| 379 | "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN.\n" |
Matt Kraai | 096370d | 2001-02-07 03:52:38 +0000 | [diff] [blame] | 380 | #ifdef BB_FEATURE_FIND_TYPE |
| 381 | "\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)\n" |
| 382 | #endif |
| 383 | #ifdef BB_FEATURE_FIND_PERM |
| 384 | "\t-perm PERMS\tPermissions match any of (+NNN); all of (-NNN); or exactly (NNN)\n" |
| 385 | #endif |
| 386 | #ifdef BB_FEATURE_FIND_MTIME |
| 387 | "\t-mtime TIME\tModified time is greater than (+N); less than (-N); or exactly (N) days\n" |
| 388 | #endif |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 389 | #endif |
| 390 | ; |
| 391 | #endif |
| 392 | |
| 393 | #if defined BB_FREE |
| 394 | const char free_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 395 | "free" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 396 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 397 | "\n\nDisplays the amount of free and used system memory" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 398 | #endif |
| 399 | ; |
| 400 | #endif |
| 401 | |
| 402 | #if defined BB_FREERAMDISK |
| 403 | const char freeramdisk_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 404 | "freeramdisk DEVICE" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 405 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 406 | "\n\nFrees all memory used by the specified ramdisk." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 407 | #endif |
| 408 | ; |
| 409 | #endif |
| 410 | |
| 411 | #if defined BB_FSCK_MINIX |
| 412 | const char fsck_minix_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 413 | "Usage: fsck.minix [-larvsmf] /dev/name" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 414 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 415 | "\n\nPerforms a consistency check for MINIX filesystems.\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 416 | "Options:\n" |
| 417 | "\t-l\tLists all filenames\n" |
| 418 | "\t-r\tPerform interactive repairs\n" |
| 419 | "\t-a\tPerform automatic repairs\n" |
| 420 | "\t-v\tverbose\n" |
| 421 | "\t-s\tOutputs super-block information\n" |
| 422 | "\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 423 | "\t-f\tForce file system check." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 424 | #endif |
| 425 | ; |
| 426 | #endif |
| 427 | |
Mark Whitley | 6050618 | 2000-10-19 22:28:06 +0000 | [diff] [blame] | 428 | #if defined BB_GETOPT |
| 429 | const char getopt_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 430 | "getopt [OPTIONS]..." |
Mark Whitley | 6050618 | 2000-10-19 22:28:06 +0000 | [diff] [blame] | 431 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 432 | "\nParse command options\n" |
Mark Whitley | 6050618 | 2000-10-19 22:28:06 +0000 | [diff] [blame] | 433 | " -a, --alternative Allow long options starting with single -\n" |
| 434 | " -l, --longoptions=longopts Long options to be recognized\n" |
| 435 | " -n, --name=progname The name under which errors are reported\n" |
| 436 | " -o, --options=optstring Short options to be recognized\n" |
| 437 | " -q, --quiet Disable error reporting by getopt(3)\n" |
| 438 | " -Q, --quiet-output No normal output\n" |
| 439 | " -s, --shell=shell Set shell quoting conventions\n" |
| 440 | " -T, --test Test for getopt(1) version\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 441 | " -u, --unqote Do not quote the output" |
Mark Whitley | 6050618 | 2000-10-19 22:28:06 +0000 | [diff] [blame] | 442 | #endif |
| 443 | ; |
| 444 | #endif |
| 445 | |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 446 | #if defined BB_GREP |
| 447 | const char grep_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 448 | "grep [-ihHnqvs] pattern [files...]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 449 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 450 | "\n\nSearch for PATTERN in each FILE or standard input.\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 451 | "Options:\n" |
| 452 | "\t-H\tprefix output lines with filename where match was found\n" |
| 453 | "\t-h\tsuppress the prefixing filename on output\n" |
| 454 | "\t-i\tignore case distinctions\n" |
| 455 | "\t-n\tprint line number with output lines\n" |
| 456 | "\t-q\tbe quiet. Returns 0 if result was found, 1 otherwise\n" |
| 457 | "\t-v\tselect non-matching lines\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 458 | "\t-s\tsuppress file open/read error messages" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 459 | #endif |
| 460 | ; |
| 461 | #endif |
| 462 | |
| 463 | #if defined BB_GUNZIP |
| 464 | const char gunzip_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 465 | "gunzip [OPTION]... FILE" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 466 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 467 | "\n\nUncompress FILE (or standard input if FILE is '-').\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 468 | "Options:\n" |
| 469 | "\t-c\tWrite output to standard output\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 470 | "\t-t\tTest compressed file integrity" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 471 | #endif |
| 472 | ; |
| 473 | #endif |
| 474 | |
| 475 | #if defined BB_GZIP |
| 476 | const char gzip_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 477 | "gzip [OPTION]... FILE" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 478 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 479 | "\n\nCompress FILE with maximum compression.\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 480 | "When FILE is '-', reads standard input. Implies -c.\n\n" |
| 481 | "Options:\n" |
| 482 | "\t-c\tWrite output to standard output instead of FILE.gz\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 483 | "\t-d\tdecompress" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 484 | #endif |
| 485 | ; |
| 486 | #endif |
| 487 | |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 488 | #if defined BB_HALT |
| 489 | const char halt_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 490 | "halt" |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 491 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 492 | "\n\nHalt the system." |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 493 | #endif |
| 494 | ; |
Matt Kraai | 8690572 | 2000-07-19 18:20:02 +0000 | [diff] [blame] | 495 | #endif |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 496 | |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 497 | #if defined BB_HEAD |
| 498 | const char head_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 499 | "head [OPTION] [FILE]..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 500 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 501 | "\n\nPrint first 10 lines of each FILE to standard output.\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 502 | "With more than one FILE, precede each with a header giving the\n" |
| 503 | "file name. With no FILE, or when FILE is -, read standard input.\n\n" |
| 504 | |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 505 | "Options:\n" "\t-n NUM\t\tPrint first NUM lines instead of first 10" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 506 | #endif |
| 507 | ; |
| 508 | #endif |
| 509 | |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 510 | #if defined BB_HOSTID |
| 511 | const char hostid_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 512 | "hostid" |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 513 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 514 | "\n\nPrint out a unique 32-bit identifier for the machine." |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 515 | #endif |
| 516 | ; |
| 517 | #endif |
| 518 | |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 519 | #if defined BB_HOSTNAME |
| 520 | const char hostname_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 521 | "hostname [OPTION] {hostname | -F file}" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 522 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 523 | "\n\nGet or set the hostname or DNS domain name. If a hostname is given\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 524 | "(or a file with the -F parameter), the host name will be set.\n\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 525 | |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 526 | "Options:\n" |
| 527 | "\t-s\t\tShort\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 528 | "\t-i\t\tAddresses for the hostname\n" |
| 529 | "\t-d\t\tDNS domain name\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 530 | "\t-F, --file FILE\tUse the contents of FILE to specify the hostname" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 531 | #endif |
| 532 | ; |
| 533 | #endif |
| 534 | |
| 535 | #if defined BB_ID |
| 536 | const char id_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 537 | "id [OPTIONS]... [USERNAME]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 538 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 539 | "\n\nPrint information for USERNAME or the current user\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 540 | "Options:\n" |
| 541 | "\t-g\tprints only the group ID\n" |
| 542 | "\t-u\tprints only the user ID\n" |
Eric Andersen | c1b8f12 | 2001-01-25 05:12:02 +0000 | [diff] [blame] | 543 | "\t-n\tprint a name instead of a number (with for -ug)\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 544 | "\t-r\tprints the real user ID instead of the effective ID (with -ug)" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 545 | #endif |
| 546 | ; |
| 547 | #endif |
| 548 | |
| 549 | #if defined BB_INSMOD |
| 550 | const char insmod_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 551 | "insmod [OPTION]... MODULE [symbol=value]..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 552 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 553 | "\n\nLoads the specified kernel modules into the kernel.\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 554 | "Options:\n" |
| 555 | "\t-f\tForce module to load into the wrong kernel version.\n" |
| 556 | "\t-k\tMake module autoclean-able.\n" |
Eric Andersen | 8c5cb31 | 2001-01-24 19:15:07 +0000 | [diff] [blame] | 557 | "\t-v\tverbose output\n" |
| 558 | "\t-L\tLock to prevent simultaneous loads of a module\n" |
| 559 | "\t-x\tdo not export externs" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 560 | #endif |
| 561 | ; |
| 562 | #endif |
| 563 | |
| 564 | #if defined BB_KILL |
| 565 | const char kill_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 566 | "kill [-signal] process-id [process-id ...]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 567 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 568 | "\n\nSend a signal (default is SIGTERM) to the specified process(es).\n\n" |
| 569 | "Options:\n" "\t-l\tList all signal names and numbers." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 570 | #endif |
| 571 | ; |
| 572 | #endif |
| 573 | |
| 574 | #if defined BB_KILLALL |
| 575 | const char killall_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 576 | "killall [-signal] process-name [process-name ...]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 577 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 578 | "\n\nSend a signal (default is SIGTERM) to the specified process(es).\n\n" |
| 579 | "Options:\n" "\t-l\tList all signal names and numbers." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 580 | #endif |
| 581 | ; |
| 582 | #endif |
| 583 | |
| 584 | #if defined BB_LENGTH |
| 585 | const char length_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 586 | "length STRING" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 587 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 588 | "\n\nPrints out the length of the specified STRING." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 589 | #endif |
| 590 | ; |
| 591 | #endif |
| 592 | |
| 593 | #if defined BB_LN |
| 594 | const char ln_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 595 | "ln [OPTION] TARGET... LINK_NAME|DIRECTORY" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 596 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 597 | "\n\nCreate a link named LINK_NAME or DIRECTORY to the specified TARGET\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 598 | "\nYou may use '--' to indicate that all following arguments are non-options.\n\n" |
| 599 | "Options:\n" |
| 600 | "\t-s\tmake symbolic links instead of hard links\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 601 | "\t-f\tremove existing destination files\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 602 | "\t-n\tno dereference symlinks - treat like normal file" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 603 | #endif |
| 604 | ; |
| 605 | #endif |
| 606 | |
| 607 | #if defined BB_LOADACM |
| 608 | const char loadacm_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 609 | "loadacm < mapfile" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 610 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 611 | "\n\nLoads an acm from standard input." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 612 | #endif |
| 613 | ; |
| 614 | #endif |
| 615 | |
| 616 | #if defined BB_LOADFONT |
| 617 | const char loadfont_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 618 | "loadfont < font" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 619 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 620 | "\n\nLoads a console font from standard input." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 621 | #endif |
| 622 | ; |
| 623 | #endif |
| 624 | |
| 625 | #if defined BB_LOADKMAP |
| 626 | const char loadkmap_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 627 | "loadkmap < keymap" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 628 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 629 | "\n\nLoads a binary keyboard translation table from standard input." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 630 | #endif |
| 631 | ; |
| 632 | #endif |
| 633 | |
| 634 | #if defined BB_LOGGER |
| 635 | const char logger_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 636 | "logger [OPTION]... [MESSAGE]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 637 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 638 | "\n\nWrite MESSAGE to the system log. If MESSAGE is omitted, log stdin.\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 639 | "Options:\n" |
| 640 | "\t-s\tLog to stderr as well as the system log.\n" |
| 641 | "\t-t\tLog using the specified tag (defaults to user name).\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 642 | "\t-p\tEnter the message with the specified priority.\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 643 | "\t\tThis may be numerical or a ``facility.level'' pair." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 644 | #endif |
| 645 | ; |
| 646 | #endif |
| 647 | |
| 648 | #if defined BB_LOGNAME |
| 649 | const char logname_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 650 | "logname" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 651 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 652 | "\n\nPrint the name of the current user." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 653 | #endif |
| 654 | ; |
| 655 | #endif |
| 656 | |
| 657 | #if defined BB_LS |
| 658 | const char ls_usage[] = |
Eric Andersen | 11c6552 | 2000-09-07 17:24:47 +0000 | [diff] [blame] | 659 | "ls [-1Aa" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 660 | #ifdef BB_FEATURE_LS_TIMESTAMPS |
| 661 | "c" |
| 662 | #endif |
Eric Andersen | 11c6552 | 2000-09-07 17:24:47 +0000 | [diff] [blame] | 663 | "Cd" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 664 | #ifdef BB_FEATURE_LS_TIMESTAMPS |
| 665 | "e" |
| 666 | #endif |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 667 | #ifdef BB_FEATURE_LS_FILETYPES |
| 668 | "F" |
| 669 | #endif |
Eric Andersen | 11c6552 | 2000-09-07 17:24:47 +0000 | [diff] [blame] | 670 | "iln" |
| 671 | #ifdef BB_FEATURE_LS_FILETYPES |
| 672 | "p" |
| 673 | #endif |
Eric Andersen | 5b17693 | 2000-09-22 20:22:28 +0000 | [diff] [blame] | 674 | #ifdef BB_FEATURE_LS_FOLLOWLINKS |
| 675 | "L" |
| 676 | #endif |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 677 | #ifdef BB_FEATURE_LS_RECURSIVE |
| 678 | "R" |
| 679 | #endif |
Eric Andersen | 11c6552 | 2000-09-07 17:24:47 +0000 | [diff] [blame] | 680 | #ifdef BB_FEATURE_LS_SORTFILES |
| 681 | "rS" |
| 682 | #endif |
| 683 | "s" |
| 684 | #ifdef BB_FEATURE_AUTOWIDTH |
| 685 | "T" |
| 686 | #endif |
| 687 | #ifdef BB_FEATURE_LS_TIMESTAMPS |
| 688 | "tu" |
| 689 | #endif |
| 690 | #ifdef BB_FEATURE_LS_SORTFILES |
| 691 | "v" |
| 692 | #endif |
| 693 | #ifdef BB_FEATURE_AUTOWIDTH |
| 694 | "w" |
| 695 | #endif |
| 696 | "x" |
| 697 | #ifdef BB_FEATURE_LS_SORTFILES |
| 698 | "X" |
| 699 | #endif |
Richard June | 6d0921c | 2001-01-22 22:35:38 +0000 | [diff] [blame] | 700 | #ifdef BB_FEATURE_HUMAN_READABLE |
| 701 | "h" |
| 702 | #endif |
| 703 | "k] [filenames...]\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 704 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 705 | "\n\nList directory contents\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 706 | "Options:\n" |
Eric Andersen | 11c6552 | 2000-09-07 17:24:47 +0000 | [diff] [blame] | 707 | "\t-1\tlist files in a single column\n" |
| 708 | "\t-A\tdo not list implied . and ..\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 709 | "\t-a\tdo not hide entries starting with .\n" |
Eric Andersen | 11c6552 | 2000-09-07 17:24:47 +0000 | [diff] [blame] | 710 | "\t-C\tlist entries by columns\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 711 | #ifdef BB_FEATURE_LS_TIMESTAMPS |
| 712 | "\t-c\twith -l: show ctime (the time of last\n" |
| 713 | "\t\tmodification of file status information)\n" |
| 714 | #endif |
| 715 | "\t-d\tlist directory entries instead of contents\n" |
| 716 | #ifdef BB_FEATURE_LS_TIMESTAMPS |
| 717 | "\t-e\tlist both full date and full time\n" |
| 718 | #endif |
Eric Andersen | 11c6552 | 2000-09-07 17:24:47 +0000 | [diff] [blame] | 719 | #ifdef BB_FEATURE_LS_FILETYPES |
| 720 | "\t-F\tappend indicator (one of */=@|) to entries\n" |
| 721 | #endif |
| 722 | "\t-i\tlist the i-node for each file\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 723 | "\t-l\tuse a long listing format\n" |
| 724 | "\t-n\tlist numeric UIDs and GIDs instead of names\n" |
| 725 | #ifdef BB_FEATURE_LS_FILETYPES |
| 726 | "\t-p\tappend indicator (one of /=@|) to entries\n" |
| 727 | #endif |
Eric Andersen | 5b17693 | 2000-09-22 20:22:28 +0000 | [diff] [blame] | 728 | #ifdef BB_FEATURE_LS_FOLLOWLINKS |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 729 | "\t-L\tlist entries pointed to by symbolic links\n" |
Eric Andersen | 5b17693 | 2000-09-22 20:22:28 +0000 | [diff] [blame] | 730 | #endif |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 731 | #ifdef BB_FEATURE_LS_RECURSIVE |
| 732 | "\t-R\tlist subdirectories recursively\n" |
| 733 | #endif |
Eric Andersen | 11c6552 | 2000-09-07 17:24:47 +0000 | [diff] [blame] | 734 | #ifdef BB_FEATURE_LS_SORTFILES |
| 735 | "\t-r\tsort the listing in reverse order\n" |
| 736 | "\t-S\tsort the listing by file size\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 737 | #endif |
Eric Andersen | 11c6552 | 2000-09-07 17:24:47 +0000 | [diff] [blame] | 738 | "\t-s\tlist the size of each file, in blocks\n" |
| 739 | #ifdef BB_FEATURE_AUTOWIDTH |
| 740 | "\t-T NUM\tassume Tabstop every NUM columns\n" |
| 741 | #endif |
| 742 | #ifdef BB_FEATURE_LS_TIMESTAMPS |
| 743 | "\t-t\twith -l: show modification time (the time of last\n" |
| 744 | "\t\tchange of the file)\n" |
| 745 | "\t-u\twith -l: show access time (the time of last\n" |
| 746 | "\t\taccess of the file)\n" |
| 747 | #endif |
| 748 | #ifdef BB_FEATURE_LS_SORTFILES |
| 749 | "\t-v\tsort the listing by version\n" |
| 750 | #endif |
| 751 | #ifdef BB_FEATURE_AUTOWIDTH |
| 752 | "\t-w NUM\tassume the terminal is NUM columns wide\n" |
| 753 | #endif |
| 754 | "\t-x\tlist entries by lines instead of by columns\n" |
| 755 | #ifdef BB_FEATURE_LS_SORTFILES |
| 756 | "\t-X\tsort the listing by extension\n" |
| 757 | #endif |
Richard June | 6d0921c | 2001-01-22 22:35:38 +0000 | [diff] [blame] | 758 | |
| 759 | #ifdef BB_FEATURE_HUMAN_READABLE |
| 760 | "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" |
| 761 | "\t-k\tprint sizes in kilobytes(default)\n" |
| 762 | #else |
| 763 | "\t-k\tprint sizes in kilobytes(compatability)" |
| 764 | #endif |
| 765 | |
Eric Andersen | 11c6552 | 2000-09-07 17:24:47 +0000 | [diff] [blame] | 766 | #endif /* BB_FEATURE_TRIVIAL_HELP */ |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 767 | ; |
Eric Andersen | 11c6552 | 2000-09-07 17:24:47 +0000 | [diff] [blame] | 768 | #endif /* BB_LS */ |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 769 | |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 770 | #if defined BB_LSMOD |
| 771 | const char lsmod_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 772 | "lsmod" |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 773 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 774 | "\n\nList the currently loaded kernel modules." |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 775 | #endif |
| 776 | ; |
| 777 | #endif |
| 778 | |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 779 | #if defined BB_MAKEDEVS |
| 780 | const char makedevs_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 781 | "makedevs NAME TYPE MAJOR MINOR FIRST LAST [s]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 782 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 783 | "\n\nCreates a range of block or character special files\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 784 | "TYPEs include:\n" |
| 785 | "\tb:\tMake a block (buffered) device.\n" |
| 786 | "\tc or u:\tMake a character (un-buffered) device.\n" |
| 787 | "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes.\n\n" |
| 788 | "FIRST specifies the number appended to NAME to create the first device.\n" |
| 789 | "LAST specifies the number of the last item that should be created.\n" |
| 790 | "If 's' is the last argument, the base device is created as well.\n\n" |
| 791 | "For example:\n" |
| 792 | "\tmakedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 793 | "\tmakedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 794 | #endif |
| 795 | ; |
| 796 | #endif |
| 797 | |
| 798 | #if defined BB_MD5SUM |
| 799 | const char md5sum_usage[] = |
| 800 | "md5sum [OPTION] [FILE]...\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 801 | "or: md5sum [OPTION] -c [FILE]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 802 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 803 | "\n\nPrint or check MD5 checksums.\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 804 | "Options:\n" |
| 805 | "With no FILE, or when FILE is -, read standard input.\n\n" |
| 806 | "\t-b\tread files in binary mode\n" |
| 807 | "\t-c\tcheck MD5 sums against given list\n" |
| 808 | "\t-t\tread files in text mode (default)\n" |
| 809 | "\t-g\tread a string\n" |
| 810 | "\nThe following two options are useful only when verifying checksums:\n" |
| 811 | "\t-s,\tdon't output anything, status code shows success\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 812 | "\t-w,\twarn about improperly formated MD5 checksum lines" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 813 | #endif |
| 814 | ; |
| 815 | #endif |
| 816 | |
| 817 | #if defined BB_MKDIR |
| 818 | const char mkdir_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 819 | "mkdir [OPTION] DIRECTORY..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 820 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 821 | "\n\nCreate the DIRECTORY(ies), if they do not already exist\n\n" |
| 822 | |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 823 | "Options:\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 824 | "\t-m\tset permission mode (as in chmod), not rwxrwxrwx - umask\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 825 | "\t-p\tno error if existing, make parent directories as needed" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 826 | #endif |
| 827 | ; |
| 828 | #endif |
| 829 | |
| 830 | #if defined BB_MKFIFO |
| 831 | const char mkfifo_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 832 | "mkfifo [OPTIONS] name" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 833 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 834 | "\n\nCreates a named pipe (identical to 'mknod name p')\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 835 | "Options:\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 836 | "\t-m\tcreate the pipe using the specified mode (default a=rw)" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 837 | #endif |
| 838 | ; |
| 839 | #endif |
| 840 | |
| 841 | #if defined BB_MKFS_MINIX |
| 842 | const char mkfs_minix_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 843 | "mkfs.minix [-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 844 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 845 | "\n\nMake a MINIX filesystem.\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 846 | "Options:\n" |
| 847 | "\t-c\t\tCheck the device for bad blocks\n" |
| 848 | "\t-n [14|30]\tSpecify the maximum length of filenames\n" |
| 849 | "\t-i INODES\tSpecify the number of inodes for the filesystem\n" |
| 850 | "\t-l FILENAME\tRead the bad blocks list from FILENAME\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 851 | "\t-v\t\tMake a Minix version 2 filesystem" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 852 | #endif |
| 853 | ; |
| 854 | #endif |
| 855 | |
| 856 | #if defined BB_MKNOD |
| 857 | const char mknod_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 858 | "mknod [OPTIONS] NAME TYPE MAJOR MINOR" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 859 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 860 | "\n\nCreate a special file (block, character, or pipe).\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 861 | "Options:\n" |
| 862 | "\t-m\tcreate the special file using the specified mode (default a=rw)\n\n" |
| 863 | "TYPEs include:\n" |
| 864 | "\tb:\tMake a block (buffered) device.\n" |
| 865 | "\tc or u:\tMake a character (un-buffered) device.\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 866 | "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 867 | #endif |
| 868 | ; |
| 869 | #endif |
| 870 | |
| 871 | #if defined BB_MKSWAP |
| 872 | const char mkswap_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 873 | "mkswap [-c] [-v0|-v1] device [block-count]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 874 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 875 | "\n\nPrepare a disk partition to be used as a swap partition.\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 876 | "Options:\n" "\t-c\t\tCheck for read-ability.\n" |
| 877 | "\t-v0\t\tMake version 0 swap [max 128 Megs].\n" |
| 878 | "\t-v1\t\tMake version 1 swap [big!] (default for kernels > 2.1.117).\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 879 | "\tblock-count\tNumber of block to use (default is entire partition)." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 880 | #endif |
| 881 | ; |
| 882 | #endif |
| 883 | |
| 884 | #if defined BB_MKTEMP |
| 885 | const char mktemp_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 886 | "mktemp [-q] TEMPLATE" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 887 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 888 | "\n\nCreates a temporary file with its name based on TEMPLATE.\n" |
| 889 | "TEMPLATE is any name with six `Xs' (i.e. /tmp/temp.XXXXXX)." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 890 | #endif |
| 891 | ; |
| 892 | #endif |
| 893 | |
| 894 | #if defined BB_MORE |
| 895 | const char more_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 896 | "more [FILE ...]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 897 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 898 | "\n\nMore is a filter for viewing FILE one screenful at a time." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 899 | #endif |
| 900 | ; |
| 901 | #endif |
| 902 | |
| 903 | #if defined BB_MOUNT |
| 904 | const char mount_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 905 | "mount [flags] device directory [-o options,more-options]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 906 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 907 | "\n\nMount a filesystem\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 908 | "Flags:\n" |
| 909 | "\t-a:\t\tMount all filesystems in fstab.\n" |
| 910 | #ifdef BB_MTAB |
| 911 | "\t-f:\t\t\"Fake\" mount. Add entry to mount table but don't mount it.\n" |
| 912 | "\t-n:\t\tDon't write a mount table entry.\n" |
| 913 | #endif |
| 914 | "\t-o option:\tOne of many filesystem options, listed below.\n" |
| 915 | "\t-r:\t\tMount the filesystem read-only.\n" |
| 916 | "\t-t fs-type:\tSpecify the filesystem type.\n" |
| 917 | "\t-w:\t\tMount for reading and writing (default).\n" |
| 918 | "\n" |
| 919 | "Options for use with the \"-o\" flag:\n" |
| 920 | "\tasync/sync:\tWrites are asynchronous / synchronous.\n" |
| 921 | "\tatime/noatime:\tEnable / disable updates to inode access times.\n" |
| 922 | "\tdev/nodev:\tAllow use of special device files / disallow them.\n" |
| 923 | "\texec/noexec:\tAllow use of executable files / disallow them.\n" |
| 924 | #if defined BB_FEATURE_MOUNT_LOOP |
| 925 | "\tloop:\t\tMounts a file via loop device.\n" |
| 926 | #endif |
| 927 | "\tsuid/nosuid:\tAllow set-user-id-root programs / disallow them.\n" |
| 928 | "\tremount:\tRe-mount a currently-mounted filesystem, changing its flags.\n" |
| 929 | "\tro/rw:\t\tMount for read-only / read-write.\n" |
| 930 | "\nThere are EVEN MORE flags that are specific to each filesystem.\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 931 | "You'll have to see the written documentation for those." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 932 | #endif |
| 933 | ; |
| 934 | #endif |
| 935 | |
| 936 | #if defined BB_MT |
| 937 | const char mt_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 938 | "mt [-f device] opcode value" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 939 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 940 | "\n\nControl magnetic tape drive operation\n" |
Eric Andersen | 8cbac44 | 2000-08-11 20:14:11 +0000 | [diff] [blame] | 941 | "\nAvailable Opcodes:\n\n" |
| 942 | "bsf bsfm bsr bss datacompression drvbuffer eof eom erase\n" |
| 943 | "fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2\n" |
| 944 | "ras3 reset retension rew rewoffline seek setblk setdensity\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 945 | "setpart tell unload unlock weof wset" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 946 | #endif |
| 947 | ; |
| 948 | #endif |
| 949 | |
| 950 | #if defined BB_CP_MV |
| 951 | const char mv_usage[] = |
| 952 | "mv SOURCE DEST\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 953 | " or: mv SOURCE... DIRECTORY" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 954 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 955 | "\n\nRename SOURCE to DEST, or move SOURCE(s) to DIRECTORY." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 956 | #endif |
| 957 | ; |
| 958 | #endif |
| 959 | |
| 960 | #if defined BB_NC |
| 961 | const char nc_usage[] = |
Matt Kraai | 1d70267 | 2001-02-07 04:09:23 +0000 | [diff] [blame^] | 962 | "nc [-p PORT] IP PORT\n" |
| 963 | " or: nc -l -p PORT" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 964 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Matt Kraai | 1d70267 | 2001-02-07 04:09:23 +0000 | [diff] [blame^] | 965 | "\n\nNetcat opens a pipe to IP:PORT\n" |
| 966 | "Options:\n" |
| 967 | "\t-l\tListen on the socket.\n" |
| 968 | "\t-p PORT\tBind the local port to PORT." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 969 | #endif |
| 970 | ; |
| 971 | #endif |
| 972 | |
| 973 | #if defined BB_NSLOOKUP |
| 974 | const char nslookup_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 975 | "nslookup [HOST]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 976 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 977 | "\n\nQueries the nameserver for the IP address of the given HOST" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 978 | #endif |
| 979 | ; |
| 980 | #endif |
| 981 | |
| 982 | #if defined BB_PING |
| 983 | #if defined BB_FEATURE_SIMPLE_PING |
| 984 | const char ping_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 985 | "ping host" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 986 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 987 | "\n\nSend ICMP ECHO_REQUEST packets to network hosts" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 988 | #endif |
| 989 | ; |
| 990 | #else /* ! defined BB_FEATURE_SIMPLE_PING */ |
| 991 | const char ping_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 992 | "ping [OPTION]... host" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 993 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 994 | "\n\nSend ICMP ECHO_REQUEST packets to network hosts.\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 995 | "Options:\n" |
| 996 | "\t-c COUNT\tSend only COUNT pings.\n" |
| 997 | "\t-s SIZE\t\tSend SIZE data bytes in packets (default=56).\n" |
| 998 | "\t-q\t\tQuiet mode, only displays output at start\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 999 | "\t\t\tand when finished." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1000 | #endif |
| 1001 | ; |
| 1002 | #endif |
| 1003 | #endif |
| 1004 | |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 1005 | #if defined BB_POWEROFF |
| 1006 | const char poweroff_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1007 | "poweroff" |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 1008 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1009 | "\n\nHalt the system and request that the kernel shut off the power." |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 1010 | #endif |
| 1011 | ; |
| 1012 | #endif |
| 1013 | |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1014 | #if defined BB_PRINTF |
| 1015 | const char printf_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1016 | "printf FORMAT [ARGUMENT...]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1017 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1018 | "\n\nFormats and prints ARGUMENT(s) according to FORMAT,\n" |
| 1019 | "Where FORMAT controls the output exactly as in C printf." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1020 | #endif |
| 1021 | ; |
| 1022 | #endif |
| 1023 | |
| 1024 | #if defined BB_PS |
| 1025 | const char ps_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1026 | "ps" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1027 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1028 | "\n\nReport process status\n" |
| 1029 | "\nThis version of ps accepts no options." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1030 | #endif |
| 1031 | ; |
| 1032 | #endif |
| 1033 | |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 1034 | #if defined BB_PWD |
| 1035 | const char pwd_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1036 | "pwd" |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 1037 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1038 | "\n\nPrint the full filename of the current working directory." |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 1039 | #endif |
| 1040 | ; |
| 1041 | #endif |
| 1042 | |
Eric Andersen | 918507e | 2000-08-21 22:46:33 +0000 | [diff] [blame] | 1043 | #if defined BB_RDATE |
| 1044 | const char rdate_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1045 | "rdate [OPTION] HOST" |
Eric Andersen | 918507e | 2000-08-21 22:46:33 +0000 | [diff] [blame] | 1046 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1047 | "\n\nGet and possibly set the system date and time from a remote HOST.\n" |
Eric Andersen | 918507e | 2000-08-21 22:46:33 +0000 | [diff] [blame] | 1048 | "Options:\n" |
| 1049 | "\t-s\tSet the system date and time (default).\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1050 | "\t-p\tPrint the date and time." |
Eric Andersen | 918507e | 2000-08-21 22:46:33 +0000 | [diff] [blame] | 1051 | #endif |
| 1052 | ; |
| 1053 | #endif |
| 1054 | |
Mark Whitley | 872138d | 2000-10-09 18:56:47 +0000 | [diff] [blame] | 1055 | #if defined BB_READLINK |
| 1056 | const char readlink_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1057 | "readlink" |
Mark Whitley | 872138d | 2000-10-09 18:56:47 +0000 | [diff] [blame] | 1058 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1059 | "\n\nRead a symbolic link." |
Mark Whitley | 872138d | 2000-10-09 18:56:47 +0000 | [diff] [blame] | 1060 | #endif |
| 1061 | ; |
| 1062 | #endif |
| 1063 | |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 1064 | #if defined BB_REBOOT |
| 1065 | const char reboot_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1066 | "reboot" |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 1067 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1068 | "\n\nReboot the system." |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 1069 | #endif |
| 1070 | ; |
| 1071 | #endif |
Eric Andersen | bf960f5 | 2000-07-21 21:32:12 +0000 | [diff] [blame] | 1072 | |
| 1073 | #if defined BB_RENICE |
| 1074 | const char renice_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1075 | "renice priority pid [pid ...]" |
Eric Andersen | bf960f5 | 2000-07-21 21:32:12 +0000 | [diff] [blame] | 1076 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1077 | "\n\nChanges priority of running processes. Allowed priorities range\n" |
Eric Andersen | bf960f5 | 2000-07-21 21:32:12 +0000 | [diff] [blame] | 1078 | "from 20 (the process runs only when nothing else is running) to 0\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1079 | "(default priority) to -20 (almost nothing else ever gets to run)." |
Eric Andersen | bf960f5 | 2000-07-21 21:32:12 +0000 | [diff] [blame] | 1080 | #endif |
| 1081 | ; |
| 1082 | #endif |
| 1083 | |
Eric Andersen | fa405d0 | 2000-08-21 21:18:52 +0000 | [diff] [blame] | 1084 | |
| 1085 | #if defined BB_RESET |
| 1086 | const char reset_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1087 | "reset" |
Eric Andersen | fa405d0 | 2000-08-21 21:18:52 +0000 | [diff] [blame] | 1088 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1089 | "\n\nResets the screen." |
Eric Andersen | fa405d0 | 2000-08-21 21:18:52 +0000 | [diff] [blame] | 1090 | #endif |
| 1091 | ; |
| 1092 | #endif |
| 1093 | |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1094 | #if defined BB_RM |
| 1095 | const char rm_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1096 | "rm [OPTION]... FILE..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1097 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1098 | "\n\nRemove (unlink) the FILE(s). You may use '--' to\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1099 | "indicate that all following arguments are non-options.\n\n" |
| 1100 | "Options:\n" |
| 1101 | "\t-f\t\tremove existing destinations, never prompt\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1102 | "\t-r or -R\tremove the contents of directories recursively" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1103 | #endif |
| 1104 | ; |
| 1105 | #endif |
| 1106 | |
| 1107 | #if defined BB_RMDIR |
| 1108 | const char rmdir_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1109 | "rmdir [OPTION]... DIRECTORY..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1110 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1111 | "\n\nRemove the DIRECTORY(ies), if they are empty." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1112 | #endif |
| 1113 | ; |
| 1114 | #endif |
| 1115 | |
| 1116 | #if defined BB_RMMOD |
| 1117 | const char rmmod_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1118 | "rmmod [OPTION]... [MODULE]..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1119 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1120 | "\n\nUnloads the specified kernel modules from the kernel.\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1121 | "Options:\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1122 | "\t-a\tTry to remove all unused kernel modules." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1123 | #endif |
| 1124 | ; |
| 1125 | #endif |
| 1126 | |
Eric Andersen | e500d20 | 2000-11-29 21:38:11 +0000 | [diff] [blame] | 1127 | #if defined BB_RPMUNPACK |
| 1128 | const char rpmunpack_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1129 | "rpmunpack < package.rpm | gunzip | cpio -idmuv" |
Eric Andersen | e500d20 | 2000-11-29 21:38:11 +0000 | [diff] [blame] | 1130 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1131 | "\n\nExtracts an rpm archive." |
Eric Andersen | e500d20 | 2000-11-29 21:38:11 +0000 | [diff] [blame] | 1132 | #endif |
| 1133 | ; |
| 1134 | #endif |
| 1135 | |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1136 | #if defined BB_SED |
| 1137 | const char sed_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1138 | "sed [-Vhnef] pattern [files...]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1139 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1140 | "\n\n" |
Eric Andersen | 4d5ac2f | 2000-08-25 00:23:36 +0000 | [diff] [blame] | 1141 | "-n\t\tsuppress automatic printing of pattern space\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1142 | "-e script\tadd the script to the commands to be executed\n" |
| 1143 | "-f scriptfile\tadd the contents of script-file to the commands to be executed\n" |
Eric Andersen | 4d5ac2f | 2000-08-25 00:23:36 +0000 | [diff] [blame] | 1144 | "-h\t\tdisplay this help message\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1145 | "\n" |
| 1146 | "If no -e or -f is given, the first non-option argument is taken as the\n" |
| 1147 | "sed script to interpret. All remaining arguments are names of input\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1148 | "files; if no input files are specified, then the standard input is read." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1149 | #endif |
| 1150 | ; |
| 1151 | #endif |
| 1152 | |
| 1153 | #if defined BB_SETKEYCODES |
| 1154 | const char setkeycodes_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1155 | "setkeycodes SCANCODE KEYCODE ..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1156 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1157 | "\n\nSet entries into the kernel's scancode-to-keycode map,\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1158 | "allowing unusual keyboards to generate usable keycodes.\n\n" |
| 1159 | "SCANCODE may be either xx or e0xx (hexadecimal),\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1160 | "and KEYCODE is given in decimal" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1161 | #endif |
| 1162 | ; |
| 1163 | #endif |
| 1164 | |
| 1165 | #if defined BB_SH |
| 1166 | const char shell_usage[] = |
| 1167 | "sh [FILE]...\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1168 | " or: sh -c command [args]..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1169 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1170 | "\n\nlash: The BusyBox command interpreter (shell)." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1171 | #endif |
| 1172 | ; |
| 1173 | #endif |
| 1174 | |
| 1175 | #if defined BB_SLEEP |
| 1176 | const char sleep_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1177 | "sleep N" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1178 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1179 | "\n\nPause for N seconds." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1180 | #endif |
| 1181 | ; |
| 1182 | #endif |
| 1183 | |
| 1184 | #if defined BB_SORT |
| 1185 | const char sort_usage[] = |
| 1186 | "sort [-n]" |
| 1187 | #ifdef BB_FEATURE_SORT_REVERSE |
| 1188 | " [-r]" |
| 1189 | #endif |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1190 | " [FILE]..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1191 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1192 | "\n\nSorts lines of text in the specified files" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1193 | #endif |
| 1194 | ; |
| 1195 | #endif |
| 1196 | |
| 1197 | #if defined BB_SWAPONOFF |
| 1198 | const char swapoff_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1199 | "swapoff [OPTION] [device]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1200 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1201 | "\n\nStop swapping virtual memory pages on the given device.\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1202 | "Options:\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1203 | "\t-a\tStop swapping on all swap devices" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1204 | #endif |
| 1205 | ; |
| 1206 | #endif |
| 1207 | |
| 1208 | #if defined BB_SWAPONOFF |
| 1209 | const char swapon_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1210 | "swapon [OPTION] [device]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1211 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1212 | "\n\nStart swapping virtual memory pages on the given device.\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1213 | "Options:\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1214 | "\t-a\tStart swapping on all swap devices" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1215 | #endif |
| 1216 | ; |
| 1217 | #endif |
| 1218 | |
| 1219 | #if defined BB_SYNC |
| 1220 | const char sync_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1221 | "sync" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1222 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1223 | "\n\nWrite all buffered filesystem blocks to disk." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1224 | #endif |
| 1225 | ; |
| 1226 | #endif |
| 1227 | |
| 1228 | #if defined BB_SYSLOGD |
| 1229 | const char syslogd_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1230 | "syslogd [OPTION]..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1231 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1232 | "\n\nLinux system and kernel (provides klogd) logging utility.\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1233 | "Note that this version of syslogd/klogd ignores /etc/syslog.conf.\n\n" |
| 1234 | "Options:\n" |
| 1235 | "\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n" |
| 1236 | "\t-n\t\tRun as a foreground process\n" |
| 1237 | #ifdef BB_FEATURE_KLOGD |
| 1238 | "\t-K\t\tDo not start up the klogd process\n" |
| 1239 | #endif |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1240 | "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)" |
Eric Andersen | ced2cef | 2000-07-20 23:41:24 +0000 | [diff] [blame] | 1241 | #ifdef BB_FEATURE_REMOTE_LOG |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1242 | "\n\t-R HOST[:PORT]\t\tLog remotely to IP or hostname on PORT (default PORT=514/UDP)\n" |
| 1243 | "\t-L\t\tLog locally as well as network logging (default is network only)" |
Eric Andersen | ced2cef | 2000-07-20 23:41:24 +0000 | [diff] [blame] | 1244 | #endif |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1245 | #endif |
| 1246 | ; |
| 1247 | #endif |
| 1248 | |
| 1249 | #if defined BB_TAIL |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1250 | const char tail_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1251 | "tail [OPTION]... [FILE]..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1252 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1253 | "\n\nPrint last 10 lines of each FILE to standard output.\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1254 | "With more than one FILE, precede each with a header giving the\n" |
| 1255 | "file name. With no FILE, or when FILE is -, read standard input.\n\n" |
| 1256 | "Options:\n" |
Eric Andersen | d5fa3e3 | 2000-08-02 16:42:58 +0000 | [diff] [blame] | 1257 | #ifndef BB_FEATURE_SIMPLE_TAIL |
Matt Kraai | 24ac017 | 2000-12-18 21:38:57 +0000 | [diff] [blame] | 1258 | "\t-c N[kbm]\toutput the last N bytes\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1259 | #endif |
Matt Kraai | 24ac017 | 2000-12-18 21:38:57 +0000 | [diff] [blame] | 1260 | "\t-n N[kbm]\tprint last N lines instead of last 10\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1261 | "\t-f\t\toutput data as the file grows" |
Eric Andersen | d5fa3e3 | 2000-08-02 16:42:58 +0000 | [diff] [blame] | 1262 | #ifndef BB_FEATURE_SIMPLE_TAIL |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1263 | "\n\t-q\t\tnever output headers giving file names\n" |
Matt Kraai | 24ac017 | 2000-12-18 21:38:57 +0000 | [diff] [blame] | 1264 | "\t-s SEC\t\twait SEC seconds between reads with -f\n" |
Eric Andersen | d5fa3e3 | 2000-08-02 16:42:58 +0000 | [diff] [blame] | 1265 | "\t-v\t\talways output headers giving file names\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1266 | "If the first character of N (bytes or lines) is a `+', output begins with \n" |
| 1267 | "the Nth item from the start of each file, otherwise, print the last N items\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1268 | "in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2)." |
Eric Andersen | d5fa3e3 | 2000-08-02 16:42:58 +0000 | [diff] [blame] | 1269 | //#else |
| 1270 | // "\nIf the first character of N (bytes or lines) is a `+', output begins with \n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1271 | // "the Nth item from the start of each file." |
Eric Andersen | d5fa3e3 | 2000-08-02 16:42:58 +0000 | [diff] [blame] | 1272 | #endif |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1273 | #endif |
| 1274 | ; |
| 1275 | #endif |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1276 | |
| 1277 | #if defined BB_TAR |
| 1278 | const char tar_usage[] = |
| 1279 | #ifdef BB_FEATURE_TAR_CREATE |
| 1280 | "tar -[cxtvO] " |
| 1281 | #else |
| 1282 | "tar -[xtvO] " |
| 1283 | #endif |
| 1284 | #if defined BB_FEATURE_TAR_EXCLUDE |
Eric Andersen | fdd5103 | 2000-08-02 18:48:26 +0000 | [diff] [blame] | 1285 | "[--exclude File] " |
Eric Andersen | 8cede00 | 2000-12-04 18:51:09 +0000 | [diff] [blame] | 1286 | "[-X File]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1287 | #endif |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1288 | "[-f tarFile] [FILE(s)] ..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1289 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1290 | "\n\nCreate, extract, or list files from a tar file.\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1291 | "Main operation mode:\n" |
| 1292 | #ifdef BB_FEATURE_TAR_CREATE |
| 1293 | "\tc\t\tcreate\n" |
| 1294 | #endif |
| 1295 | "\tx\t\textract\n" |
| 1296 | "\tt\t\tlist\n" |
| 1297 | "\nFile selection:\n" |
| 1298 | "\tf\t\tname of tarfile or \"-\" for stdin\n" |
| 1299 | "\tO\t\textract to stdout\n" |
| 1300 | #if defined BB_FEATURE_TAR_EXCLUDE |
Eric Andersen | fdd5103 | 2000-08-02 18:48:26 +0000 | [diff] [blame] | 1301 | "\texclude\t\tfile to exclude\n" |
Eric Andersen | 8cede00 | 2000-12-04 18:51:09 +0000 | [diff] [blame] | 1302 | "\tX\t\tfile with names to exclude\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1303 | #endif |
| 1304 | "\nInformative output:\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1305 | "\tv\t\tverbosely list files processed" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1306 | #endif |
| 1307 | ; |
| 1308 | #endif |
| 1309 | |
| 1310 | #if defined BB_TEE |
| 1311 | const char tee_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1312 | "tee [OPTION]... [FILE]..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1313 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1314 | "\n\nCopy standard input to each FILE, and also to standard output.\n\n" |
| 1315 | "Options:\n" "\t-a\tappend to the given FILEs, do not overwrite" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1316 | #endif |
| 1317 | ; |
| 1318 | #endif |
| 1319 | |
| 1320 | #if defined BB_TELNET |
| 1321 | const char telnet_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1322 | "telnet host [port]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1323 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1324 | "\n\nTelnet is used to establish interactive communication with another\n" |
| 1325 | "computer over a network using the TELNET protocol." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1326 | #endif |
| 1327 | ; |
| 1328 | #endif |
| 1329 | |
| 1330 | #if defined BB_TEST |
| 1331 | const char test_usage[] = |
| 1332 | "test EXPRESSION\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1333 | "or [ EXPRESSION ]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1334 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1335 | "\n\nChecks file types and compares values returning an exit\n" |
| 1336 | "code determined by the value of EXPRESSION." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1337 | #endif |
| 1338 | ; |
| 1339 | #endif |
| 1340 | |
| 1341 | #if defined BB_TOUCH |
| 1342 | const char touch_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1343 | "touch [-c] file [file ...]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1344 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1345 | "\n\nUpdate the last-modified date on the given file[s].\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1346 | "Options:\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1347 | "\t-c\tDo not create any files" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1348 | #endif |
| 1349 | ; |
| 1350 | #endif |
| 1351 | |
| 1352 | #if defined BB_TR |
| 1353 | const char tr_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1354 | "tr [-cds] STRING1 [STRING2]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1355 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1356 | "\n\nTranslate, squeeze, and/or delete characters from\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1357 | "standard input, writing to standard output.\n\n" |
| 1358 | "Options:\n" |
| 1359 | "\t-c\ttake complement of STRING1\n" |
| 1360 | "\t-d\tdelete input characters coded STRING1\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1361 | "\t-s\tsqueeze multiple output characters of STRING2 into one character" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1362 | #endif |
| 1363 | ; |
| 1364 | #endif |
| 1365 | |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 1366 | #if defined BB_TRUE_FALSE |
| 1367 | const char true_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1368 | "true" |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 1369 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1370 | "\n\nReturn an exit code of TRUE (0)." |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 1371 | #endif |
| 1372 | ; |
| 1373 | #endif |
| 1374 | |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1375 | #if defined BB_TTY |
| 1376 | const char tty_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1377 | "tty" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1378 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1379 | "\n\nPrint the file name of the terminal connected to standard input.\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1380 | "Options:\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1381 | "\t-s\tprint nothing, only return an exit status" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1382 | #endif |
| 1383 | ; |
| 1384 | #endif |
| 1385 | |
| 1386 | #if defined BB_UMOUNT |
| 1387 | const char umount_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1388 | "umount [flags] filesystem|directory" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1389 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1390 | "\nUnmount file systems\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1391 | "\nFlags:\n" "\t-a:\tUnmount all file systems" |
| 1392 | #ifdef BB_MTAB |
| 1393 | " in /etc/mtab\n\t-n:\tDon't erase /etc/mtab entries\n" |
| 1394 | #else |
| 1395 | "\n" |
| 1396 | #endif |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1397 | "\t-r:\tTry to remount devices as read-only if mount is busy" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1398 | #if defined BB_FEATURE_MOUNT_FORCE |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1399 | "\n\t-f:\tForce filesystem umount (i.e. unreachable NFS server)" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1400 | #endif |
| 1401 | #if defined BB_FEATURE_MOUNT_LOOP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1402 | "\n\t-l:\tDo not free loop device (if a loop device has been used)" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1403 | #endif |
| 1404 | #endif |
| 1405 | ; |
| 1406 | #endif |
| 1407 | |
| 1408 | #if defined BB_UNAME |
| 1409 | const char uname_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1410 | "uname [OPTION]..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1411 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1412 | "\n\nPrint certain system information. With no OPTION, same as -s.\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1413 | "Options:\n" |
| 1414 | "\t-a\tprint all information\n" |
| 1415 | "\t-m\tthe machine (hardware) type\n" |
| 1416 | "\t-n\tprint the machine's network node hostname\n" |
| 1417 | "\t-r\tprint the operating system release\n" |
| 1418 | "\t-s\tprint the operating system name\n" |
| 1419 | |
| 1420 | "\t-p\tprint the host processor type\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1421 | "\t-v\tprint the operating system version" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1422 | #endif |
| 1423 | ; |
| 1424 | #endif |
| 1425 | |
| 1426 | #if defined BB_UNIQ |
| 1427 | const char uniq_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1428 | "uniq [OPTION]... [INPUT [OUTPUT]]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1429 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1430 | "\n\nDiscard all but one of successive identical lines from INPUT\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1431 | "(or standard input), writing to OUTPUT (or standard output).\n" |
Eric Andersen | 5b5db38 | 2000-12-09 16:37:53 +0000 | [diff] [blame] | 1432 | "Options:\n" |
| 1433 | "\t-c\tprefix lines by the number of occurrences\n" |
| 1434 | "\t-d\tonly print duplicate lines\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1435 | "\t-u\tonly print unique lines" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1436 | #endif |
| 1437 | ; |
| 1438 | #endif |
| 1439 | |
Eric Andersen | cff3fe3 | 2000-09-20 19:22:26 +0000 | [diff] [blame] | 1440 | #if defined BB_UNIX2DOS |
| 1441 | const char unix2dos_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1442 | "unix2dos < unixfile > dosfile" |
Eric Andersen | cff3fe3 | 2000-09-20 19:22:26 +0000 | [diff] [blame] | 1443 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1444 | "\n\nConverts a text file from unix format to dos format." |
Eric Andersen | cff3fe3 | 2000-09-20 19:22:26 +0000 | [diff] [blame] | 1445 | #endif |
| 1446 | ; |
| 1447 | #endif |
| 1448 | |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1449 | #if defined BB_UPDATE |
| 1450 | const char update_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1451 | "update [options]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1452 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1453 | "\n\nPeriodically flushes filesystem buffers.\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1454 | "Options:\n" |
| 1455 | "\t-S\tforce use of sync(2) instead of flushing\n" |
| 1456 | "\t-s SECS\tcall sync this often (default 30)\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1457 | "\t-f SECS\tflush some buffers this often (default 5)" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1458 | #endif |
| 1459 | ; |
| 1460 | #endif |
| 1461 | |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 1462 | #if defined BB_UPTIME |
| 1463 | const char uptime_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1464 | "uptime" |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 1465 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1466 | "\n\nDisplay the time since the last boot." |
Matt Kraai | 2f46b66 | 2000-07-19 18:01:00 +0000 | [diff] [blame] | 1467 | #endif |
| 1468 | ; |
| 1469 | #endif |
| 1470 | |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1471 | #if defined BB_USLEEP |
| 1472 | const char usleep_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1473 | "usleep N" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1474 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1475 | "\n\nPause for N microseconds." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1476 | #endif |
| 1477 | ; |
| 1478 | #endif |
| 1479 | |
| 1480 | #if defined BB_UUDECODE |
| 1481 | const char uudecode_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1482 | "uudecode [FILE]..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1483 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1484 | "\n\nUudecode a file that is uuencoded.\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1485 | "Options:\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1486 | "\t-o FILE\tdirect output to FILE" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1487 | #endif |
| 1488 | ; |
| 1489 | #endif |
| 1490 | |
| 1491 | #if defined BB_UUENCODE |
| 1492 | const char uuencode_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1493 | "uuencode [OPTION] [INFILE] REMOTEFILE" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1494 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1495 | "\n\nUuencode a file.\n\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1496 | "Options:\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1497 | "\t-m\tuse base64 encoding as of RFC1521" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1498 | #endif |
| 1499 | ; |
| 1500 | #endif |
| 1501 | |
Eric Andersen | ffde867 | 2001-01-25 23:40:32 +0000 | [diff] [blame] | 1502 | #if defined BB_WATCHDOG |
| 1503 | const char watchdog_usage[] = |
| 1504 | "watchdog dev\n" |
| 1505 | #ifndef BB_FEATURE_TRIVIAL_HELP |
| 1506 | "\nPeriodically write to watchdog device \"dev\".\n" |
| 1507 | #endif |
| 1508 | ; |
| 1509 | #endif |
| 1510 | |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1511 | #if defined BB_WC |
| 1512 | const char wc_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1513 | "wc [OPTION]... [FILE]..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1514 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1515 | "\n\nPrint line, word, and byte counts for each FILE, and a total line if\n" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1516 | "more than one FILE is specified. With no FILE, read standard input.\n\n" |
| 1517 | "Options:\n" |
| 1518 | "\t-c\tprint the byte counts\n" |
| 1519 | "\t-l\tprint the newline counts\n" |
| 1520 | |
| 1521 | "\t-L\tprint the length of the longest line\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1522 | "\t-w\tprint the word counts" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1523 | #endif |
| 1524 | ; |
| 1525 | #endif |
| 1526 | |
Eric Andersen | 61a9d8d | 2000-09-04 15:16:51 +0000 | [diff] [blame] | 1527 | #if defined BB_WGET |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1528 | const char wget_usage[] = "wget [-c] [-O file] url" |
Eric Andersen | 61a9d8d | 2000-09-04 15:16:51 +0000 | [diff] [blame] | 1529 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1530 | "\n\nwget retrieves files via HTTP\n\n" |
Eric Andersen | 61a9d8d | 2000-09-04 15:16:51 +0000 | [diff] [blame] | 1531 | "Options:\n" |
| 1532 | "\t-c\tcontinue retrieval of aborted transfers\n" |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1533 | "\t-O\tsave to filename ('-' for stdout)" |
Eric Andersen | 61a9d8d | 2000-09-04 15:16:51 +0000 | [diff] [blame] | 1534 | #endif |
| 1535 | ; |
| 1536 | #endif |
| 1537 | |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1538 | #if defined BB_WHICH |
| 1539 | const char which_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1540 | "which [COMMAND ...]" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1541 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1542 | "\n\nLocates a COMMAND." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1543 | #endif |
| 1544 | ; |
| 1545 | #endif |
| 1546 | |
| 1547 | #if defined BB_WHOAMI |
| 1548 | const char whoami_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1549 | "whoami" |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1550 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1551 | "\n\nPrints the user name associated with the current effective user id." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1552 | #endif |
| 1553 | ; |
| 1554 | #endif |
| 1555 | |
Eric Andersen | 92a61c1 | 2000-09-22 20:01:23 +0000 | [diff] [blame] | 1556 | #if defined BB_XARGS |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1557 | const char xargs_usage[] = "xargs [COMMAND] [ARGS...]" |
Eric Andersen | 5b17693 | 2000-09-22 20:22:28 +0000 | [diff] [blame] | 1558 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1559 | "\n\nExecutes COMMAND on every item given by standard input." |
Eric Andersen | 5b17693 | 2000-09-22 20:22:28 +0000 | [diff] [blame] | 1560 | #endif |
| 1561 | ; |
Eric Andersen | 92a61c1 | 2000-09-22 20:01:23 +0000 | [diff] [blame] | 1562 | #endif |
| 1563 | |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1564 | #if defined BB_YES |
| 1565 | const char yes_usage[] = |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1566 | "yes [OPTION]... [STRING]..." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1567 | #ifndef BB_FEATURE_TRIVIAL_HELP |
Eric Andersen | 965fa32 | 2001-01-20 21:45:57 +0000 | [diff] [blame] | 1568 | "\n\nRepeatedly outputs a line with all specified STRING(s), or `y'." |
Matt Kraai | bf181b9 | 2000-07-16 20:57:15 +0000 | [diff] [blame] | 1569 | #endif |
| 1570 | ; |
| 1571 | #endif |
Mark Whitley | 6050618 | 2000-10-19 22:28:06 +0000 | [diff] [blame] | 1572 | |