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