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