📄 usage.h
字号:
#define dutmp_trivial_usage \ "[FILE]"#define dutmp_full_usage \ "Dump utmp file format (pipe delimited) from FILE\n" \ "or stdin to stdout. (i.e., 'dutmp /var/run/utmp')"#define dutmp_example_usage \ "$ dutmp /var/run/utmp\n" \ "8|7||si|||0|0|0|955637625|760097|0\n" \ "2|0|~|~~|reboot||0|0|0|955637625|782235|0\n" \ "1|20020|~|~~|runlevel||0|0|0|955637625|800089|0\n" \ "8|125||l4|||0|0|0|955637629|998367|0\n" \ "6|245|tty1|1|LOGIN||0|0|0|955637630|998974|0\n" \ "6|246|tty2|2|LOGIN||0|0|0|955637630|999498|0\n" \ "7|336|pts/0|vt00andersen|andersen|:0.0|0|0|0|955637763|0|0\n"#define echo_trivial_usage \ "[-neE] [ARG ...]"#define echo_full_usage \ "Prints the specified ARGs to stdout\n\n" \ "Options:\n" \ "\t-n\tsuppress trailing newline\n" \ "\t-e\tinterpret backslash-escaped characters (i.e., \\t=tab)\n" \ "\t-E\tdisable interpretation of backslash-escaped characters"#define echo_example_usage \ "$ echo "Erik is cool"\n" \ "Erik is cool\n" \ "$ echo -e "Erik\\nis\\ncool"\n" \ "Erik\n" \ "is\n" \ "cool\n" \ "$ echo "Erik\\nis\\ncool"\n" \ "Erik\\nis\\ncool\n"#define env_trivial_usage \ "[-iu] [-] [name=value]... [command]"#define env_full_usage \ "Prints the current environment or runs a program after setting\n" \ "up the specified environment.\n\n" \ "Options:\n" \ "\t-, -i\tstart with an empty environment\n" \ "\t-u\tremove variable from the environment\n"#define expr_trivial_usage \ "EXPRESSION"#define expr_full_usage \ "Prints the value of EXPRESSION to standard output.\n\n" \ "EXPRESSION may be:\n" \ "\tARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2\n" \ "\tARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0\n" \ "\tARG1 < ARG2 ARG1 is less than ARG2\n" \ "\tARG1 <= ARG2 ARG1 is less than or equal to ARG2\n" \ "\tARG1 = ARG2 ARG1 is equal to ARG2\n" \ "\tARG1 != ARG2 ARG1 is unequal to ARG2\n" \ "\tARG1 >= ARG2 ARG1 is greater than or equal to ARG2\n" \ "\tARG1 > ARG2 ARG1 is greater than ARG2\n" \ "\tARG1 + ARG2 arithmetic sum of ARG1 and ARG2\n" \ "\tARG1 - ARG2 arithmetic difference of ARG1 and ARG2\n" \ "\tARG1 * ARG2 arithmetic product of ARG1 and ARG2\n" \ "\tARG1 / ARG2 arithmetic quotient of ARG1 divided by ARG2\n" \ "\tARG1 % ARG2 arithmetic remainder of ARG1 divided by ARG2\n" \ "\tSTRING : REGEXP anchored pattern match of REGEXP in STRING\n" \ "\tmatch STRING REGEXP same as STRING : REGEXP\n" \ "\tsubstr STRING POS LENGTH substring of STRING, POS counted from 1\n" \ "\tindex STRING CHARS index in STRING where any CHARS is found,\n" \ "\t or 0\n" \ "\tlength STRING length of STRING\n" \ "\tquote TOKEN interpret TOKEN as a string, even if\n" \ "\t it is a keyword like `match' or an\n" \ "\t operator like `/'\n" \ "\t( EXPRESSION ) value of EXPRESSION\n\n" \ "Beware that many operators need to be escaped or quoted for shells.\n" \ "Comparisons are arithmetic if both ARGs are numbers, else\n" \ "lexicographical. Pattern matches return the string matched between \n" \ "\\( and \\) or null; if \\( and \\) are not used, they return the number \n" \ "of characters matched or 0."#define false_trivial_usage \ ""#define false_full_usage \ "Return an exit code of FALSE (1)."#define false_example_usage \ "$ false\n" \ "$ echo $?\n" \ "1\n"#define fbset_trivial_usage \ "[options] [mode]"#define fbset_full_usage \ "Show and modify frame buffer settings"#define fbset_example_usage \ "$ fbset\n" \ "mode "1024x768-76"\n" \ "\t# D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz\n" \ "\tgeometry 1024 768 1024 768 16\n" \ "\ttimings 12714 128 32 16 4 128 4\n" \ "\taccel false\n" \ "\trgba 5/11,6/5,5/0,0/0\n" \ "endmode\n"#define fdflush_trivial_usage \ "DEVICE"#define fdflush_full_usage \ "Forces floppy disk drive to detect disk change"#ifdef CONFIG_FEATURE_FIND_TYPE #define USAGE_FIND_TYPE(a) a#else #define USAGE_FIND_TYPE(a)#endif#ifdef CONFIG_FEATURE_FIND_PERM #define USAGE_FIND_PERM(a) a#else #define USAGE_FIND_PERM(a)#endif#ifdef CONFIG_FEATURE_FIND_MTIME #define USAGE_FIND_MTIME(a) a#else #define USAGE_FIND_MTIME(a)#endif#define find_trivial_usage \ "[PATH...] [EXPRESSION]"#define find_full_usage \ "Search for files in a directory hierarchy. The default PATH is\n" \ "the current directory; default EXPRESSION is '-print'\n" \ "\nEXPRESSION may consist of:\n" \ "\t-follow\t\tDereference symbolic links.\n" \ "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN.\n" \ "\t-print\t\tPrint (default and assumed).\n" \ USAGE_FIND_TYPE( \ "\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \) USAGE_FIND_PERM( \ "\n\t-perm PERMS\tPermissions match any of (+NNN); all of (-NNN);\n\t\t\tor exactly (NNN)" \) USAGE_FIND_MTIME( \ "\n\t-mtime TIME\tModified time is greater than (+N); less than (-N);\n\t\t\tor exactly (N) days")#define find_example_usage \ "$ find / -name /etc/passwd\n" \ "/etc/passwd\n"#define free_trivial_usage \ ""#define free_full_usage \ "Displays the amount of free and used system memory"#define free_example_usage \ "$ free\n" \ " total used free shared buffers\n" \ " Mem: 257628 248724 8904 59644 93124\n" \ " Swap: 128516 8404 120112\n" \ "Total: 386144 257128 129016\n" \#define freeramdisk_trivial_usage \ "DEVICE"#define freeramdisk_full_usage \ "Frees all memory used by the specified ramdisk."#define freeramdisk_example_usage \ "$ freeramdisk /dev/ram2\n"#define fsck_minix_trivial_usage \ "[-larvsmf] /dev/name"#define fsck_minix_full_usage \ "Performs a consistency check for MINIX filesystems.\n\n" \ "Options:\n" \ "\t-l\tLists all filenames\n" \ "\t-r\tPerform interactive repairs\n" \ "\t-a\tPerform automatic repairs\n" \ "\t-v\tverbose\n" \ "\t-s\tOutputs super-block information\n" \ "\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n" \ "\t-f\tForce file system check."#define getopt_trivial_usage \ "[OPTIONS]..."#define getopt_full_usage \ "Parse command options\n" \ "\t-a, --alternative Allow long options starting with single -\n" \ "\t-l, --longoptions=longopts Long options to be recognized\n" \ "\t-n, --name=progname The name under which errors are reported\n" \ "\t-o, --options=optstring Short options to be recognized\n" \ "\t-q, --quiet Disable error reporting by getopt(3)\n" \ "\t-Q, --quiet-output No normal output\n" \ "\t-s, --shell=shell Set shell quoting conventions\n" \ "\t-T, --test Test for getopt(1) version\n" \ "\t-u, --unqote Do not quote the output"#define getopt_example_usage \ "$ cat getopt.test\n" \ "#!/bin/sh\n" \ "GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \\\n" \ " -n 'example.busybox' -- "$@"`\n" \ "if [ $? != 0 ] ; then exit 1 ; fi\n" \ "eval set -- "$GETOPT"\n" \ "while true ; do\n" \ " case $1 in\n" \ " -a|--a-long) echo \"Option a\" ; shift ;;\n" \ " -b|--b-long) echo \"Option b, argument \`$2'\" ; shift 2 ;;\n" \ " -c|--c-long)\n" \ " case "$2" in\n" \ " \"\") echo \"Option c, no argument\"; shift 2 ;;\n" \ " *) echo \"Option c, argument \`$2'\" ; shift 2 ;;\n" \ " esac ;;\n" \ " --) shift ; break ;;\n" \ " *) echo \"Internal error!\" ; exit 1 ;;\n" \ " esac\n" \ "done\n"#define getty_trivial_usage \ "getty [OPTIONS]... baud_rate,... line [termtype]"#define getty_full_usage \ "\nOpens a tty, prompts for a login name, then invokes /bin/login\n\n" \ "Options:\n" \ "\t-h\t\tEnable hardware (RTS/CTS) flow control.\n" \ "\t-i\t\tDo not display /etc/issue before running login.\n" \ "\t-L\t\tLocal line, so do not do carrier detect.\n" \ "\t-m\t\tGet baud rate from modem's CONNECT status message.\n" \ "\t-w\t\tWait for a CR or LF before sending /etc/issue.\n" \ "\t-l login_app\tInvoke login_app instead of /bin/login.\n" \ "\t-t timeout\tTerminate after timeout if no username is read.\n" \ "\t-I initstring\tSets the init string to send before anything else.\n" \ "\t-H login_host\tLog login_host into the utmp file as the hostname."#define grep_trivial_usage \ "[-ihHnqvs] PATTERN [FILEs...]"#define grep_full_usage \ "Search for PATTERN in each FILE or standard input.\n\n" \ "Options:\n" \ "\t-H\tprefix output lines with filename where match was found\n" \ "\t-h\tsuppress the prefixing filename on output\n" \ "\t-i\tignore case distinctions\n" \ "\t-l\tlist names of files that match\n" \ "\t-n\tprint line number with output lines\n" \ "\t-q\tbe quiet. Returns 0 if result was found, 1 otherwise\n" \ "\t-v\tselect non-matching lines\n" \ "\t-s\tsuppress file open/read error messages"#define grep_example_usage \ "$ grep root /etc/passwd\n" \ "root:x:0:0:root:/root:/bin/bash\n" \ "$ grep ^[rR]oo. /etc/passwd\n" \ "root:x:0:0:root:/root:/bin/bash\n"#define gunzip_trivial_usage \ "[OPTION]... FILE"#define gunzip_full_usage \ "Uncompress FILE (or standard input if FILE is '-').\n\n" \ "Options:\n" \ "\t-c\tWrite output to standard output\n" \ "\t-t\tTest compressed file integrity"#define gunzip_example_usage \ "$ ls -la /tmp/BusyBox*\n" \ "-rw-rw-r-- 1 andersen andersen 557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz\n" \ "$ gunzip /tmp/BusyBox-0.43.tar.gz\n" \ "$ ls -la /tmp/BusyBox*\n" \ "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar\n"#define gzip_trivial_usage \ "[OPTION]... [FILE]..."#define gzip_full_usage \ "Compress FILE(s) with maximum compression.\n" \ "When FILE is '-' or unspecified, reads standard input. Implies -c.\n\n" \ "Options:\n" \ "\t-c\tWrite output to standard output instead of FILE.gz\n" \ "\t-d\tdecompress"#define gzip_example_usage \ "$ ls -la /tmp/busybox*\n" \ "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/busybox.tar\n" \ "$ gzip /tmp/busybox.tar\n" \ "$ ls -la /tmp/busybox*\n" \ "-rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/busybox.tar.gz\n"#define halt_trivial_usage \ ""#define halt_full_usage \ "Halt the system."#define head_trivial_usage \ "[OPTION] [FILE]..."#define head_full_usage \ "Print first 10 lines of each FILE to standard output.\n" \ "With more than one FILE, precede each with a header giving the\n" \ "file name. With no FILE, or when FILE is -, read standard input.\n\n" \ "Options:\n" \ "\t-n NUM\t\tPrint first NUM lines instead of first 10"#define head_example_usage \ "$ head -n 2 /etc/passwd\n" \ "root:x:0:0:root:/root:/bin/bash\n" \ "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n"#define hexdump_trivial_usage \ "[-[bcdefnosvx]] [OPTION] FILE"#define hexdump_full_usage \ "The hexdump utility is a filter which displays the specified files,\n" \ "or the standard input, if no files are specified, in a user specified\n"\ "format\n" \ "\t-b\t\tOne-byte octal display\n" \ "\t-c\t\tOne-byte character display\n" \ "\t-d\t\tTwo-byte decimal display\n" \ "\t-e FORMAT STRING\n" \ "\t-f FORMAT FILE\n" \ "\t-n LENGTH\tInterpret only length bytes of input\n" \ "\t-o\t\tTwo-byte octal display\n" \ "\t-s OFFSET\tSkip offset byte\n" \ "\t-v\t\tdisplay all input data\n" \ "\t-x\t\tTwo-byte hexadecimal display\n"#define hostid_trivial_usage \ ""#define hostid_full_usage \ "Print out a unique 32-bit identifier for the machine."#define hostname_trivial_usage \ "[OPTION] {hostname | -F FILE}"#define hostname_full_usage \ "Get or set the hostname or DNS domain name. If a hostname is given\n" \ "(or FILE with the -F parameter), the host name will be set.\n\n" \ "Options:\n" \ "\t-s\tShort\n" \ "\t-i\tAddresses for the hostname\n" \ "\t-d\tDNS domain name\n" \ "\t-f\tFully qualified domain name\n" \ "\t-F FILE\tUse the contents of FILE to specify the hostname"#define hostname_example_usage \ "$ hostname\n" \ "sage \n"#define id_trivial_usage \ "[OPTIONS]... [USERNAME]"#define id_full_usage \ "Print information for USERNAME or the current user\n\n" \ "Options:\n" \ "\t-g\tprints only the group ID\n" \ "\t-u\tprints only the user ID\n" \ "\t-n\tprint a name instead of a number (with for -ug)\n" \ "\t-r\tprints the real user ID instead of the effective ID (with -ug)"#define id_example_usage \ "$ id\n" \ "uid=1000(andersen) gid=1000(andersen)\n"#ifdef CONFIG_FEATURE_IFCONFIG_SLIP #define USAGE_SIOCSKEEPALIVE(a) a#else #define USAGE_SIOCSKEEPALIVE(a)#endif#ifdef CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ #define USAGE_IFCONFIG_MII(a) a#else #define USAGE_IFCONFIG_MII(a)#endif#ifdef CONFIG_FEATURE_IFCONFIG_HW #define USAGE_IFCONFIG_HW(a) a#else #define USAGE_IFCONFIG_HW(a)#endif#ifdef CONFIG_FEATURE_IFCONFIG_STATUS #define USAGE_IFCONFIG_OPT_A(a) a#else #define USAGE_IFCONFIG_OPT_A(a)#endif#ifdef CONFIG_FEATURE_IPV6 #define USAGE_IPV6(a) a#else #define USAGE_IPV6(a)#endif#define ifconfig_trivial_usage \ USAGE_IFCONFIG_OPT_A("[-a]") " <interface> [<address>]"#define ifconfig_full_usage \ "configure a network interface\n\n" \ "Options:\n" \ USAGE_IPV6("[add <address>[/<prefixlen>]]\n") \ USAGE_IPV6("[del <address>[/<prefixlen>]]\n") \ "\t[[-]broadcast [<address>]] [[-]pointopoint [<address>]]\n" \ "\t[netmask <address>] [dstaddr <address>]\n" \ USAGE_SIOCSKEEPALIVE("\t[outfill <NN>] [keepalive <NN>]\n") \ "\t" USAGE_IFCONFIG_HW("[hw ether <address>] ") \ "[metric <NN>] [mtu <NN>]\n" \ "\t[[-]trailers] [[-]arp] [[-]allmulti]\n" \ "\t[multicast] [[-]promisc] [txqueuelen <NN>] [[-]dynamic]\n" \ USAGE_IFCONFIG_MII("\t[mem_start <NN>] [io_addr <NN>] [irq <NN>]\n") \
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -