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