📄 usage.h
字号:
"\n" \" Run repeatedly actions:\n" \"\n" \" 'respawn' actions are run after the 'once' actions. When a process\n" \" started with a 'respawn' action exits, init automatically restarts\n" \" it. Unlike sysvinit, BusyBox init does not stop processes from\n" \" respawning out of control. The 'askfirst' actions acts just like\n" \" respawn, except that before running the specified process it\n" \" displays the line "Please press Enter to activate this console."\n" \" and then waits for the user to press enter before starting the\n" \" specified process. \n" \"\n" \" Unrecognized actions (like initdefault) will cause init to emit an\n" \" error message, and then go along with its business. All actions are\n" \" run in the order they appear in /etc/inittab.\n" \"\n" \" <process>: \n" \"\n" \" Specifies the process to be executed and it's command line.\n" \"\n" \"Example /etc/inittab file:\n" \"\n" \" # This is run first except when booting in single-user mode.\n" \" #\n" \" ::sysinit:/etc/init.d/rcS\n" \" \n" \" # /bin/sh invocations on selected ttys\n" \" #\n" \" # Start an "askfirst" shell on the console (whatever that may be)\n" \" ::askfirst:-/bin/sh\n" \" # Start an "askfirst" shell on /dev/tty2-4\n" \" tty2::askfirst:-/bin/sh\n" \" tty3::askfirst:-/bin/sh\n" \" tty4::askfirst:-/bin/sh\n" \" \n" \" # /sbin/getty invocations for selected ttys\n" \" #\n" \" tty4::respawn:/sbin/getty 38400 tty5\n" \" tty5::respawn:/sbin/getty 38400 tty6\n" \" \n" \" \n" \" # Example of how to put a getty on a serial line (for a terminal)\n" \" #\n" \" #::respawn:/sbin/getty -L ttyS0 9600 vt100\n" \" #::respawn:/sbin/getty -L ttyS1 9600 vt100\n" \" #\n" \" # Example how to put a getty on a modem line.\n" \" #::respawn:/sbin/getty 57600 ttyS2\n" \" \n" \" # Stuff to do when restarting the init process\n" \" ::restart:/sbin/init\n" \" \n" \" # Stuff to do before rebooting\n" \" ::ctrlaltdel:/sbin/reboot\n" \" ::shutdown:/bin/umount -a -r\n" \" ::shutdown:/sbin/swapoff -a\n"#define insmod_trivial_usage \ "[OPTION]... MODULE [symbol=value]..."#define insmod_full_usage \ "Loads the specified kernel modules into the kernel.\n\n" \ "Options:\n" \ "\t-f\tForce module to load into the wrong kernel version.\n" \ "\t-k\tMake module autoclean-able.\n" \ "\t-v\tverbose output\n" \ "\t-L\tLock to prevent simultaneous loads of a module\n" \ "\t-x\tdo not export externs"#define kill_trivial_usage \ "[-signal] process-id [process-id ...]"#define kill_full_usage \ "Send a signal (default is SIGTERM) to the specified process(es).\n\n"\ "Options:\n" \ "\t-l\tList all signal names and numbers."#define kill_example_usage \ "$ ps | grep apache\n" \ "252 root root S [apache]\n" \ "263 www-data www-data S [apache]\n" \ "264 www-data www-data S [apache]\n" \ "265 www-data www-data S [apache]\n" \ "266 www-data www-data S [apache]\n" \ "267 www-data www-data S [apache]\n" \ "$ kill 252\n"#define killall_trivial_usage \ "[-signal] process-name [process-name ...]"#define killall_full_usage \ "Send a signal (default is SIGTERM) to the specified process(es).\n\n"\ "Options:\n" \ "\t-l\tList all signal names and numbers."#define killall_example_usage \ "$ killall apache\n" #define klogd_trivial_usage \ "-n"#define klogd_full_usage \ "Kernel logger.\n"\ "Options:\n"\ "\t-n\tRun as a foreground process."#define length_trivial_usage \ "STRING"#define length_full_usage \ "Prints out the length of the specified STRING."#define length_example_usage \ "$ length Hello\n" \ "5\n"#define ln_trivial_usage \ "[OPTION] TARGET... LINK_NAME|DIRECTORY"#define ln_full_usage \ "Create a link named LINK_NAME or DIRECTORY to the specified TARGET\n"\ "\nYou may use '--' to indicate that all following arguments are non-options.\n\n" \ "Options:\n" \ "\t-s\tmake symbolic links instead of hard links\n" \ "\t-f\tremove existing destination files\n" \ "\t-n\tno dereference symlinks - treat like normal file"#define ln_example_usage \ "$ ln -s BusyBox /tmp/ls\n" \ "$ ls -l /tmp/ls\n" \ "lrwxrwxrwx 1 root root 7 Apr 12 18:39 ls -> BusyBox*\n" #define loadacm_trivial_usage \ "< mapfile"#define loadacm_full_usage \ "Loads an acm from standard input."#define loadacm_example_usage \ "$ loadacm < /etc/i18n/acmname\n" #define loadfont_trivial_usage \ "< font"#define loadfont_full_usage \ "Loads a console font from standard input."#define loadfont_example_usage \ "$ loadfont < /etc/i18n/fontname\n" #define loadkmap_trivial_usage \ "< keymap"#define loadkmap_full_usage \ "Loads a binary keyboard translation table from standard input."#define loadkmap_example_usage \ "$ loadkmap < /etc/i18n/lang-keymap\n" #define logger_trivial_usage \ "[OPTION]... [MESSAGE]"#define logger_full_usage \ "Write MESSAGE to the system log. If MESSAGE is omitted, log stdin.\n\n" \ "Options:\n" \ "\t-s\tLog to stderr as well as the system log.\n" \ "\t-t\tLog using the specified tag (defaults to user name).\n" \ "\t-p\tEnter the message with the specified priority.\n" \ "\t\tThis may be numerical or a ``facility.level'' pair."#define logger_example_usage \ "$ logger "hello"\n" #define logname_trivial_usage \ ""#define logname_full_usage \ "Print the name of the current user."#define logname_example_usage \ "$ logname\n" \ "root\n" #define logread_trivial_usage \ ""#define logread_full_usage \ "Shows the messages from syslogd (using circular buffer)."#define losetup_trivial_usage \ "[OPTION]... LOOPDEVICE [FILE]"#define losetup_full_usage \ "Associate LOOPDEVICE with FILE.\n\n" \ "Options:\n" \ "\t-d\t\tDisassociate LOOPDEVICE.\n" \ "\t-o OFFSET\tStart OFFSET bytes into FILE.\n"#ifdef BB_FEATURE_LS_TIMESTAMPS #define USAGE_LS_TIMESTAMPS(a) a#else #define USAGE_LS_TIMESTAMPS(a)#endif#ifdef BB_FEATURE_LS_FILETYPES #define USAGE_LS_FILETYPES(a) a#else #define USAGE_LS_FILETYPES(a)#endif#ifdef BB_FEATURE_LS_FOLLOWLINKS #define USAGE_LS_FOLLOWLINKS(a) a#else #define USAGE_LS_FOLLOWLINKS(a)#endif#ifdef BB_FEATURE_LS_RECURSIVE #define USAGE_LS_RECURSIVE(a) a#else #define USAGE_LS_RECURSIVE(a)#endif#ifdef BB_FEATURE_LS_SORTFILES #define USAGE_LS_SORTFILES(a) a#else #define USAGE_LS_SORTFILES(a)#endif#ifdef BB_FEATURE_AUTOWIDTH #define USAGE_AUTOWIDTH(a) a#else #define USAGE_AUTOWIDTH(a)#endif#define ls_trivial_usage \ "[-1Aa" USAGE_LS_TIMESTAMPS("c") "Cd" USAGE_LS_TIMESTAMPS("e") USAGE_LS_FILETYPES("F") "iln" USAGE_LS_FILETYPES("p") USAGE_LS_FOLLOWLINKS("L") USAGE_LS_RECURSIVE("R") USAGE_LS_SORTFILES("rS") "s" USAGE_AUTOWIDTH("T") USAGE_LS_TIMESTAMPS("tu") USAGE_LS_SORTFILES("v") USAGE_AUTOWIDTH("w") "x" USAGE_LS_SORTFILES("X") USAGE_HUMAN_READABLE("h") USAGE_NOT_HUMAN_READABLE("") "k] [filenames...]"#define ls_full_usage \ "List directory contents\n\n" \ "Options:\n" \ "\t-1\tlist files in a single column\n" \ "\t-A\tdo not list implied . and ..\n" \ "\t-a\tdo not hide entries starting with .\n" \ "\t-C\tlist entries by columns\n" \ USAGE_LS_TIMESTAMPS("\t-c\twith -l: show ctime\n") \ "\t-d\tlist directory entries instead of contents\n" \ USAGE_LS_TIMESTAMPS("\t-e\tlist both full date and full time\n") \ USAGE_LS_FILETYPES("\t-F\tappend indicator (one of */=@|) to entries\n") \ "\t-i\tlist the i-node for each file\n" \ "\t-l\tuse a long listing format\n" \ "\t-n\tlist numeric UIDs and GIDs instead of names\n" \ USAGE_LS_FILETYPES("\t-p\tappend indicator (one of /=@|) to entries\n") \ USAGE_LS_FOLLOWLINKS("\t-L\tlist entries pointed to by symbolic links\n") \ USAGE_LS_RECURSIVE("\t-R\tlist subdirectories recursively\n") \ USAGE_LS_SORTFILES("\t-r\tsort the listing in reverse order\n") \ USAGE_LS_SORTFILES("\t-S\tsort the listing by file size\n") \ "\t-s\tlist the size of each file, in blocks\n" \ USAGE_AUTOWIDTH("\t-T NUM\tassume Tabstop every NUM columns\n") \ USAGE_LS_TIMESTAMPS("\t-t\twith -l: show modification time\n") \ USAGE_LS_TIMESTAMPS("\t-u\twith -l: show access time\n") \ USAGE_LS_SORTFILES("\t-v\tsort the listing by version\n") \ USAGE_AUTOWIDTH("\t-w NUM\tassume the terminal is NUM columns wide\n") \ "\t-x\tlist entries by lines instead of by columns\n" \ USAGE_LS_SORTFILES("\t-X\tsort the listing by extension\n") \ USAGE_HUMAN_READABLE( \ "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" \ "\t-k\tprint sizes in kilobytes(default)") USAGE_NOT_HUMAN_READABLE( \ "\t-k\tprint sizes in kilobytes(compatibility)") #define lsmod_trivial_usage \ ""#define lsmod_full_usage \ "List the currently loaded kernel modules."#define makedevs_trivial_usage \ "NAME TYPE MAJOR MINOR FIRST LAST [s]"#define makedevs_full_usage \ "Creates a range of block or character special files\n\n" \ "TYPEs include:\n" \ "\tb:\tMake a block (buffered) device.\n" \ "\tc or u:\tMake a character (un-buffered) device.\n" \ "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes.\n\n" \ "FIRST specifies the number appended to NAME to create the first device.\n" \ "LAST specifies the number of the last item that should be created.\n" \ "If 's' is the last argument, the base device is created as well.\n\n" \ "For example:\n" \ "\tmakedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63\n" \ "\tmakedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8"#define makedevs_example_usage \ "$ makedevs /dev/ttyS c 4 66 2 63\n" \ "[creates ttyS2-ttyS63]\n" \ "$ makedevs /dev/hda b 3 0 0 8 s\n" \ "[creates hda,hda1-hda8]\n" #define md5sum_trivial_usage \ "[OPTION] [FILE]...\n" \ "or: md5sum [OPTION] -c [FILE]"#define md5sum_full_usage \ "Print or check MD5 checksums.\n\n" \ "Options:\n" \ "With no FILE, or when FILE is -, read standard input.\n\n" \ "\t-b\tread files in binary mode\n" \ "\t-c\tcheck MD5 sums against given list\n" \ "\t-t\tread files in text mode (default)\n" \ "\t-g\tread a string\n" \ "\nThe following two options are useful only when verifying checksums:\n" \ "\t-s\tdon't output anything, status code shows success\n" \ "\t-w\twarn about improperly formated MD5 checksum lines"#define md5sum_example_usage \ "$ md5sum < busybox\n" \ "6fd11e98b98a58f64ff3398d7b324003\n" \ "$ md5sum busybox\n" \ "6fd11e98b98a58f64ff3398d7b324003 busybox\n" \ "$ md5sum -c -\n" \ "6fd11e98b98a58f64ff3398d7b324003 busybox\n" \ "busybox: OK\n" \ "^D\n"#define mkdir_trivial_usage \ "[OPTION] DIRECTORY..."#define mkdir_full_usage \ "Create the DIRECTORY(ies) if they do not already exist\n\n" \ "Options:\n" \ "\t-m\tset permission mode (as in chmod), not rwxrwxrwx - umask\n" \ "\t-p\tno error if existing, make parent directories as needed"#define mkdir_example_usage \ "$ mkdir /tmp/foo\n" \ "$ mkdir /tmp/foo\n" \ "/tmp/foo: File exists\n" \ "$ mkdir /tmp/foo/bar/baz\n" \ "/tmp/foo/bar/baz: No such file or directory\n" \ "$ mkdir -p /tmp/foo/bar/baz\n" #define mkfifo_trivial_usage \ "[OPTIONS] name"#define mkfifo_full_usage \ "Creates a named pipe (identical to 'mknod name p')\n\n" \ "Options:\n" \ "\t-m\tcreate the pipe using the specified mode (default a=rw)"#define mkfs_minix_trivial_usage \ "[-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]"#define mkfs_minix_full_usage \ "Make a MINIX filesystem.\n\n" \ "Options:\n" \ "\t-c\t\tCheck the device for bad blocks\n" \ "\t-n [14|30]\tSpecify the maximum length of filenames\n" \ "\t-i INODES\tSpecify the number of inodes for the filesystem\n" \ "\t-l FILENAME\tRead the bad blocks list from FILENAME\n" \ "\t-v\t\tMake a Minix version 2 filesystem"#define mknod_trivial_usage \ "[OPTIONS] NAME TYPE MAJOR MINOR"#define mknod_full_usage \ "Create a special file (block, character, or pipe).\n\n" \ "Options:\n" \ "\t-m\tcreate the special file using the specified mode (default a=rw)\n\n" \ "TYPEs include:\n" \ "\tb:\tMake a block (buffered) device.\n" \ "\tc or u:\tMake a character (un-buffered) device.\n" \ "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes."#define mknod_example_usage \ "$ mknod /dev/fd0 b 2 0 \n" \ "$ mknod -m 644 /tmp/pipe p\n" #define mkswap_trivial_usage \ "[-c] [-v0|-v1] device [block-count]"#define mkswap_full_usage \ "Prepare a disk partition to be used as a swap partition.\n\n" \ "Options:\n" \ "\t-c\t\tCheck for read-ability.\n" \ "\t-v0\t\tMake version 0 swap [max 128 Megs].\n" \ "\t-v1\t\tMake version 1 swap [big!] (default for kernels >\n\t\t\t2.1.117).\n" \ "\tblock-count\tNumber of block to use (default is entire partition)."#define mktemp_trivial_usage \ "[-q] TEMPLATE"#define mktemp_full_usage \ "Creates a temporary file with its name based on TEMPLATE.\n" \ "TEMPLATE is any name with six `Xs' (i.e., /tmp/temp.XXXXXX)."#define mktemp_example_usage \ "$ mktemp /tmp/temp.XXXXXX\n" \ "/tmp/temp.mWiLjM\n" \ "$ ls -la /tmp/temp.mWiLjM\n" \ "-rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM\n" #define modprobe_trivial_usage \ "modprobe [ -adnqv ] [ -C config ] module [ symbol=value ... ]\n" \ "modprobe [ -adnqv ] [ -C config ] [ -t type ] pattern\n" \ "modprobe -l [ -C config ] [ -t type ] pattern\n" \ "modprobe -c [ -C config ]\n" \ "modprobe -r [ -dnv ] [ -C config ] [ module ...]\n" \ "modprobe -V\n"#define modprobe_full_usage \ "Used to load kernel modules and automatically load their dependancies." \ "USAGE:\n" \ "\tmodprobe [ -adnqv ] [ -C config ] module [ symbol=value ... ]\n" \ "\tmodprobe [ -adnqv ] [ -C config ] [ -t type ] pattern\n" \ "\tmodprobe -l [ -C config ] [ -t type ] pattern\n" \ "\tmodprobe -c [ -C config ]\n" \ "\tmodprobe -r [ -dnv ] [ -C config ] [ module ...]\n" \ "\tmodprobe -V\n" \ "\n" \ "OPTIONS\n" \
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -