📄 busybox.html
字号:
<P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_klogd"><STRONG>klogd</STRONG></A></STRONG><BR><DD>klogd <STRONG>-n</STRONG><P>Kernel logger.Options:</P><PRE> -n Run as a foreground process.</PRE><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_lash"><STRONG>lash</STRONG></A></STRONG><BR><DD>lash [FILE]...or: sh <STRONG>-c</STRONG> command [args]...<P>lash: The BusyBox LAme SHell (command interpreter)</P><P>This command does not yet have proper documentation.</P><P>Use lash just as you would use any other shell. It properly handles pipes,redirects, job control, can be used as the shell for scripts, and has asufficient set of builtins to do what is needed. It does not (yet) supportBourne Shell syntax. If you need things like ``if-then-else'', ``while'', and suchuse ash or bash. If you just need a very simple and extremely small shell,this will do the job.</P><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_length"><STRONG>length</STRONG></A></STRONG><BR><DD>length STRING<P>Prints out the length of the specified STRING.</P><P>Example:</P><PRE> $ length Hello 5</PRE><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_ln"><STRONG>ln</STRONG></A></STRONG><BR><DD>ln [OPTION] TARGET... LINK_NAME|DIRECTORY<P>Create a link named LINK_NAME or DIRECTORY to the specified TARGET</P><P>You may use '--' to indicate that all following arguments are non-options.</P><P>Options:</P><PRE> -s make symbolic links instead of hard links -f remove existing destination files -n no dereference symlinks - treat like normal file</PRE><P>Example:</P><PRE> $ ln -s BusyBox /tmp/ls $ ls -l /tmp/ls lrwxrwxrwx 1 root root 7 Apr 12 18:39 ls -> BusyBox*</PRE><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_loadacm"><STRONG>loadacm</STRONG></A></STRONG><BR><DD>loadacm < mapfile<P>Loads an acm from standard input.</P><P>Example:</P><PRE> $ loadacm < /etc/i18n/acmname</PRE><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_loadfont"><STRONG>loadfont</STRONG></A></STRONG><BR><DD>loadfont < font<P>Loads a console font from standard input.</P><P>Example:</P><PRE> $ loadfont < /etc/i18n/fontname</PRE><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_loadkmap"><STRONG>loadkmap</STRONG></A></STRONG><BR><DD>loadkmap < keymap<P>Loads a binary keyboard translation table from standard input.</P><P>Example:</P><PRE> $ loadkmap < /etc/i18n/lang-keymap</PRE><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_logger"><STRONG>logger</STRONG></A></STRONG><BR><DD>logger [OPTION]... [MESSAGE]<P>Write MESSAGE to the system log. If MESSAGE is omitted, log stdin.</P><P>Options:</P><PRE> -s Log to stderr as well as the system log. -t Log using the specified tag (defaults to user name). -p Enter the message with the specified priority. This may be numerical or a ``facility.level'' pair.</PRE><P>Example:</P><PRE> $ logger "hello"</PRE><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_logname"><STRONG>logname</STRONG></A></STRONG><BR><DD>logname<P>Print the name of the current user.</P><P>Example:</P><PRE> $ logname root</PRE><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_logread"><STRONG>logread</STRONG></A></STRONG><BR><DD>logread<P>Shows the messages from syslogd (using circular buffer).</P><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_losetup"><STRONG>losetup</STRONG></A></STRONG><BR><DD>losetup [OPTION]... LOOPDEVICE [FILE]<P>Associate LOOPDEVICE with FILE.</P><P>Options:</P><PRE> -d Disassociate LOOPDEVICE. -o OFFSET Start OFFSET bytes into FILE.</PRE><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_ls"><STRONG>ls</STRONG></A></STRONG><BR><DD>ls [<STRONG>-1AacCdeFilnpLRrSsTtuvwxXhk</STRONG>] [filenames...]<P>List directory contents</P><P>Options:</P><PRE> -1 list files in a single column -A do not list implied . and .. -a do not hide entries starting with . -C list entries by columns -c with -l: show ctime -d list directory entries instead of contents -e list both full date and full time -F append indicator (one of */=@|) to entries -i list the i-node for each file -l use a long listing format -n list numeric UIDs and GIDs instead of names -p append indicator (one of /=@|) to entries -L list entries pointed to by symbolic links -R list subdirectories recursively -r sort the listing in reverse order -S sort the listing by file size -s list the size of each file, in blocks -T NUM assume Tabstop every NUM columns -t with -l: show modification time -u with -l: show access time -v sort the listing by version -w NUM assume the terminal is NUM columns wide -x list entries by lines instead of by columns -X sort the listing by extension -h print sizes in human readable format (e.g., 1K 243M 2G ) -k print sizes in kilobytes(default)</PRE><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_lsmod"><STRONG>lsmod</STRONG></A></STRONG><BR><DD>lsmod<P>List the currently loaded kernel modules.</P><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_makedevs"><STRONG>makedevs</STRONG></A></STRONG><BR><DD>makedevs NAME TYPE MAJOR MINOR FIRST LAST [s]<P>Creates a range of block or character special files</P><P>TYPEs include:</P><PRE> b: Make a block (buffered) device. c or u: Make a character (un-buffered) device. p: Make a named pipe. MAJOR and MINOR are ignored for named pipes.</PRE><P>FIRST specifies the number appended to NAME to create the first device.LAST specifies the number of the last item that should be created.If 's' is the last argument, the base device is created as well.</P><P>For example:</P><PRE> makedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63 makedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8</PRE><P>Example:</P><PRE> $ makedevs /dev/ttyS c 4 66 2 63 [creates ttyS2-ttyS63] $ makedevs /dev/hda b 3 0 0 8 s [creates hda,hda1-hda8]</PRE><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_md5sum"><STRONG>md5sum</STRONG></A></STRONG><BR><DD>md5sum [OPTION] [FILE]...or: md5sum [OPTION] <STRONG>-c</STRONG> [FILE]<P>Print or check MD5 checksums.</P><P>Options:With no FILE, or when FILE is -, read standard input.</P><PRE> -b read files in binary mode -c check MD5 sums against given list -t read files in text mode (default) -g read a string</PRE><P>The following two options are useful only when verifying checksums:</P><PRE> -s don't output anything, status code shows success -w warn about improperly formated MD5 checksum lines</PRE><P>Example:</P><PRE> $ md5sum < busybox 6fd11e98b98a58f64ff3398d7b324003 $ md5sum busybox 6fd11e98b98a58f64ff3398d7b324003 busybox $ md5sum -c - 6fd11e98b98a58f64ff3398d7b324003 busybox busybox: OK ^D</PRE><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_mkdir"><STRONG>mkdir</STRONG></A></STRONG><BR><DD>mkdir [OPTION] DIRECTORY...<P>Create the <CODE>DIRECTORY(ies)</CODE> if they do not already exist</P><P>Options:</P><PRE> -m set permission mode (as in chmod), not rwxrwxrwx - umask -p no error if existing, make parent directories as needed</PRE><P>Example:</P><PRE> $ mkdir /tmp/foo $ mkdir /tmp/foo /tmp/foo: File exists $ mkdir /tmp/foo/bar/baz /tmp/foo/bar/baz: No such file or directory $ mkdir -p /tmp/foo/bar/baz</PRE><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_mkfifo"><STRONG>mkfifo</STRONG></A></STRONG><BR><DD>mkfifo [OPTIONS] name<P>Creates a named pipe (identical to 'mknod name p')</P><P>Options:</P><PRE> -m create the pipe using the specified mode (default a=rw)</PRE><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_mkfs_minix"><STRONG>mkfs_minix</STRONG></A></STRONG><BR><DD>mkfs_minix [<STRONG>-c</STRONG> | <STRONG>-l</STRONG> filename] [<STRONG>-nXX</STRONG>] [<STRONG>-iXX</STRONG>] /dev/name [blocks]<P>Make a MINIX filesystem.</P><P>Options:</P><PRE> -c Check the device for bad blocks -n [14|30] Specify the maximum length of filenames -i INODES Specify the number of inodes for the filesystem -l FILENAME Read the bad blocks list from FILENAME -v Make a Minix version 2 filesystem</PRE><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_mknod"><STRONG>mknod</STRONG></A></STRONG><BR><DD>mknod [OPTIONS] NAME TYPE MAJOR MINOR<P>Create a special file (block, character, or pipe).</P><P>Options:</P><PRE> -m create the special file using the specified mode (default a=rw)</PRE><P>TYPEs include:</P><PRE> b: Make a block (buffered) device. c or u: Make a character (un-buffered) device. p: Make a named pipe. MAJOR and MINOR are ignored for named pipes.</PRE><P>Example:</P><PRE> $ mknod /dev/fd0 b 2 0 $ mknod -m 644 /tmp/pipe p</PRE><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_mkswap"><STRONG>mkswap</STRONG></A></STRONG><BR><DD>mkswap [<STRONG>-c</STRONG>] [<STRONG>-v0</STRONG>|<STRONG>-v1</STRONG>] device [block-count]<P>Prepare a disk partition to be used as a swap partition.</P><P>Options:</P><PRE> -c Check for read-ability. -v0 Make version 0 swap [max 128 Megs]. -v1 Make version 1 swap [big!] (default for kernels > 2.1.117). block-count Number of block to use (default is entire partition).</PRE><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_mktemp"><STRONG>mktemp</STRONG></A></STRONG><BR><DD>mktemp [<STRONG>-q</STRONG>] TEMPLATE<P>Creates a temporary file with its name based on TEMPLATE.TEMPLATE is any name with six `Xs' (i.e., /tmp/temp.XXXXXX).</P><P>Example:</P><PRE> $ mktemp /tmp/temp.XXXXXX /tmp/temp.mWiLjM $ ls -la /tmp/temp.mWiLjM -rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM</PRE><P>-------------------------------</P><P></P><DT><STRONG><A NAME="item_modprobe"><STRONG>modprobe</STRONG></A></STRONG><BR><DD>modprobe modprobe [ <STRONG>-adnqv</STRONG> ] [ <STRONG>-C</STRONG> config ] module [ symbol=value ... ]modprobe [ <STRONG>-adnqv</STRONG> ] [ <STRONG>-C</STRONG> config ] [ <STRONG>-t</STRONG> type ] patternmodprobe <STRONG>-l</STRONG> [ <STRONG>-C</STRONG> config ] [ <STRONG>-t</STRONG> type ] patternmodprobe <STRONG>-c</STRONG> [ <STRONG>-C</STRONG> config ]modprobe <STRONG>-r</STRONG> [ <STRONG>-dnv</STRONG> ] [ <STRONG>-C</STRONG> config ] [ module ...]modprobe <STRONG>-V</STRONG><P>Used to load kernel modules and automatically load their dependancies.USAGE:</P><PRE> modprobe [ -adnqv ] [ -C config ] module [ symbol=value ... ] modprobe [ -adnqv ] [ -C config ] [ -t type ] pattern modprobe -l [ -C config ] [ -t type ] pattern modprobe -c [ -C config ] modprobe -r [ -dnv ] [ -C config ] [ module ...] modprobe -V</PRE><P>OPTIONS</P><PRE> -a (*** not supported ***) Load all matching modules instead of stopping after the first successful loading.</PRE><PRE> -c (*** not supported ***) Show the currently used configuration.</PRE><PRE> -d Show information about the internal representation of the stack of modules.</PRE><PRE> -k Set 'autoclean' on loaded modules. Used by the kernel when it calls on modprobe to satify a miss
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -