📄 usage.h
字号:
"\t[up|down] ..."#define init_trivial_usage \ ""#define init_full_usage \ "Init is the parent of all processes."#define init_notes_usage \"This version of init is designed to be run only by the kernel.\n" \"\n" \"BusyBox init doesn't support multiple runlevels. The runlevels field of\n" \"the /etc/inittab file is completely ignored by BusyBox init. If you want \n" \"runlevels, use sysvinit.\n" \"\n" \"BusyBox init works just fine without an inittab. If no inittab is found, \n" \"it has the following default behavior:\n" \"\n" \" ::sysinit:/etc/init.d/rcS\n" \" ::askfirst:/bin/sh\n" \" ::ctrlaltdel:/sbin/reboot\n" \" ::shutdown:/sbin/swapoff -a\n" \" ::shutdown:/bin/umount -a -r\n" \" ::restart:/sbin/init\n" \"\n" \"if it detects that /dev/console is _not_ a serial console, it will also run:\n" \"\n" \" tty2::askfirst:/bin/sh\n" \" tty3::askfirst:/bin/sh\n" \" tty4::askfirst:/bin/sh\n" \"\n" \"If you choose to use an /etc/inittab file, the inittab entry format is as follows:\n" \"\n" \" <id>:<runlevels>:<action>:<process>\n" \"\n" \" <id>: \n" \"\n" \" WARNING: This field has a non-traditional meaning for BusyBox init!\n" \" The id field is used by BusyBox init to specify the controlling tty for\n" \" the specified process to run on. The contents of this field are\n" \" appended to "/dev/" and used as-is. There is no need for this field to\n" \" be unique, although if it isn't you may have strange results. If this\n" \" field is left blank, the controlling tty is set to the console. Also\n" \" note that if BusyBox detects that a serial console is in use, then only\n" \" entries whose controlling tty is either the serial console or /dev/null\n" \" will be run. BusyBox init does nothing with utmp. We don't need no\n" \" stinkin' utmp.\n" \"\n" \" <runlevels>: \n" \"\n" \" The runlevels field is completely ignored.\n" \"\n" \" <action>: \n" \"\n" \" Valid actions include: sysinit, respawn, askfirst, wait, \n" \" once, restart, ctrlaltdel, and shutdown.\n" \"\n" \" The available actions can be classified into two groups: actions\n" \" that are run only once, and actions that are re-run when the specified\n" \" process exits.\n" \"\n" \" Run only-once actions:\n" \"\n" \" 'sysinit' is the first item run on boot. init waits until all\n" \" sysinit actions are completed before continuing. Following the\n" \" completion of all sysinit actions, all 'wait' actions are run.\n" \" 'wait' actions, like 'sysinit' actions, cause init to wait until\n" \" the specified task completes. 'once' actions are asynchronous,\n" \" therefore, init does not wait for them to complete. 'restart' is\n" \" the action taken to restart the init process. By default this should\n" \" simply run /sbin/init, but can be a script which runs pivot_root or it\n" \" can do all sorts of other interesting things. The 'ctrlaltdel' init\n" \" actions are run when the system detects that someone on the system\n" \" console has pressed the CTRL-ALT-DEL key combination. Typically one\n" \" wants to run 'reboot' at this point to cause the system to reboot.\n" \" Finally the 'shutdown' action specifies the actions to taken when\n" \" init is told to reboot. Unmounting filesystems and disabling swap\n" \" is a very good here\n" \"\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 reverse order from how 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 login_trivial_usage \ "[OPTION]... [username] [ENV=VAR ...]"#define login_full_usage \ "Begin a new session on the system\n\n" \ "Options:\n" \ "\t-f\tDo not authenticate (user already authenticated)\n" \ "\t-h\tName of the remote host for this login.\n" \ "\t-p\tPreserve environment."#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\n" \ "or: losetup [OPTION]... -d LOOPDEVICE"#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 CONFIG_FEATURE_LS_TIMESTAMPS #define USAGE_LS_TIMESTAMPS(a) a#else #define USAGE_LS_TIMESTAMPS(a)#endif#ifdef CONFIG_FEATURE_LS_FILETYPES #define USAGE_LS_FILETYPES(a) a#else #define USAGE_LS_FILETYPES(a)#endif#ifdef CONFIG_FEATURE_LS_FOLLOWLINKS #define USAGE_LS_FOLLOWLINKS(a) a#else #define USAGE_LS_FOLLOWLINKS(a)#endif#ifdef CONFIG_FEATURE_LS_RECURSIVE #define USAGE_LS_RECURSIVE(a) a#else #define USAGE_LS_RECURSIVE(a)#endif#ifdef CONFIG_FEATURE_LS_SORTFILES #define USAGE_LS_SORTFILES(a) a#else #define USAGE_LS_SORTFILES(a)#endif#ifdef CONFIG_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..."
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -