📄 usage.h
字号:
"$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \ "a\n" \ "b\n" \ "c\n" \ "d\n" \ "e\n" \ "f\n"#define stty_trivial_usage \ "[-a|g] [-F DEVICE] [SETTING]..."#define stty_full_usage \ "Without arguments, prints baud rate, line discipline," \ "\nand deviations from stty sane." \ "\n\nOptions:" \ "\n\t-F DEVICE\topen device instead of stdin" \ "\n\t-a\t\tprint all current settings in human-readable form" \ "\n\t-g\t\tprint in stty-readable form" \ "\n\t[SETTING]\tsee manpage"#define swapoff_trivial_usage \ "[OPTION] [DEVICE]"#define swapoff_full_usage \ "Stop swapping virtual memory pages on DEVICE.\n\n" \ "Options:\n" \ "\t-a\tStop swapping on all swap devices"#define swapon_trivial_usage \ "[OPTION] [DEVICE]"#define swapon_full_usage \ "Start swapping virtual memory pages on DEVICE.\n\n" \ "Options:\n" \ "\t-a\tStart swapping on all swap devices"#define sync_trivial_usage \ ""#define sync_full_usage \ "Write all buffered filesystem blocks to disk."#ifdef BB_FEATURE_REMOTE_LOG #define USAGE_REMOTE_LOG(a) a#else #define USAGE_REMOTE_LOG(a)#endif#define syslogd_trivial_usage \ "[OPTION]..."#define syslogd_full_usage \ "Linux system and kernel logging utility.\n" \ "Note that this version of syslogd ignores /etc/syslog.conf.\n\n" \ "Options:\n" \ "\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n" \ "\t-n\t\tRun as a foreground process\n" \ "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)" \ USAGE_REMOTE_LOG( \ "\n\t-R HOST[:PORT]\tLog to IP or hostname on PORT (default PORT=514/UDP)\n" \ "\t-L\t\tLog locally and via network logging (default is network only)")#define syslogd_example_usage \ "$ syslogd -R masterlog:514\n" \ "$ syslogd -R 192.168.1.1:601\n"#ifndef BB_FEATURE_FANCY_TAIL #define USAGE_UNSIMPLE_TAIL(a)#else #define USAGE_UNSIMPLE_TAIL(a) a#endif#define tail_trivial_usage \ "[OPTION]... [FILE]..."#define tail_full_usage \ "Print last 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" \ USAGE_UNSIMPLE_TAIL("\t-c N[kbm]\toutput the last N bytes\n") \ "\t-n N[kbm]\tprint last N lines instead of last 10\n" \ "\t-f\t\toutput data as the file grows" \ USAGE_UNSIMPLE_TAIL( "\n\t-q\t\tnever output headers giving file names\n" \ "\t-s SEC\t\twait SEC seconds between reads with -f\n" \ "\t-v\t\talways output headers giving file names\n\n" \ "If the first character of N (bytes or lines) is a '+', output begins with \n" \ "the Nth item from the start of each file, otherwise, print the last N items\n" \ "in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2)." )#define tail_example_usage \ "$ tail -n 1 /etc/resolv.conf\n" \ "nameserver 10.0.0.1\n"#ifdef BB_FEATURE_TAR_CREATE #define USAGE_TAR_CREATE(a) a#else #define USAGE_TAR_CREATE(a)#endif#ifdef BB_FEATURE_TAR_EXCLUDE #define USAGE_TAR_EXCLUDE(a) a#else #define USAGE_TAR_EXCLUDE(a)#endif#define tar_trivial_usage \ "-[" USAGE_TAR_CREATE("c") "xtvO] " \ USAGE_TAR_EXCLUDE("[--exclude FILE] [-X FILE]") \ "[-f TARFILE] [-C DIR] [FILE(s)] ..."#define tar_full_usage \ "Create, extract, or list files from a tar file.\n\n" \ "Options:\n" \ USAGE_TAR_CREATE("\tc\t\tcreate\n") \ "\tx\t\textract\n" \ "\tt\t\tlist\n" \ "\nFile selection:\n" \ "\tf\t\tname of TARFILE or \"-\" for stdin\n" \ "\tO\t\textract to stdout\n" \ USAGE_TAR_EXCLUDE( \ "\texclude\t\tfile to exclude\n" \ "\tX\t\tfile with names to exclude\n" \ ) \ "\tC\t\tchange to directory DIR before operation\n" \ "\tv\t\tverbosely list files processed"#define tar_example_usage \ "$ zcat /tmp/tarball.tar.gz | tar -xf -\n" \ "$ tar -cf /tmp/tarball.tar /usr/local\n"#define tee_trivial_usage \ "[OPTION]... [FILE]..."#define tee_full_usage \ "Copy standard input to each FILE, and also to standard output.\n\n" \ "Options:\n" \ "\t-a\tappend to the given FILEs, do not overwrite"#define tee_example_usage \ "$ echo "Hello" | tee /tmp/foo\n" \ "$ cat /tmp/foo\n" \ "Hello\n"#define telnet_trivial_usage \ "HOST [PORT]"#define telnet_full_usage \ "Telnet is used to establish interactive communication with another\n"\ "computer over a network using the TELNET protocol."#define test_trivial_usage \ "EXPRESSION\n or [ EXPRESSION ]"#define test_full_usage \ "Checks file types and compares values returning an exit\n" \ "code determined by the value of EXPRESSION."#define test_example_usage \ "$ test 1 -eq 2\n" \ "$ echo $?\n" \ "1\n" \ "$ test 1 -eq 1\n" \ "$ echo $? \n" \ "0\n" \ "$ [ -d /etc ]\n" \ "$ echo $?\n" \ "0\n" \ "$ [ -d /junk ]\n" \ "$ echo $?\n" \ "1\n"#ifdef BB_FEATURE_TFTP_GET #define USAGE_TFTP_GET(a) a#else #define USAGE_TFTP_GET(a)#endif#ifdef BB_FEATURE_TFTP_PUT #define USAGE_TFTP_PUT(a) a#else #define USAGE_TFTP_PUT(a)#endif#define time_trivial_usage \ "[OPTION]... COMMAND [ARGS...]"#define time_full_usage \ "Runs the program COMMAND with arguments ARGS. When COMMAND finishes,\n" "COMMAND's resource usage information is displayed\n\n" "Options:\n" \ "\t-v\tDisplays verbose resource usage information."#define tftp_trivial_usage \ "[OPTION]... HOST [PORT]"#define tftp_full_usage \ "Transfers a file from/to a tftp server using \"octet\" mode.\n\n" \ "Options:\n" \ "\t-b SIZE\tTransfer blocks of SIZE octets.\n" \ USAGE_TFTP_GET( \ "\t-g\tGet file.\n" \ ) \ "\t-l FILE\tTransfer local FILE.\n" \ USAGE_TFTP_PUT( \ "\t-p\tPut file.\n" \ ) \ "\t-r FILE\tTransfer remote FILE.\n"#define top_trivial_usage \ "[-d <seconds>]"#define top_full_usage \ "top provides an view of processor activity in real time.\n" \ "This utility reads the status for all processes in /proc each <seconds>\n" \ "and shows the status for however many processes will fit on the screen.\n" \ "This utility will not show processes that are started after program startup,\n" \ "but it will show the EXIT status for and PIDs that exit while it is running."#define touch_trivial_usage \ "[-c] FILE [FILE ...]"#define touch_full_usage \ "Update the last-modified date on the given FILE[s].\n\n" \ "Options:\n" \ "\t-c\tDo not create any files"#define touch_example_usage \ "$ ls -l /tmp/foo\n" \ "/bin/ls: /tmp/foo: No such file or directory\n" \ "$ touch /tmp/foo\n" \ "$ ls -l /tmp/foo\n" \ "-rw-rw-r-- 1 andersen andersen 0 Apr 15 01:11 /tmp/foo\n" #define tr_trivial_usage \ "[-cds] STRING1 [STRING2]"#define tr_full_usage \ "Translate, squeeze, and/or delete characters from\n" \ "standard input, writing to standard output.\n\n" \ "Options:\n" \ "\t-c\ttake complement of STRING1\n" \ "\t-d\tdelete input characters coded STRING1\n" \ "\t-s\tsqueeze multiple output characters of STRING2 into one character"#define tr_example_usage \ "$ echo "gdkkn vnqkc" | tr [a-y] [b-z]\n" \ "hello world\n" #define traceroute_trivial_usage \ "[-dnrv] [-m max_ttl] [-p port#] [-q nqueries]\n\ [-s src_addr] [-t tos] [-w wait] host [data size]"#define traceroute_full_usage \ "trace the route ip packets follow going to \"host\"\n" \ "Options:\n" \ "\t-d\tset SO_DEBUG options to socket\n" \ "\t-n\tPrint hop addresses numerically rather than symbolically\n" \ "\t-r\tBypass the normal routing tables and send directly to a host\n" \ "\t-v\tVerbose output\n" \ "\t-m max_ttl\tSet the max time-to-live (max number of hops)\n" \ "\t-p port#\tSet the base UDP port number used in probes\n" \ "\t\t(default is 33434)\n" \ "\t-q nqueries\tSet the number of probes per ``ttl'' to nqueries\n" \ "\t\t(default is 3)\n" \ "\t-s src_addr\tUse the following IP address as the source address\n" \ "\t-t tos\tSet the type-of-service in probe packets to the following value\n" \ "\t\t(default 0)\n" \ "\t-w wait\tSet the time (in seconds) to wait for a response to a probe\n" \ "\t\t(default 3 sec.)."#define true_trivial_usage \ ""#define true_full_usage \ "Return an exit code of TRUE (0)."#define true_example_usage \ "$ true\n" \ "$ echo $?\n" \ "0\n"#define tty_trivial_usage \ ""#define tty_full_usage \ "Print the file name of the terminal connected to standard input.\n\n"\ "Options:\n" \ "\t-s\tprint nothing, only return an exit status"#define tty_example_usage \ "$ tty\n" \ "/dev/tty2\n"#ifdef BB_FEATURE_MOUNT_FORCE #define USAGE_MOUNT_FORCE(a) a#else #define USAGE_MOUNT_FORCE(a)#endif#define umount_trivial_usage \ "[flags] FILESYSTEM|DIRECTORY"#define umount_full_usage \ "Unmount file systems\n" \ "\nFlags:\n" "\t-a\tUnmount all file systems" \ USAGE_MTAB(" in /etc/mtab\n\t-n\tDon't erase /etc/mtab entries") \ "\n\t-r\tTry to remount devices as read-only if mount is busy" \ USAGE_MOUNT_FORCE("\n\t-f\tForce umount (i.e., unreachable NFS server)") \ USAGE_MOUNT_LOOP("\n\t-l\tDo not free loop device (if a loop device has been used)")#define umount_example_usage \ "$ umount /dev/hdc1 \n"#define uname_trivial_usage \ "[OPTION]..."#define uname_full_usage \ "Print certain system information. With no OPTION, same as -s.\n\n" \ "Options:\n" \ "\t-a\tprint all information\n" \ "\t-m\tthe machine (hardware) type\n" \ "\t-n\tprint the machine's network node hostname\n" \ "\t-r\tprint the operating system release\n" \ "\t-s\tprint the operating system name\n" \ "\t-p\tprint the host processor type\n" \ "\t-v\tprint the operating system version"#define uname_example_usage \ "$ uname -a\n" \ "Linux debian 2.2.15pre13 #5 Tue Mar 14 16:03:50 MST 2000 i686 unknown\n" #define uniq_trivial_usage \ "[OPTION]... [INPUT [OUTPUT]]"#define uniq_full_usage \ "Discard all but one of successive identical lines from INPUT\n" \ "(or standard input), writing to OUTPUT (or standard output).\n\n" \ "Options:\n" \ "\t-c\tprefix lines by the number of occurrences\n" \ "\t-d\tonly print duplicate lines\n" \ "\t-u\tonly print unique lines"#define uniq_example_usage \ "$ echo -e \"a\\na\\nb\\nc\\nc\\na\" | sort | uniq\n" \ "a\n" \ "b\n" \ "c\n"#define unix2dos_trivial_usage \ "[option] [FILE]"#define unix2dos_full_usage \ "Converts FILE from unix format to dos format. When no option\n" \ "is given, the input is converted to the opposite output format.\n" \ "When no file is given, uses stdin for input and stdout for output.\n" \ "Options:\n" \ "\t-u\toutput will be in UNIX format\n" \ "\t-d\toutput will be in DOS format"#define update_trivial_usage \ "[options]"#define update_full_usage \ "Periodically flushes filesystem buffers.\n\n" \ "Options:\n" \ "\t-S\tforce use of sync(2) instead of flushing\n" \ "\t-s SECS\tcall sync this often (default 30)\n" \ "\t-f SECS\tflush some buffers this often (default 5)"#define uptime_trivial_usage \ ""#define uptime_full_usage \ "Display the time since the last boot."#define uptime_example_usage \ "$ uptime\n" \ " 1:55pm up 2:30, load average: 0.09, 0.04, 0.00\n" #define usleep_trivial_usage \ "N" #define usleep_full_usage \ "Pause for N microseconds."#define usleep_example_usage \ "$ usleep 1000000\n" \ "[pauses for 1 second]\n"#define uudecode_trivial_usage \ "[FILE]..."#define uudecode_full_usage \ "Uudecode a file that is uuencoded.\n\n" \ "Options:\n" \ "\t-o FILE\tdirect output to FILE" #define uudecode_example_usage \ "$ uudecode -o busybox busybox.uu\n" \ "$ ls -l busybox\n" \ "-rwxr-xr-x 1 ams ams 245264 Jun 7 21:35 busybox\n" #define uuencode_trivial_usage \ "[OPTION] [INFILE] REMOTEFILE"#define uuencode_full_usage \ "Uuencode a file.\n\n" \ "Options:\n" \ "\t-m\tuse base64 encoding per RFC1521"#define uuencode_example_usage \ "$ uuencode busybox busybox\n" \ "begin 755 busybox\n" \ "<encoded file snipped>\n" \ "$ uudecode busybox busybox > busybox.uu\n" \ "$\n"#define vi_trivial_usage \ "[OPTION] [FILE]..."#define vi_full_usage \ "edit FILE.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -