Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 1 | #define ar_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 2 | "-[ovR]{ptx} archive filenames" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 3 | #define ar_full_usage \ |
| 4 | "Extract or list files from an ar archive.\n\n" \ |
| 5 | "Options:\n" \ |
| 6 | "\t-o\t\tpreserve original dates\n" \ |
| 7 | "\t-p\t\textract to stdout\n" \ |
| 8 | "\t-t\t\tlist\n" \ |
| 9 | "\t-x\t\textract\n" \ |
| 10 | "\t-v\t\tverbosely list files processed\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 11 | "\t-R\t\trecursive action" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 12 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 13 | #define basename_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 14 | "FILE [SUFFIX]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 15 | #define basename_full_usage \ |
| 16 | "Strips directory path and suffixes from FILE.\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 17 | "If specified, also removes any trailing SUFFIX." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 18 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 19 | #define cat_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 20 | "[FILE]..." |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 21 | #define cat_full_usage \ |
| 22 | "Concatenates FILE(s) and prints them to stdout." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 23 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 24 | #define chgrp_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 25 | "[OPTION]... GROUP FILE..." |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 26 | #define chgrp_full_usage \ |
| 27 | "Change the group membership of each FILE to GROUP.\n" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 28 | "\nOptions:\n" \ |
| 29 | "\t-R\tChanges files and directories recursively." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 30 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 31 | #define chmod_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 32 | "[-R] MODE[,MODE]... FILE..." |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 33 | #define chmod_full_usage \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 34 | "Each MODE is one or more of the letters ugoa, one of the\n" \ |
| 35 | "symbols +-= and one or more of the letters rwxst.\n\n" \ |
| 36 | "Options:\n" \ |
| 37 | "\t-R\tChanges files and directories recursively." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 38 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 39 | #define chown_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 40 | "[OPTION]... OWNER[<.|:>[GROUP] FILE..." |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 41 | #define chown_full_usage \ |
| 42 | "Change the owner and/or group of each FILE to OWNER and/or GROUP.\n" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 43 | "\nOptions:\n" \ |
| 44 | "\t-R\tChanges files and directories recursively." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 45 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 46 | #define chroot_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 47 | "NEWROOT [COMMAND...]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 48 | #define chroot_full_usage \ |
| 49 | "Run COMMAND with root directory set to NEWROOT." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 50 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 51 | #define chvt_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 52 | "N" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 53 | #define chvt_full_usage \ |
| 54 | "Changes the foreground virtual terminal to /dev/ttyN" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 55 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 56 | #define clear_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 57 | "" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 58 | #define clear_full_usage \ |
| 59 | "Clear screen." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 60 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 61 | #define cmp_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 62 | "FILE1 [FILE2]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 63 | #define cmp_full_usage \ |
| 64 | "Compare files." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 65 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 66 | #define cp_trivial_usage \ |
Eric Andersen | 7a9cc2d | 2001-02-23 16:58:44 +0000 | [diff] [blame] | 67 | "[OPTION]... SOURCE DEST" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 68 | #define cp_full_usage \ |
| 69 | "Copies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n" \ |
| 70 | "\n" \ |
| 71 | "\t-a\tSame as -dpR\n" \ |
| 72 | "\t-d\tPreserves links\n" \ |
| 73 | "\t-p\tPreserves file attributes if possible\n" \ |
| 74 | "\t-f\tforce (implied; ignored) - always set\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 75 | "\t-R\tCopies directories recursively" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 76 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 77 | #define cut_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 78 | "[OPTION]... [FILE]..." |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 79 | #define cut_full_usage \ |
| 80 | "Prints selected fields from each input FILE to standard output.\n\n" \ |
| 81 | "Options:\n" \ |
Eric Andersen | a0cfe94 | 2001-02-23 10:07:09 +0000 | [diff] [blame] | 82 | "\t-b LIST\t\tOutput only bytes from LIST\n" \ |
| 83 | "\t-c LIST\t\tOutput only characters from LIST\n" \ |
| 84 | "\t-d CHAR\t\tUse CHAR instead of tab as the field delimiter\n" \ |
| 85 | "\t-s\t\tOutput only the lines containing delimiter\n" \ |
| 86 | "\t-f N\t\tPrint only these fields\n" \ |
| 87 | "\t-n\t\tIgnored" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 88 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 89 | #define date_trivial_usage \ |
Eric Andersen | 7a9cc2d | 2001-02-23 16:58:44 +0000 | [diff] [blame] | 90 | "[OPTION]... [+FORMAT]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 91 | #define date_full_usage \ |
| 92 | "Displays the current time in the given FORMAT, or sets the system date.\n" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 93 | "\nOptions:\n" \ |
Eric Andersen | 41492d6 | 2001-02-23 00:05:56 +0000 | [diff] [blame] | 94 | "\t-R\t\tOutputs RFC-822 compliant date string\n" \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 95 | "\t-d STRING\tdisplay time described by STRING, not `now'\n" \ |
| 96 | "\t-s\t\tSets time described by STRING\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 97 | "\t-u\t\tPrints or sets Coordinated Universal Time" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 98 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 99 | #define dc_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 100 | "expression ..." |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 101 | #define dc_full_usage \ |
| 102 | "This is a Tiny RPN calculator that understands the\n" \ |
| 103 | "following operations: +, -, /, *, and, or, not, eor.\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 104 | "i.e. 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 105 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 106 | #define dd_trivial_usage \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 107 | "[if=FILE] [of=FILE] [bs=N] [count=N] [skip=N]\n" \ |
Eric Andersen | a0cfe94 | 2001-02-23 10:07:09 +0000 | [diff] [blame] | 108 | "\t [seek=N] [conv=notrunc|sync]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 109 | #define dd_full_usage \ |
| 110 | "Copy a file, converting and formatting according to options\n\n" \ |
Eric Andersen | a0cfe94 | 2001-02-23 10:07:09 +0000 | [diff] [blame] | 111 | "\tif=FILE\t\tread from FILE instead of stdin\n" \ |
| 112 | "\tof=FILE\t\twrite to FILE instead of stdout\n" \ |
| 113 | "\tbs=N\t\tread and write N bytes at a time\n" \ |
| 114 | "\tcount=N\t\tcopy only N input blocks\n" \ |
| 115 | "\tskip=N\t\tskip N input blocks\n" \ |
| 116 | "\tseek=N\t\tskip N output blocks\n" \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 117 | "\tconv=notrunc\tdon't truncate output file\n" \ |
| 118 | "\tconv=sync\tpad blocks with zeros\n" \ |
| 119 | "\n" \ |
| 120 | "Numbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024),\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 121 | "MD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 122 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 123 | #define deallocvt_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 124 | "N" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 125 | #define deallocvt_full_usage \ |
| 126 | "Deallocate unused virtual terminal /dev/ttyN" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 127 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 128 | |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 129 | #ifdef BB_FEATURE_HUMAN_READABLE |
Eric Andersen | ed0d958 | 2001-02-23 13:23:03 +0000 | [diff] [blame] | 130 | #define USAGE_HUMAN_READABLE(a) a |
| 131 | #define USAGE_NOT_HUMAN_READABLE(a) |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 132 | #else |
Eric Andersen | ed0d958 | 2001-02-23 13:23:03 +0000 | [diff] [blame] | 133 | #define USAGE_HUMAN_READABLE(a) |
| 134 | #define USAGE_NOT_HUMAN_READABLE(a) a |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 135 | #endif |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 136 | #define df_trivial_usage \ |
Eric Andersen | ed0d958 | 2001-02-23 13:23:03 +0000 | [diff] [blame] | 137 | "[-" USAGE_HUMAN_READABLE("hm") USAGE_NOT_HUMAN_READABLE("") "k] [filesystem ...]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 138 | #define df_full_usage \ |
| 139 | "Print the filesystem space used and space available.\n\n" \ |
| 140 | "Options:\n" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 141 | USAGE_HUMAN_READABLE( \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 142 | "\n\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" \ |
| 143 | "\t-m\tprint sizes in megabytes\n" \ |
Eric Andersen | ed0d958 | 2001-02-23 13:23:03 +0000 | [diff] [blame] | 144 | "\t-k\tprint sizes in kilobytes(default)") USAGE_NOT_HUMAN_READABLE( \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 145 | "\n\t-k\tprint sizes in kilobytes(compatability)") |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 146 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 147 | #define dirname_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 148 | "[FILENAME ...]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 149 | #define dirname_full_usage \ |
| 150 | "Strips non-directory suffix from FILENAME" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 151 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 152 | #define dmesg_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 153 | "[-c] [-n LEVEL] [-s SIZE]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 154 | #define dmesg_full_usage \ |
| 155 | "Prints or controls the kernel ring buffer\n\n" \ |
| 156 | "Options:\n" \ |
| 157 | "\t-c\t\tClears the ring buffer's contents after printing\n" \ |
| 158 | "\t-n LEVEL\tSets console logging level\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 159 | "\t-s SIZE\t\tUse a buffer of size SIZE" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 160 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 161 | #define dos2unix_trivial_usage \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 162 | "[option] [file]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 163 | #define dos2unix_full_usage \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 164 | "Converts a text file to/from dos format to unix format.\n\n" \ |
| 165 | "Options:\n" \ |
| 166 | "\t-u\toutput will be in UNIX format\n" \ |
| 167 | "\t-d\toutput will be in DOS format\n\n" \ |
| 168 | "- when no option is given then input format will be automaticaly detected\n" \ |
| 169 | " and converted to the oposite format on output\n" \ |
| 170 | "- when no file is given, then stdin is used as input and stdout as output" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 171 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 172 | #define dpkg_trivial_usage \ |
| 173 | "[-i|-r|--unpack|--configure] my.deb" |
| 174 | #define dpkg_full_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 175 | "WORK IN PROGRESS, only usefull for debian-installer" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 176 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 177 | #define dpkg_deb_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 178 | "[-cexX] file directory" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 179 | #define dpkg_deb_full_usage \ |
| 180 | "Perform actions on debian packages (.debs)\n\n" \ |
| 181 | "Options:\n" \ |
| 182 | "\t-c\tList contents of filesystem tree (verbose)\n" \ |
| 183 | "\t-l\tList contents of filesystem tree (.list format)\n" \ |
| 184 | "\t-e\tExtract control files to directory\n" \ |
| 185 | "\t-x\tExctract packages filesystem tree to directory\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 186 | "\t-X\tVerbose extract" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 187 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 188 | #define du_trivial_usage \ |
Eric Andersen | ed0d958 | 2001-02-23 13:23:03 +0000 | [diff] [blame] | 189 | "[-ls" USAGE_HUMAN_READABLE("hm") USAGE_NOT_HUMAN_READABLE("") "k] [FILE]..." |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 190 | #define du_full_usage \ |
| 191 | "Summarizes disk space used for each FILE and/or directory.\n" \ |
| 192 | "Disk space is printed in units of 1024 bytes.\n\n" \ |
| 193 | "Options:\n" \ |
| 194 | "\t-l\tcount sizes many times if hard linked\n" \ |
| 195 | "\t-s\tdisplay only a total for each argument" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 196 | USAGE_HUMAN_READABLE( \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 197 | "\n\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" \ |
| 198 | "\t-m\tprint sizes in megabytes\n" \ |
Eric Andersen | ed0d958 | 2001-02-23 13:23:03 +0000 | [diff] [blame] | 199 | "\t-k\tprint sizes in kilobytes(default)") USAGE_NOT_HUMAN_READABLE( \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 200 | "\n\t-k\tprint sizes in kilobytes(compatability)") |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 201 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 202 | #define dumpkmap_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 203 | "> keymap" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 204 | #define dumpkmap_full_usage \ |
| 205 | "Prints out a binary keyboard translation table to standard output." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 206 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 207 | #define dutmp_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 208 | "[FILE]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 209 | #define dutmp_full_usage \ |
| 210 | "Dump utmp file format (pipe delimited) from FILE\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 211 | "or stdin to stdout. (i.e. 'dutmp /var/run/utmp')" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 212 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 213 | #define echo_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 214 | "[-neE] [ARG ...]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 215 | #define echo_full_usage \ |
| 216 | "Prints the specified ARGs to stdout\n\n" \ |
| 217 | "Options:\n" \ |
| 218 | "\t-n\tsuppress trailing newline\n" \ |
| 219 | "\t-e\tinterpret backslash-escaped characters (i.e. \\t=tab etc)\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 220 | "\t-E\tdisable interpretation of backslash-escaped characters" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 221 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 222 | #define expr_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 223 | "EXPRESSION" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 224 | #define expr_full_usage \ |
| 225 | "Prints the value of EXPRESSION to standard output.\n\n" \ |
| 226 | "EXPRESSION may be:\n" \ |
Eric Andersen | a0cfe94 | 2001-02-23 10:07:09 +0000 | [diff] [blame] | 227 | "\tARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2\n" \ |
| 228 | "\tARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0\n" \ |
| 229 | "\tARG1 < ARG2 ARG1 is less than ARG2\n" \ |
| 230 | "\tARG1 <= ARG2 ARG1 is less than or equal to ARG2\n" \ |
| 231 | "\tARG1 = ARG2 ARG1 is equal to ARG2\n" \ |
| 232 | "\tARG1 != ARG2 ARG1 is unequal to ARG2\n" \ |
| 233 | "\tARG1 >= ARG2 ARG1 is greater than or equal to ARG2\n" \ |
| 234 | "\tARG1 > ARG2 ARG1 is greater than ARG2\n" \ |
| 235 | "\tARG1 + ARG2 arithmetic sum of ARG1 and ARG2\n" \ |
| 236 | "\tARG1 - ARG2 arithmetic difference of ARG1 and ARG2\n" \ |
| 237 | "\tARG1 * ARG2 arithmetic product of ARG1 and ARG2\n" \ |
| 238 | "\tARG1 / ARG2 arithmetic quotient of ARG1 divided by ARG2\n" \ |
| 239 | "\tARG1 % ARG2 arithmetic remainder of ARG1 divided by ARG2\n" \ |
Eric Andersen | 3757f98 | 2001-02-23 17:47:51 +0000 | [diff] [blame] | 240 | "\tSTRING : REGEXP anchored pattern match of REGEXP in STRING\n" \ |
| 241 | "\tmatch STRING REGEXP same as STRING : REGEXP\n" \ |
| 242 | "\tsubstr STRING POS LENGTH substring of STRING, POS counted from 1\n" \ |
| 243 | "\tindex STRING CHARS index in STRING where any CHARS is found,\n" \ |
| 244 | "\t or 0\n" \ |
| 245 | "\tlength STRING length of STRING\n" \ |
| 246 | "\tquote TOKEN interpret TOKEN as a string, even if\n" \ |
| 247 | "\t it is a keyword like `match' or an\n" \ |
| 248 | "\t operator like `/'\n" \ |
| 249 | "\t( EXPRESSION ) value of EXPRESSION\n\n" \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 250 | "Beware that many operators need to be escaped or quoted for shells.\n" \ |
| 251 | "Comparisons are arithmetic if both ARGs are numbers, else\n" \ |
| 252 | "lexicographical. Pattern matches return the string matched between \n" \ |
| 253 | "\\( and \\) or null; if \\( and \\) are not used, they return the number \n" \ |
| 254 | "of characters matched or 0." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 255 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 256 | #define false_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 257 | "" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 258 | #define false_full_usage \ |
| 259 | "Return an exit code of FALSE (1)." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 260 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 261 | #define fdflush_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 262 | "DEVICE" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 263 | #define fdflush_full_usage \ |
| 264 | "Forces floppy disk drive to detect disk change" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 265 | |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 266 | #ifdef BB_FEATURE_FIND_TYPE |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 267 | #define USAGE_FIND_TYPE(a) a |
| 268 | #else |
| 269 | #define USAGE_FIND_TYPE(a) |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 270 | #endif |
| 271 | #ifdef BB_FEATURE_FIND_PERM |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 272 | #define USAGE_FIND_PERM(a) a |
| 273 | #else |
| 274 | #define USAGE_FIND_PERM(a) |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 275 | #endif |
| 276 | #ifdef BB_FEATURE_FIND_MTIME |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 277 | #define USAGE_FIND_MTIME(a) a |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 278 | #else |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 279 | #define USAGE_FIND_MTIME(a) |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 280 | #endif |
| 281 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 282 | #define find_trivial_usage \ |
| 283 | "[PATH...] [EXPRESSION]" |
| 284 | #define find_full_usage \ |
| 285 | "Search for files in a directory hierarchy. The default PATH is\n" \ |
Eric Andersen | a0cfe94 | 2001-02-23 10:07:09 +0000 | [diff] [blame] | 286 | "the current directory; default EXPRESSION is '-print'\n" \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 287 | "\nEXPRESSION may consist of:\n" \ |
| 288 | "\t-follow\t\tDereference symbolic links.\n" \ |
| 289 | "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN." \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 290 | USAGE_FIND_TYPE( \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 291 | "\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \ |
| 292 | ) USAGE_FIND_PERM( \ |
| 293 | "\n\t-perm PERMS\tPermissions match any of (+NNN); all of (-NNN);\n\t\t\tor exactly (NNN)" \ |
| 294 | ) USAGE_FIND_MTIME( \ |
| 295 | "\n\t-mtime TIME\tModified time is greater than (+N); less than (-N);\n\t\t\tor exactly (N) days") |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 296 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 297 | #define free_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 298 | "" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 299 | #define free_full_usage \ |
| 300 | "Displays the amount of free and used system memory" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 301 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 302 | #define freeramdisk_trivial_usage \ |
| 303 | "DEVICE" |
| 304 | #define freeramdisk_full_usage \ |
| 305 | "Frees all memory used by the specified ramdisk." |
| 306 | |
| 307 | #define fsck_minix_trivial_usage \ |
| 308 | "[-larvsmf] /dev/name" |
| 309 | #define fsck_minix_full_usage \ |
| 310 | "Performs a consistency check for MINIX filesystems.\n\n" \ |
| 311 | "Options:\n" \ |
| 312 | "\t-l\tLists all filenames\n" \ |
| 313 | "\t-r\tPerform interactive repairs\n" \ |
| 314 | "\t-a\tPerform automatic repairs\n" \ |
| 315 | "\t-v\tverbose\n" \ |
| 316 | "\t-s\tOutputs super-block information\n" \ |
| 317 | "\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n" \ |
| 318 | "\t-f\tForce file system check." |
| 319 | |
| 320 | #define getopt_trivial_usage \ |
| 321 | "[OPTIONS]..." |
| 322 | #define getopt_full_usage \ |
Eric Andersen | 7a9cc2d | 2001-02-23 16:58:44 +0000 | [diff] [blame] | 323 | "Parse command options\n" \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 324 | "\t-a, --alternative Allow long options starting with single -\n" \ |
| 325 | "\t-l, --longoptions=longopts Long options to be recognized\n" \ |
| 326 | "\t-n, --name=progname The name under which errors are reported\n" \ |
| 327 | "\t-o, --options=optstring Short options to be recognized\n" \ |
| 328 | "\t-q, --quiet Disable error reporting by getopt(3)\n" \ |
| 329 | "\t-Q, --quiet-output No normal output\n" \ |
| 330 | "\t-s, --shell=shell Set shell quoting conventions\n" \ |
| 331 | "\t-T, --test Test for getopt(1) version\n" \ |
| 332 | "\t-u, --unqote Do not quote the output" |
| 333 | |
| 334 | #define grep_trivial_usage \ |
| 335 | "[-ihHnqvs] pattern [files...]" |
| 336 | #define grep_full_usage \ |
| 337 | "Search for PATTERN in each FILE or standard input.\n\n" \ |
| 338 | "Options:\n" \ |
| 339 | "\t-H\tprefix output lines with filename where match was found\n" \ |
| 340 | "\t-h\tsuppress the prefixing filename on output\n" \ |
| 341 | "\t-i\tignore case distinctions\n" \ |
| 342 | "\t-n\tprint line number with output lines\n" \ |
| 343 | "\t-q\tbe quiet. Returns 0 if result was found, 1 otherwise\n" \ |
| 344 | "\t-v\tselect non-matching lines\n" \ |
| 345 | "\t-s\tsuppress file open/read error messages" |
| 346 | |
Mark Whitley | 40e5e7c | 2001-03-14 17:45:45 +0000 | [diff] [blame^] | 347 | #define egrep_trivial_usage grep_trivial_usage |
| 348 | #define egrep_full_usage grep_full_usage |
| 349 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 350 | #define gunzip_trivial_usage \ |
| 351 | "[OPTION]... FILE" |
| 352 | #define gunzip_full_usage \ |
| 353 | "Uncompress FILE (or standard input if FILE is '-').\n\n" \ |
| 354 | "Options:\n" \ |
| 355 | "\t-c\tWrite output to standard output\n" \ |
| 356 | "\t-t\tTest compressed file integrity" |
| 357 | |
| 358 | #define gzip_trivial_usage \ |
| 359 | "[OPTION]... FILE" |
| 360 | #define gzip_full_usage \ |
| 361 | "Compress FILE with maximum compression.\n" \ |
| 362 | "When FILE is '-', reads standard input. Implies -c.\n\n" \ |
| 363 | "Options:\n" \ |
| 364 | "\t-c\tWrite output to standard output instead of FILE.gz\n" \ |
| 365 | "\t-d\tdecompress" |
| 366 | |
| 367 | #define halt_trivial_usage \ |
| 368 | "" |
| 369 | #define halt_full_usage \ |
| 370 | "Halt the system." |
| 371 | |
| 372 | #define head_trivial_usage \ |
| 373 | "[OPTION] [FILE]..." |
| 374 | #define head_full_usage \ |
| 375 | "Print first 10 lines of each FILE to standard output.\n" \ |
| 376 | "With more than one FILE, precede each with a header giving the\n" \ |
| 377 | "file name. With no FILE, or when FILE is -, read standard input.\n\n" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 378 | "Options:\n" \ |
| 379 | "\t-n NUM\t\tPrint first NUM lines instead of first 10" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 380 | |
| 381 | #define hostid_trivial_usage \ |
| 382 | "" |
| 383 | #define hostid_full_usage \ |
| 384 | "Print out a unique 32-bit identifier for the machine." |
| 385 | |
| 386 | #define hostname_trivial_usage \ |
| 387 | "[OPTION] {hostname | -F file}" |
| 388 | #define hostname_full_usage \ |
| 389 | "Get or set the hostname or DNS domain name. If a hostname is given\n" \ |
| 390 | "(or a file with the -F parameter), the host name will be set.\n\n" \ |
| 391 | "Options:\n" \ |
| 392 | "\t-s\t\tShort\n" \ |
| 393 | "\t-i\t\tAddresses for the hostname\n" \ |
| 394 | "\t-d\t\tDNS domain name\n" \ |
| 395 | "\t-F, --file FILE\tUse the contents of FILE to specify the hostname" |
| 396 | |
| 397 | #define id_trivial_usage \ |
| 398 | "[OPTIONS]... [USERNAME]" |
| 399 | #define id_full_usage \ |
| 400 | "Print information for USERNAME or the current user\n\n" \ |
| 401 | "Options:\n" \ |
| 402 | "\t-g\tprints only the group ID\n" \ |
| 403 | "\t-u\tprints only the user ID\n" \ |
| 404 | "\t-n\tprint a name instead of a number (with for -ug)\n" \ |
| 405 | "\t-r\tprints the real user ID instead of the effective ID (with -ug)" |
| 406 | |
Manuel Novoa III | 22b889a | 2001-03-12 09:58:51 +0000 | [diff] [blame] | 407 | #ifdef BB_FEATURE_IFCONFIG_SLIP |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 408 | #define USAGE_SIOCSKEEPALIVE(a) a |
| 409 | #else |
| 410 | #define USAGE_SIOCSKEEPALIVE(a) |
| 411 | #endif |
Manuel Novoa III | 22b889a | 2001-03-12 09:58:51 +0000 | [diff] [blame] | 412 | #ifdef BB_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ |
| 413 | #define USAGE_IFCONFIG_MII(a) a |
| 414 | #else |
| 415 | #define USAGE_IFCONFIG_MII(a) |
| 416 | #endif |
| 417 | #ifdef BB_FEATURE_IFCONFIG_HW |
| 418 | #define USAGE_IFCONFIG_HW(a) a |
| 419 | #else |
| 420 | #define USAGE_IFCONFIG_HW(a) |
| 421 | #endif |
| 422 | #ifdef BB_FEATURE_IFCONFIG_STATUS |
| 423 | #define USAGE_IFCONFIG_OPT_A(a) a |
| 424 | #else |
| 425 | #define USAGE_IFCONFIG_OPT_A(a) |
| 426 | #endif |
| 427 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 428 | #define ifconfig_trivial_usage \ |
Manuel Novoa III | 22b889a | 2001-03-12 09:58:51 +0000 | [diff] [blame] | 429 | USAGE_IFCONFIG_OPT_A("[-a]") " <interface> [<address>]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 430 | #define ifconfig_full_usage \ |
| 431 | "configure a network interface\n\n" \ |
| 432 | "Options:\n" \ |
| 433 | "\t[[-]broadcast [<address>]] [[-]pointopoint [<address>]]\n" \ |
Manuel Novoa III | 22b889a | 2001-03-12 09:58:51 +0000 | [diff] [blame] | 434 | "\t[netmask <address>] [dstaddr <address>]\n" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 435 | USAGE_SIOCSKEEPALIVE("\t[outfill <NN>] [keepalive <NN>]\n") \ |
Manuel Novoa III | 22b889a | 2001-03-12 09:58:51 +0000 | [diff] [blame] | 436 | "\t" USAGE_IFCONFIG_HW("[hw ether <address>] ") \ |
| 437 | "[metric <NN>] [mtu <NN>]\n" \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 438 | "\t[[-]trailers] [[-]arp] [[-]allmulti]\n" \ |
Manuel Novoa III | 22b889a | 2001-03-12 09:58:51 +0000 | [diff] [blame] | 439 | "\t[multicast] [[-]promisc] [txqueuelen <NN>] [[-]dynamic]\n" \ |
| 440 | USAGE_IFCONFIG_MII("\t[mem_start <NN>] [io_addr <NN>] [irq <NN>]\n") \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 441 | "\t[up|down] ..." |
| 442 | |
| 443 | #define init_trivial_usage \ |
| 444 | "" |
| 445 | #define init_full_usage \ |
| 446 | "Init is the parent of all processes.\n\n" \ |
| 447 | "This version of init is designed to be run only by the kernel." |
| 448 | |
| 449 | #define insmod_trivial_usage \ |
| 450 | "[OPTION]... MODULE [symbol=value]..." |
| 451 | #define insmod_full_usage \ |
| 452 | "Loads the specified kernel modules into the kernel.\n\n" \ |
| 453 | "Options:\n" \ |
| 454 | "\t-f\tForce module to load into the wrong kernel version.\n" \ |
| 455 | "\t-k\tMake module autoclean-able.\n" \ |
| 456 | "\t-v\tverbose output\n" \ |
| 457 | "\t-L\tLock to prevent simultaneous loads of a module\n" \ |
| 458 | "\t-x\tdo not export externs" |
| 459 | |
| 460 | #define kill_trivial_usage \ |
| 461 | "[-signal] process-id [process-id ...]" |
| 462 | #define kill_full_usage \ |
| 463 | "Send a signal (default is SIGTERM) to the specified process(es).\n\n"\ |
David Kimdon | 56082dc | 2001-02-23 06:03:22 +0000 | [diff] [blame] | 464 | "Options:\n" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 465 | "\t-l\tList all signal names and numbers." |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 466 | |
| 467 | #define killall_trivial_usage \ |
| 468 | "[-signal] process-name [process-name ...]" |
| 469 | #define killall_full_usage \ |
| 470 | "Send a signal (default is SIGTERM) to the specified process(es).\n\n"\ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 471 | "Options:\n" \ |
| 472 | "\t-l\tList all signal names and numbers." |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 473 | |
Mark Whitley | 6317c4b | 2001-03-12 22:51:50 +0000 | [diff] [blame] | 474 | #define klogd_trivial_usage \ |
| 475 | "-n" |
| 476 | #define klogd_full_usage \ |
| 477 | "Kernel logger.\n"\ |
| 478 | "Options:\n"\ |
| 479 | "\t-n\tRun as a foreground process." |
| 480 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 481 | #define length_trivial_usage \ |
| 482 | "STRING" |
| 483 | #define length_full_usage \ |
| 484 | "Prints out the length of the specified STRING." |
| 485 | |
| 486 | #define ln_trivial_usage \ |
| 487 | "[OPTION] TARGET... LINK_NAME|DIRECTORY" |
| 488 | #define ln_full_usage \ |
| 489 | "Create a link named LINK_NAME or DIRECTORY to the specified TARGET\n"\ |
| 490 | "\nYou may use '--' to indicate that all following arguments are non-options.\n\n" \ |
| 491 | "Options:\n" \ |
| 492 | "\t-s\tmake symbolic links instead of hard links\n" \ |
| 493 | "\t-f\tremove existing destination files\n" \ |
| 494 | "\t-n\tno dereference symlinks - treat like normal file" |
| 495 | |
| 496 | #define loadacm_trivial_usage \ |
| 497 | "< mapfile" |
| 498 | #define loadacm_full_usage \ |
| 499 | "Loads an acm from standard input." |
| 500 | |
| 501 | #define loadfont_trivial_usage \ |
| 502 | "< font" |
| 503 | #define loadfont_full_usage \ |
| 504 | "Loads a console font from standard input." |
| 505 | |
| 506 | #define loadkmap_trivial_usage \ |
| 507 | "< keymap" |
| 508 | #define loadkmap_full_usage \ |
| 509 | "Loads a binary keyboard translation table from standard input." |
| 510 | |
| 511 | #define logger_trivial_usage \ |
| 512 | "[OPTION]... [MESSAGE]" |
| 513 | #define logger_full_usage \ |
| 514 | "Write MESSAGE to the system log. If MESSAGE is omitted, log stdin.\n\n" \ |
| 515 | "Options:\n" \ |
| 516 | "\t-s\tLog to stderr as well as the system log.\n" \ |
| 517 | "\t-t\tLog using the specified tag (defaults to user name).\n" \ |
| 518 | "\t-p\tEnter the message with the specified priority.\n" \ |
| 519 | "\t\tThis may be numerical or a ``facility.level'' pair." |
| 520 | |
| 521 | #define logname_trivial_usage \ |
| 522 | "" |
| 523 | #define logname_full_usage \ |
| 524 | "Print the name of the current user." |
| 525 | |
Mark Whitley | 6317c4b | 2001-03-12 22:51:50 +0000 | [diff] [blame] | 526 | #define logread_trivial_usage \ |
| 527 | "" |
| 528 | |
| 529 | #define logread_full_usage \ |
| 530 | "Shows the messages from syslogd (using circular buffer)." |
| 531 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 532 | #ifdef BB_FEATURE_LS_TIMESTAMPS |
| 533 | #define USAGE_LS_TIMESTAMPS(a) a |
| 534 | #else |
| 535 | #define USAGE_LS_TIMESTAMPS(a) |
| 536 | #endif |
| 537 | #ifdef BB_FEATURE_LS_FILETYPES |
| 538 | #define USAGE_LS_FILETYPES(a) a |
| 539 | #else |
| 540 | #define USAGE_LS_FILETYPES(a) |
| 541 | #endif |
| 542 | #ifdef BB_FEATURE_LS_FOLLOWLINKS |
| 543 | #define USAGE_LS_FOLLOWLINKS(a) a |
| 544 | #else |
| 545 | #define USAGE_LS_FOLLOWLINKS(a) |
| 546 | #endif |
| 547 | #ifdef BB_FEATURE_LS_RECURSIVE |
| 548 | #define USAGE_LS_RECURSIVE(a) a |
| 549 | #else |
| 550 | #define USAGE_LS_RECURSIVE(a) |
| 551 | #endif |
| 552 | #ifdef BB_FEATURE_LS_SORTFILES |
| 553 | #define USAGE_LS_SORTFILES(a) a |
| 554 | #else |
| 555 | #define USAGE_LS_SORTFILES(a) |
| 556 | #endif |
| 557 | #ifdef BB_FEATURE_AUTOWIDTH |
| 558 | #define USAGE_AUTOWIDTH(a) a |
| 559 | #else |
| 560 | #define USAGE_AUTOWIDTH(a) |
| 561 | #endif |
| 562 | #define ls_trivial_usage \ |
Eric Andersen | ed0d958 | 2001-02-23 13:23:03 +0000 | [diff] [blame] | 563 | "[-1Aa" USAGE_LS_TIMESTAMPS("c") "Cd" USAGE_LS_TIMESTAMPS("e") USAGE_LS_FILETYPES("F") "iln" USAGE_LS_FILETYPES("p") USAGE_LS_FOLLOWLINKS("L") USAGE_LS_RECURSIVE("R") USAGE_LS_SORTFILES("rS") "s" USAGE_AUTOWIDTH("T") USAGE_LS_TIMESTAMPS("tu") USAGE_LS_SORTFILES("v") USAGE_AUTOWIDTH("w") "x" USAGE_LS_SORTFILES("X") USAGE_HUMAN_READABLE("h") USAGE_NOT_HUMAN_READABLE("") "k] [filenames...]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 564 | #define ls_full_usage \ |
| 565 | "List directory contents\n\n" \ |
| 566 | "Options:\n" \ |
| 567 | "\t-1\tlist files in a single column\n" \ |
| 568 | "\t-A\tdo not list implied . and ..\n" \ |
| 569 | "\t-a\tdo not hide entries starting with .\n" \ |
| 570 | "\t-C\tlist entries by columns\n" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 571 | USAGE_LS_TIMESTAMPS("\t-c\twith -l: show ctime\n") \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 572 | "\t-d\tlist directory entries instead of contents\n" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 573 | USAGE_LS_TIMESTAMPS("\t-e\tlist both full date and full time\n") \ |
| 574 | USAGE_LS_FILETYPES("\t-F\tappend indicator (one of */=@|) to entries\n") \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 575 | "\t-i\tlist the i-node for each file\n" \ |
| 576 | "\t-l\tuse a long listing format\n" \ |
| 577 | "\t-n\tlist numeric UIDs and GIDs instead of names\n" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 578 | USAGE_LS_FILETYPES("\t-p\tappend indicator (one of /=@|) to entries\n") \ |
| 579 | USAGE_LS_FOLLOWLINKS("\t-L\tlist entries pointed to by symbolic links\n") \ |
| 580 | USAGE_LS_RECURSIVE("\t-R\tlist subdirectories recursively\n") \ |
| 581 | USAGE_LS_SORTFILES("\t-r\tsort the listing in reverse order\n") \ |
| 582 | USAGE_LS_SORTFILES("\t-S\tsort the listing by file size\n") \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 583 | "\t-s\tlist the size of each file, in blocks\n" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 584 | USAGE_AUTOWIDTH("\t-T NUM\tassume Tabstop every NUM columns\n") \ |
| 585 | USAGE_LS_TIMESTAMPS("\t-t\twith -l: show modification time\n") \ |
| 586 | USAGE_LS_TIMESTAMPS("\t-u\twith -l: show access time\n") \ |
| 587 | USAGE_LS_SORTFILES("\t-v\tsort the listing by version\n") \ |
| 588 | USAGE_AUTOWIDTH("\t-w NUM\tassume the terminal is NUM columns wide\n") \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 589 | "\t-x\tlist entries by lines instead of by columns\n" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 590 | USAGE_LS_SORTFILES("\t-X\tsort the listing by extension\n") \ |
| 591 | USAGE_HUMAN_READABLE( \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 592 | "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" \ |
Eric Andersen | ed0d958 | 2001-02-23 13:23:03 +0000 | [diff] [blame] | 593 | "\t-k\tprint sizes in kilobytes(default)") USAGE_NOT_HUMAN_READABLE( \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 594 | "\t-k\tprint sizes in kilobytes(compatability)") |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 595 | |
| 596 | #define lsmod_trivial_usage \ |
| 597 | "" |
| 598 | #define lsmod_full_usage \ |
| 599 | "List the currently loaded kernel modules." |
| 600 | |
| 601 | #define makedevs_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 602 | "NAME TYPE MAJOR MINOR FIRST LAST [s]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 603 | #define makedevs_full_usage \ |
| 604 | "Creates a range of block or character special files\n\n" \ |
| 605 | "TYPEs include:\n" \ |
| 606 | "\tb:\tMake a block (buffered) device.\n" \ |
| 607 | "\tc or u:\tMake a character (un-buffered) device.\n" \ |
| 608 | "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes.\n\n" \ |
| 609 | "FIRST specifies the number appended to NAME to create the first device.\n" \ |
| 610 | "LAST specifies the number of the last item that should be created.\n" \ |
| 611 | "If 's' is the last argument, the base device is created as well.\n\n" \ |
| 612 | "For example:\n" \ |
| 613 | "\tmakedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 614 | "\tmakedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 615 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 616 | #define md5sum_trivial_usage \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 617 | "[OPTION] [FILE]...\n" \ |
| 618 | "or: md5sum [OPTION] -c [FILE]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 619 | #define md5sum_full_usage \ |
| 620 | "Print or check MD5 checksums.\n\n" \ |
| 621 | "Options:\n" \ |
| 622 | "With no FILE, or when FILE is -, read standard input.\n\n" \ |
| 623 | "\t-b\tread files in binary mode\n" \ |
| 624 | "\t-c\tcheck MD5 sums against given list\n" \ |
| 625 | "\t-t\tread files in text mode (default)\n" \ |
| 626 | "\t-g\tread a string\n" \ |
| 627 | "\nThe following two options are useful only when verifying checksums:\n" \ |
Eric Andersen | 7a9cc2d | 2001-02-23 16:58:44 +0000 | [diff] [blame] | 628 | "\t-s\tdon't output anything, status code shows success\n" \ |
| 629 | "\t-w\twarn about improperly formated MD5 checksum lines" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 630 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 631 | #define mkdir_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 632 | "[OPTION] DIRECTORY..." |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 633 | #define mkdir_full_usage \ |
| 634 | "Create the DIRECTORY(ies), if they do not already exist\n\n" \ |
| 635 | "Options:\n" \ |
| 636 | "\t-m\tset permission mode (as in chmod), not rwxrwxrwx - umask\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 637 | "\t-p\tno error if existing, make parent directories as needed" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 638 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 639 | #define mkfifo_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 640 | "[OPTIONS] name" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 641 | #define mkfifo_full_usage \ |
| 642 | "Creates a named pipe (identical to 'mknod name p')\n\n" \ |
| 643 | "Options:\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 644 | "\t-m\tcreate the pipe using the specified mode (default a=rw)" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 645 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 646 | #define mkfs_minix_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 647 | "[-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 648 | #define mkfs_minix_full_usage \ |
| 649 | "Make a MINIX filesystem.\n\n" \ |
| 650 | "Options:\n" \ |
| 651 | "\t-c\t\tCheck the device for bad blocks\n" \ |
| 652 | "\t-n [14|30]\tSpecify the maximum length of filenames\n" \ |
| 653 | "\t-i INODES\tSpecify the number of inodes for the filesystem\n" \ |
| 654 | "\t-l FILENAME\tRead the bad blocks list from FILENAME\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 655 | "\t-v\t\tMake a Minix version 2 filesystem" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 656 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 657 | #define mknod_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 658 | "[OPTIONS] NAME TYPE MAJOR MINOR" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 659 | #define mknod_full_usage \ |
| 660 | "Create a special file (block, character, or pipe).\n\n" \ |
| 661 | "Options:\n" \ |
| 662 | "\t-m\tcreate the special file using the specified mode (default a=rw)\n\n" \ |
| 663 | "TYPEs include:\n" \ |
| 664 | "\tb:\tMake a block (buffered) device.\n" \ |
| 665 | "\tc or u:\tMake a character (un-buffered) device.\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 666 | "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 667 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 668 | #define mkswap_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 669 | "[-c] [-v0|-v1] device [block-count]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 670 | #define mkswap_full_usage \ |
| 671 | "Prepare a disk partition to be used as a swap partition.\n\n" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 672 | "Options:\n" \ |
| 673 | "\t-c\t\tCheck for read-ability.\n" \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 674 | "\t-v0\t\tMake version 0 swap [max 128 Megs].\n" \ |
Eric Andersen | a0cfe94 | 2001-02-23 10:07:09 +0000 | [diff] [blame] | 675 | "\t-v1\t\tMake version 1 swap [big!] (default for kernels >\n\t\t\t2.1.117).\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 676 | "\tblock-count\tNumber of block to use (default is entire partition)." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 677 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 678 | #define mktemp_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 679 | "[-q] TEMPLATE" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 680 | #define mktemp_full_usage \ |
| 681 | "Creates a temporary file with its name based on TEMPLATE.\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 682 | "TEMPLATE is any name with six `Xs' (i.e. /tmp/temp.XXXXXX)." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 683 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 684 | #define more_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 685 | "[FILE ...]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 686 | #define more_full_usage \ |
| 687 | "More is a filter for viewing FILE one screenful at a time." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 688 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 689 | #ifdef BB_FEATURE_MOUNT_LOOP |
| 690 | #define USAGE_MOUNT_LOOP(a) a |
| 691 | #else |
| 692 | #define USAGE_MOUNT_LOOP(a) |
| 693 | #endif |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 694 | #ifdef BB_MTAB |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 695 | #define USAGE_MTAB(a) a |
| 696 | #else |
| 697 | #define USAGE_MTAB(a) |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 698 | #endif |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 699 | #define mount_trivial_usage \ |
| 700 | "[flags] device directory [-o options,more-options]" |
| 701 | #define mount_full_usage \ |
| 702 | "Mount a filesystem\n\n" \ |
| 703 | "Flags:\n" \ |
| 704 | "\t-a:\t\tMount all filesystems in fstab.\n" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 705 | USAGE_MTAB( \ |
Eric Andersen | a0cfe94 | 2001-02-23 10:07:09 +0000 | [diff] [blame] | 706 | "\t-f:\t\t\"Fake\" Add entry to mount table but don't mount it.\n" \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 707 | "\t-n:\t\tDon't write a mount table entry.\n" \ |
| 708 | ) \ |
| 709 | "\t-o option:\tOne of many filesystem options, listed below.\n" \ |
| 710 | "\t-r:\t\tMount the filesystem read-only.\n" \ |
| 711 | "\t-t fs-type:\tSpecify the filesystem type.\n" \ |
| 712 | "\t-w:\t\tMount for reading and writing (default).\n" \ |
| 713 | "\n" \ |
| 714 | "Options for use with the \"-o\" flag:\n" \ |
| 715 | "\tasync/sync:\tWrites are asynchronous / synchronous.\n" \ |
| 716 | "\tatime/noatime:\tEnable / disable updates to inode access times.\n" \ |
| 717 | "\tdev/nodev:\tAllow use of special device files / disallow them.\n" \ |
| 718 | "\texec/noexec:\tAllow use of executable files / disallow them.\n" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 719 | USAGE_MOUNT_LOOP( \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 720 | "\tloop:\t\tMounts a file via loop device.\n" \ |
| 721 | ) \ |
| 722 | "\tsuid/nosuid:\tAllow set-user-id-root programs / disallow them.\n" \ |
Eric Andersen | a0cfe94 | 2001-02-23 10:07:09 +0000 | [diff] [blame] | 723 | "\tremount:\tRe-mount a mounted filesystem, changing its flags.\n" \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 724 | "\tro/rw:\t\tMount for read-only / read-write.\n" \ |
| 725 | "\nThere are EVEN MORE flags that are specific to each filesystem.\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 726 | "You'll have to see the written documentation for those." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 727 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 728 | #define mt_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 729 | "[-f device] opcode value" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 730 | #define mt_full_usage \ |
| 731 | "Control magnetic tape drive operation\n" \ |
| 732 | "\nAvailable Opcodes:\n\n" \ |
| 733 | "bsf bsfm bsr bss datacompression drvbuffer eof eom erase\n" \ |
| 734 | "fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2\n" \ |
| 735 | "ras3 reset retension rew rewoffline seek setblk setdensity\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 736 | "setpart tell unload unlock weof wset" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 737 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 738 | #define mv_trivial_usage \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 739 | "SOURCE DEST\n" \ |
| 740 | "or: mv SOURCE... DIRECTORY" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 741 | #define mv_full_usage \ |
| 742 | "Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 743 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 744 | #define nc_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 745 | "[IP] [port]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 746 | #define nc_full_usage \ |
| 747 | "Netcat opens a pipe to IP:port" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 748 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 749 | #define nslookup_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 750 | "[HOST]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 751 | #define nslookup_full_usage \ |
| 752 | "Queries the nameserver for the IP address of the given HOST" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 753 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 754 | #ifdef BB_FEATURE_SIMPLE_PING |
| 755 | #define ping_trivial_usage "host" |
| 756 | #define ping_full_usage "Send ICMP ECHO_REQUEST packets to network hosts" |
| 757 | #else |
| 758 | #define ping_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 759 | "[OPTION]... host" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 760 | #define ping_full_usage \ |
| 761 | "Send ICMP ECHO_REQUEST packets to network hosts.\n\n" \ |
| 762 | "Options:\n" \ |
| 763 | "\t-c COUNT\tSend only COUNT pings.\n" \ |
| 764 | "\t-s SIZE\t\tSend SIZE data bytes in packets (default=56).\n" \ |
| 765 | "\t-q\t\tQuiet mode, only displays output at start\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 766 | "\t\t\tand when finished." |
| 767 | #endif |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 768 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 769 | #define pivot_root_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 770 | "new_root put_old" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 771 | #define pivot_root_full_usage \ |
| 772 | "Move the current root file system to put_old and make new_root\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 773 | "the new root file system." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 774 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 775 | #define poweroff_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 776 | "" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 777 | #define poweroff_full_usage \ |
| 778 | "Halt the system and request that the kernel shut off the power." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 779 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 780 | #define printf_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 781 | "FORMAT [ARGUMENT...]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 782 | #define printf_full_usage \ |
| 783 | "Formats and prints ARGUMENT(s) according to FORMAT,\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 784 | "Where FORMAT controls the output exactly as in C printf." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 785 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 786 | #define ps_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 787 | "" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 788 | #define ps_full_usage \ |
| 789 | "Report process status\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 790 | "\nThis version of ps accepts no options." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 791 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 792 | #define pwd_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 793 | "" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 794 | #define pwd_full_usage \ |
| 795 | "Print the full filename of the current working directory." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 796 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 797 | #define rdate_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 798 | "[OPTION] HOST" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 799 | #define rdate_full_usage \ |
Eric Andersen | 7a9cc2d | 2001-02-23 16:58:44 +0000 | [diff] [blame] | 800 | "Get and possibly set the system date and time from a remote HOST.\n\n" \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 801 | "Options:\n" \ |
| 802 | "\t-s\tSet the system date and time (default).\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 803 | "\t-p\tPrint the date and time." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 804 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 805 | #define readlink_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 806 | "" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 807 | #define readlink_full_usage \ |
| 808 | "Read a symbolic link." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 809 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 810 | #define reboot_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 811 | "" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 812 | #define reboot_full_usage \ |
| 813 | "Reboot the system." |
| 814 | |
| 815 | #define renice_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 816 | "priority pid [pid ...]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 817 | #define renice_full_usage \ |
| 818 | "Changes priority of running processes. Allowed priorities range\n" \ |
| 819 | "from 20 (the process runs only when nothing else is running) to 0\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 820 | "(default priority) to -20 (almost nothing else ever gets to run)." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 821 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 822 | #define reset_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 823 | "" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 824 | #define reset_full_usage \ |
| 825 | "Resets the screen." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 826 | |
Mark Whitley | e0bf91d | 2001-03-13 00:40:19 +0000 | [diff] [blame] | 827 | #ifdef BB_FEATURE_RM_INTERACTIVE |
| 828 | #define USAGE_RM_INTERACTIVE(a) a |
| 829 | #else |
| 830 | #define USAGE_RM_INTERACTIVE(a) |
| 831 | #endif |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 832 | #define rm_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 833 | "[OPTION]... FILE..." |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 834 | #define rm_full_usage \ |
| 835 | "Remove (unlink) the FILE(s). You may use '--' to\n" \ |
| 836 | "indicate that all following arguments are non-options.\n\n" \ |
| 837 | "Options:\n" \ |
Mark Whitley | e0bf91d | 2001-03-13 00:40:19 +0000 | [diff] [blame] | 838 | USAGE_RM_INTERACTIVE("\t-i\t\talways prompt before removing each destinations\n") \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 839 | "\t-f\t\tremove existing destinations, never prompt\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 840 | "\t-r or -R\tremove the contents of directories recursively" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 841 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 842 | #define rmdir_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 843 | "[OPTION]... DIRECTORY..." |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 844 | #define rmdir_full_usage \ |
| 845 | "Remove the DIRECTORY(ies), if they are empty." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 846 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 847 | #define rmmod_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 848 | "[OPTION]... [MODULE]..." |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 849 | #define rmmod_full_usage \ |
| 850 | "Unloads the specified kernel modules from the kernel.\n\n" \ |
| 851 | "Options:\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 852 | "\t-a\tTry to remove all unused kernel modules." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 853 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 854 | #define route_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 855 | "[{add|del|flush}]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 856 | #define route_full_usage \ |
| 857 | "Edit the kernel's routing tables" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 858 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 859 | #define rpmunpack_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 860 | "< package.rpm | gunzip | cpio -idmuv" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 861 | #define rpmunpack_full_usage \ |
| 862 | "Extracts an rpm archive." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 863 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 864 | #define sed_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 865 | "[-Vhnef] pattern [files...]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 866 | #define sed_full_usage \ |
Eric Andersen | 7a9cc2d | 2001-02-23 16:58:44 +0000 | [diff] [blame] | 867 | "Options:\n" \ |
| 868 | "\t-n\t\tsuppress automatic printing of pattern space\n" \ |
| 869 | "\t-e script\tadd the script to the commands to be executed\n" \ |
| 870 | "\t-f scriptfile\tadd the contents of script-file to the commands to be executed\n" \ |
| 871 | "\t-h\t\tdisplay this help message\n" \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 872 | "\n" \ |
| 873 | "If no -e or -f is given, the first non-option argument is taken as the\n" \ |
| 874 | "sed script to interpret. All remaining arguments are names of input\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 875 | "files; if no input files are specified, then the standard input is read." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 876 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 877 | #define setkeycodes_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 878 | "SCANCODE KEYCODE ..." |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 879 | #define setkeycodes_full_usage \ |
| 880 | "Set entries into the kernel's scancode-to-keycode map,\n" \ |
| 881 | "allowing unusual keyboards to generate usable keycodes.\n\n" \ |
| 882 | "SCANCODE may be either xx or e0xx (hexadecimal),\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 883 | "and KEYCODE is given in decimal" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 884 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 885 | #define sh_trivial_usage \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 886 | "[FILE]...\n" \ |
| 887 | "or: sh -c command [args]..." |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 888 | #define sh_full_usage \ |
| 889 | "lash: The BusyBox command interpreter (shell)." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 890 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 891 | #define sleep_trivial_usage \ |
| 892 | "N" |
| 893 | #define sleep_full_usage \ |
| 894 | "Pause for N seconds." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 895 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 896 | |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 897 | #ifdef BB_FEATURE_SORT_REVERSE |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 898 | #define USAGE_SORT_REVERSE(a) a |
| 899 | #else |
| 900 | #define USAGE_SORT_REVERSE(a) |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 901 | #endif |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 902 | #define sort_trivial_usage \ |
| 903 | "[-n]" USAGE_SORT_REVERSE(" [-r]") " [FILE]..." |
| 904 | #define sort_full_usage \ |
| 905 | "Sorts lines of text in the specified files" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 906 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 907 | #define stty_trivial_usage \ |
| 908 | "[-a|g] [-F device] [SETTING]..." |
| 909 | #define stty_full_usage \ |
| 910 | "Without arguments, prints baud rate, line discipline," \ |
| 911 | "\nand deviations from stty sane." \ |
Eric Andersen | 7a9cc2d | 2001-02-23 16:58:44 +0000 | [diff] [blame] | 912 | "\n\nOptions:" \ |
| 913 | "\n\t-F device\topen device instead of stdin" \ |
| 914 | "\n\t-a\t\tprint all current settings in human-readable form" \ |
| 915 | "\n\t-g\t\tprint in stty-readable form" \ |
| 916 | "\n\t[SETTING]\tsee documentation" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 917 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 918 | #define swapoff_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 919 | "[OPTION] [device]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 920 | #define swapoff_full_usage \ |
| 921 | "Stop swapping virtual memory pages on the given device.\n\n" \ |
| 922 | "Options:\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 923 | "\t-a\tStop swapping on all swap devices" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 924 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 925 | #define swapon_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 926 | "[OPTION] [device]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 927 | #define swapon_full_usage \ |
| 928 | "Start swapping virtual memory pages on the given device.\n\n" \ |
| 929 | "Options:\n" \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 930 | "\t-a\tStart swapping on all swap devices" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 931 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 932 | #define sync_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 933 | "" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 934 | #define sync_full_usage \ |
| 935 | "Write all buffered filesystem blocks to disk." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 936 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 937 | |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 938 | #ifdef BB_FEATURE_REMOTE_LOG |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 939 | #define USAGE_REMOTE_LOG(a) a |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 940 | #else |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 941 | #define USAGE_REMOTE_LOG(a) |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 942 | #endif |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 943 | #define syslogd_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 944 | "[OPTION]..." |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 945 | #define syslogd_full_usage \ |
Mark Whitley | 6317c4b | 2001-03-12 22:51:50 +0000 | [diff] [blame] | 946 | "Linux system and kernel logging utility.\n" \ |
| 947 | "Note that this version of syslogd ignores /etc/syslog.conf.\n\n" \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 948 | "Options:\n" \ |
| 949 | "\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n" \ |
| 950 | "\t-n\t\tRun as a foreground process\n" \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 951 | "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 952 | USAGE_REMOTE_LOG( \ |
Eric Andersen | dc12190 | 2001-02-24 18:52:36 +0000 | [diff] [blame] | 953 | "\n\t-R HOST[:PORT]\tLog to IP or hostname on PORT (default PORT=514/UDP)\n" \ |
| 954 | "\t-L\t\tLog locally and via network logging (default is network only)") |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 955 | |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 956 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 957 | #ifdef BB_FEATURE_SIMPLE_TAIL |
| 958 | #define USAGE_UNSIMPLE_TAIL(a) |
| 959 | #else |
| 960 | #define USAGE_UNSIMPLE_TAIL(a) a |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 961 | #endif |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 962 | #define tail_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 963 | "[OPTION]... [FILE]..." |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 964 | #define tail_full_usage \ |
| 965 | "Print last 10 lines of each FILE to standard output.\n" \ |
| 966 | "With more than one FILE, precede each with a header giving the\n" \ |
| 967 | "file name. With no FILE, or when FILE is -, read standard input.\n\n" \ |
| 968 | "Options:\n" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 969 | USAGE_UNSIMPLE_TAIL("\t-c N[kbm]\toutput the last N bytes\n") \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 970 | "\t-n N[kbm]\tprint last N lines instead of last 10\n" \ |
| 971 | "\t-f\t\toutput data as the file grows" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 972 | USAGE_UNSIMPLE_TAIL( \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 973 | "\n\t-q\t\tnever output headers giving file names\n" \ |
| 974 | "\t-s SEC\t\twait SEC seconds between reads with -f\n" \ |
| 975 | "\t-v\t\talways output headers giving file names\n\n" \ |
| 976 | "If the first character of N (bytes or lines) is a `+', output begins with \n" \ |
| 977 | "the Nth item from the start of each file, otherwise, print the last N items\n" \ |
| 978 | "in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2)." \ |
| 979 | ) |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 980 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 981 | #ifdef BB_FEATURE_TAR_CREATE |
| 982 | #define USAGE_TAR_CREATE(a) a |
| 983 | #else |
| 984 | #define USAGE_TAR_CREATE(a) |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 985 | #endif |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 986 | #ifdef BB_FEATURE_TAR_EXCLUDE |
| 987 | #define USAGE_TAR_EXCLUDE(a) a |
| 988 | #else |
| 989 | #define USAGE_TAR_EXCLUDE(a) |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 990 | #endif |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 991 | #define tar_trivial_usage \ |
| 992 | "-[" USAGE_TAR_CREATE("c") "xtvO] " \ |
| 993 | USAGE_TAR_EXCLUDE("[--exclude File] [-X File]") \ |
| 994 | "[-f tarFile] [FILE(s)] ..." |
| 995 | #define tar_full_usage \ |
| 996 | "Create, extract, or list files from a tar file.\n\n" \ |
| 997 | "Main operation mode:\n" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 998 | USAGE_TAR_CREATE("\tc\t\tcreate\n") \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 999 | "\tx\t\textract\n" \ |
| 1000 | "\tt\t\tlist\n" \ |
| 1001 | "\nFile selection:\n" \ |
| 1002 | "\tf\t\tname of tarfile or \"-\" for stdin\n" \ |
| 1003 | "\tO\t\textract to stdout\n" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 1004 | USAGE_TAR_EXCLUDE( \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 1005 | "\texclude\t\tfile to exclude\n" \ |
| 1006 | "\tX\t\tfile with names to exclude\n" \ |
| 1007 | ) \ |
| 1008 | "\nInformative output:\n" \ |
| 1009 | "\tv\t\tverbosely list files processed" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 1010 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 1011 | #define tee_trivial_usage \ |
| 1012 | "[OPTION]... [FILE]..." |
| 1013 | #define tee_full_usage \ |
| 1014 | "Copy standard input to each FILE, and also to standard output.\n\n" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 1015 | "Options:\n" \ |
| 1016 | "\t-a\tappend to the given FILEs, do not overwrite" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 1017 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 1018 | #define telnet_trivial_usage \ |
| 1019 | "host [port]" |
| 1020 | #define telnet_full_usage \ |
| 1021 | "Telnet is used to establish interactive communication with another\n"\ |
| 1022 | "computer over a network using the TELNET protocol." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 1023 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 1024 | #define test_trivial_usage \ |
| 1025 | "EXPRESSION\n or [ EXPRESSION ]" |
| 1026 | #define test_full_usage \ |
| 1027 | "Checks file types and compares values returning an exit\n" \ |
| 1028 | "code determined by the value of EXPRESSION." |
| 1029 | |
Mark Whitley | 450736c | 2001-03-02 19:08:50 +0000 | [diff] [blame] | 1030 | #ifdef BB_FEATURE_TFTP_GET |
| 1031 | #define USAGE_TFTP_GET(a) a |
| 1032 | #else |
| 1033 | #define USAGE_TFTP_GET(a) |
| 1034 | #endif |
| 1035 | #ifdef BB_FEATURE_TFTP_PUT |
| 1036 | #define USAGE_TFTP_PUT(a) a |
| 1037 | #else |
| 1038 | #define USAGE_TFTP_PUT(a) |
| 1039 | #endif |
| 1040 | |
| 1041 | #define tftp_trivial_usage \ |
| 1042 | "command SOURCE DEST" |
| 1043 | #define tftp_full_usage \ |
| 1044 | "Transfers a file from/to a tftp server using \"octet\" mode.\n\n" \ |
| 1045 | "Commands:\n" \ |
| 1046 | USAGE_TFTP_GET( \ |
| 1047 | "\tget\tGet file from server SOURCE and store to local DEST.\n" \ |
| 1048 | ) \ |
| 1049 | USAGE_TFTP_PUT( \ |
| 1050 | "\tput\tPut local file SOURCE to server DEST.\n" \ |
| 1051 | ) \ |
| 1052 | "\nWhen nameing a server, use the syntax \"server:file\"." |
| 1053 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 1054 | #define touch_trivial_usage \ |
| 1055 | "[-c] file [file ...]" |
| 1056 | #define touch_full_usage \ |
| 1057 | "Update the last-modified date on the given file[s].\n\n" \ |
| 1058 | "Options:\n" \ |
| 1059 | "\t-c\tDo not create any files" |
| 1060 | |
| 1061 | #define tr_trivial_usage \ |
| 1062 | "[-cds] STRING1 [STRING2]" |
| 1063 | #define tr_full_usage \ |
| 1064 | "Translate, squeeze, and/or delete characters from\n" \ |
| 1065 | "standard input, writing to standard output.\n\n" \ |
| 1066 | "Options:\n" \ |
| 1067 | "\t-c\ttake complement of STRING1\n" \ |
| 1068 | "\t-d\tdelete input characters coded STRING1\n" \ |
| 1069 | "\t-s\tsqueeze multiple output characters of STRING2 into one character" |
| 1070 | |
| 1071 | #define true_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 1072 | "" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 1073 | #define true_full_usage \ |
| 1074 | "Return an exit code of TRUE (0)." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 1075 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 1076 | #define tty_trivial_usage \ |
| 1077 | "" |
| 1078 | #define tty_full_usage \ |
| 1079 | "Print the file name of the terminal connected to standard input.\n\n"\ |
| 1080 | "Options:\n" \ |
| 1081 | "\t-s\tprint nothing, only return an exit status" |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 1082 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 1083 | #ifdef BB_FEATURE_MOUNT_FORCE |
| 1084 | #define USAGE_MOUNT_FORCE(a) a |
| 1085 | #else |
| 1086 | #define USAGE_MOUNT_FORCE(a) |
| 1087 | #endif |
| 1088 | #define umount_trivial_usage \ |
| 1089 | "[flags] filesystem|directory" |
| 1090 | #define umount_full_usage \ |
| 1091 | "Unmount file systems\n" \ |
| 1092 | "\nFlags:\n" "\t-a:\tUnmount all file systems" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 1093 | USAGE_MTAB(" in /etc/mtab\n\t-n:\tDon't erase /etc/mtab entries") \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 1094 | "\n\t-r:\tTry to remount devices as read-only if mount is busy" \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 1095 | USAGE_MOUNT_FORCE("\n\t-f:\tForce filesystem umount (i.e. unreachable NFS server)") \ |
| 1096 | USAGE_MOUNT_LOOP("\n\t-l:\tDo not free loop device (if a loop device has been used)") |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 1097 | |
| 1098 | #define uname_trivial_usage \ |
| 1099 | "[OPTION]..." |
| 1100 | #define uname_full_usage \ |
| 1101 | "Print certain system information. With no OPTION, same as -s.\n\n" \ |
| 1102 | "Options:\n" \ |
| 1103 | "\t-a\tprint all information\n" \ |
| 1104 | "\t-m\tthe machine (hardware) type\n" \ |
| 1105 | "\t-n\tprint the machine's network node hostname\n" \ |
| 1106 | "\t-r\tprint the operating system release\n" \ |
| 1107 | "\t-s\tprint the operating system name\n" \ |
| 1108 | "\t-p\tprint the host processor type\n" \ |
| 1109 | "\t-v\tprint the operating system version" |
| 1110 | |
| 1111 | #define uniq_trivial_usage \ |
| 1112 | "[OPTION]... [INPUT [OUTPUT]]" |
| 1113 | #define uniq_full_usage \ |
| 1114 | "Discard all but one of successive identical lines from INPUT\n" \ |
Eric Andersen | a0cfe94 | 2001-02-23 10:07:09 +0000 | [diff] [blame] | 1115 | "(or standard input), writing to OUTPUT (or standard output).\n\n" \ |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 1116 | "Options:\n" \ |
| 1117 | "\t-c\tprefix lines by the number of occurrences\n" \ |
| 1118 | "\t-d\tonly print duplicate lines\n" \ |
| 1119 | "\t-u\tonly print unique lines" |
| 1120 | |
| 1121 | #define unix2dos_trivial_usage \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 1122 | "[option] [file]" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 1123 | #define unix2dos_full_usage \ |
Eric Andersen | 4b2e69a | 2001-02-22 23:32:59 +0000 | [diff] [blame] | 1124 | "See 'dos2unix --help' for help!" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 1125 | |
| 1126 | #define update_trivial_usage \ |
| 1127 | "[options]" |
| 1128 | #define update_full_usage \ |
| 1129 | "Periodically flushes filesystem buffers.\n\n" \ |
| 1130 | "Options:\n" \ |
| 1131 | "\t-S\tforce use of sync(2) instead of flushing\n" \ |
| 1132 | "\t-s SECS\tcall sync this often (default 30)\n" \ |
| 1133 | "\t-f SECS\tflush some buffers this often (default 5)" |
| 1134 | |
| 1135 | #define uptime_trivial_usage \ |
| 1136 | "" |
| 1137 | #define uptime_full_usage \ |
| 1138 | "Display the time since the last boot." |
| 1139 | |
| 1140 | #define usleep_trivial_usage \ |
| 1141 | "N" |
| 1142 | #define usleep_full_usage \ |
| 1143 | "Pause for N microseconds." |
| 1144 | |
| 1145 | #define uudecode_trivial_usage \ |
| 1146 | "[FILE]..." |
| 1147 | #define uudecode_full_usage \ |
| 1148 | "Uudecode a file that is uuencoded.\n\n" \ |
| 1149 | "Options:\n" \ |
| 1150 | "\t-o FILE\tdirect output to FILE" \ |
| 1151 | |
| 1152 | #define uuencode_trivial_usage \ |
| 1153 | "[OPTION] [INFILE] REMOTEFILE" |
| 1154 | #define uuencode_full_usage \ |
| 1155 | "Uuencode a file.\n\n" \ |
| 1156 | "Options:\n" \ |
| 1157 | "\t-m\tuse base64 encoding as of RFC1521" |
| 1158 | |
| 1159 | #define watchdog_trivial_usage \ |
Eric Andersen | 7a9cc2d | 2001-02-23 16:58:44 +0000 | [diff] [blame] | 1160 | "DEV" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 1161 | #define watchdog_full_usage \ |
Eric Andersen | 7a9cc2d | 2001-02-23 16:58:44 +0000 | [diff] [blame] | 1162 | "Periodically write to watchdog device DEV" |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 1163 | |
| 1164 | #define wc_trivial_usage \ |
| 1165 | "[OPTION]... [FILE]..." |
| 1166 | #define wc_full_usage \ |
| 1167 | "Print line, word, and byte counts for each FILE, and a total line if\n" \ |
| 1168 | "more than one FILE is specified. With no FILE, read standard input.\n\n" \ |
| 1169 | "Options:\n" \ |
| 1170 | "\t-c\tprint the byte counts\n" \ |
| 1171 | "\t-l\tprint the newline counts\n" \ |
| 1172 | "\t-L\tprint the length of the longest line\n" \ |
| 1173 | "\t-w\tprint the word counts" |
| 1174 | |
| 1175 | #define wget_trivial_usage \ |
| 1176 | "[-c] [-O file] url" |
| 1177 | #define wget_full_usage \ |
| 1178 | "wget retrieves files via HTTP\n\n" \ |
| 1179 | "Options:\n" \ |
| 1180 | "\t-c\tcontinue retrieval of aborted transfers\n" \ |
| 1181 | "\t-O\tsave to filename ('-' for stdout)" |
| 1182 | |
| 1183 | #define which_trivial_usage \ |
| 1184 | "[COMMAND ...]" |
| 1185 | #define which_full_usage \ |
| 1186 | "Locates a COMMAND." |
| 1187 | |
| 1188 | #define whoami_trivial_usage \ |
| 1189 | "" |
| 1190 | #define whoami_full_usage \ |
| 1191 | "Prints the user name associated with the current effective user id." |
| 1192 | |
| 1193 | #define xargs_trivial_usage \ |
| 1194 | "[COMMAND] [ARGS...]" |
| 1195 | #define xargs_full_usage \ |
| 1196 | "Executes COMMAND on every item given by standard input." |
| 1197 | |
| 1198 | #define yes_trivial_usage \ |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 1199 | "[OPTION]... [STRING]..." |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 1200 | #define yes_full_usage \ |
| 1201 | "Repeatedly outputs a line with all specified STRING(s), or `y'." |
Eric Andersen | 3ec8ffb | 2001-02-14 21:46:30 +0000 | [diff] [blame] | 1202 | |
Eric Andersen | 7e9276b | 2001-02-22 01:15:47 +0000 | [diff] [blame] | 1203 | #define zcat_trivial_usage \ |
| 1204 | "FILE" |
| 1205 | #define zcat_full_usage \ |
| 1206 | "Uncompress to stdout." |