⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 busybox.sgml

📁 手机嵌入式Linux下可用的busybox源码
💻 SGML
📖 第 1 页 / 共 5 页
字号:
		<para>		<screen>			$ mknod /dev/fd0 b 2 0 			$ mknod -m 644 /tmp/pipe p		</screen>		</para>	</sect1>	<sect1 id="mkswap">	    <title>mkswap</title>		<para>		Usage: mkswap [OPTION]... DEVICE [BLOCKS]		</para>		<para>		Prepare a disk partition to be used as a swap partition.		</para>		<para>		Options:		</para>		<para>		<screen>			-c	Check for read-ability.			-v0	Make version 0 swap [max 128 Megs].			-v1	Make version 1 swap [big!] (default for kernels &gt; 2.1.117).			BLOCKS	Number of block to use (default is entire partition).		</screen>		</para>	</sect1>	<sect1 id="mktemp">	    <title>mktemp</title>		<para>		Usage: mktemp TEMPLATE		</para>		<para>		Creates a temporary file with its name based on		TEMPLATE.  TEMPLATE is any name with six `Xs' (i.e.,		/tmp/temp.XXXXXX).		</para>		<para>		Example:		</para>		<para>		<screen>			$ mktemp /tmp/temp.XXXXXX			/tmp/temp.mWiLjM			$ ls -la /tmp/temp.mWiLjM			-rw-------    1 andersen andersen        0 Apr 25 17:10 /tmp/temp.mWiLjM		</screen>		</para>	</sect1>	<sect1 id="more">	    <title>more</title>		<para>		Usage: more [FILE]...		</para>		<para>		Page through text one screenful at a time.		</para>		<para>		Example:		</para>		<para>		<screen>			$ dmesg | more		</screen>		</para>	</sect1>	<sect1 id="mount">	    <title>mount</title>		<para>		Usage: mount [OPTION]...		</para>		<para>		<screen>		   or: mount [OPTION]... DEVICE DIRECTORY		</screen>		</para>		<para>		Mount filesystems.		</para>		<para>		Options:		</para>		<para>		<screen>			-a	Mount all filesystems in /etc/fstab			-o	One of the many filesystem options listed below			-r	Mount the filesystem read-only			-t TYPE	Specify the filesystem type			-w	Mount the filesystem read-write		</screen>		</para>		<para>		Options for use with the -o flag:		</para>		<para>		<screen>			async/sync	Writes are asynchronous / synchronous			atime/noatime	Enable / disable updates to inode access times			dev/nodev	Allow / disallow use of special device files			exec/noexec	Allow / disallow use of executable files			loop		Mount a file via loop device			suid/nosuid	Allow / disallow set-user-id-root programs			remount		Remount a currently mounted filesystem			ro/rw		Mount filesystem read-only / read-write		</screen>		</para>		<para>		There are even more flags that are filesystem specific.		You'll have to see the written documentation for those.		</para>		<para>		Example:		</para>		<para>		<screen>			$ mount			/dev/hda3 on / type minix (rw)			proc on /proc type proc (rw)			devpts on /dev/pts type devpts (rw)			$ mount /dev/fd0 /mnt -t msdos -o ro			$ mount /tmp/diskimage /opt -t ext2 -o loop		</screen>		</para>	</sect1>	<sect1 id="mt">	    <title>mt</title>		<para>		Usage: mt [OPTION] OPCODE VALUE		</para>		<para>		Control magnetic tape drive operation.		</para>		<para>		Options:		</para>		<para>		<screen>			-f DEVICE	Control DEVICE		</screen>		</para>	</sect1>	<sect1 id="mv">	    <title>mv</title>		<para>		Usage: mv SOURCE DEST		</para>		<para>		<screen>		   or: mv SOURCE... DIRECTORY		</screen>		</para>		<para>		Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.		</para>		<para>		Example:		</para>		<para>		<screen>			$ mv /tmp/foo /bin/bar		</screen>		</para>	</sect1>	<sect1 id="nc">	    <title>nc</title>		<para>		Usage: nc HOST PORT		</para>		<para>		   or: nc -p PORT -l		</para>		<para>		Open a pipe to HOST:PORT or listen for a connection on PORT.		</para>		<para>		Example:		</para>		<para>		<screen>			$ nc foobar.somedomain.com 25			220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600			help			214-Commands supported:			214-    HELO EHLO MAIL RCPT DATA AUTH			214     NOOP QUIT RSET HELP			quit			221 foobar closing connection		</screen>		</para>	</sect1>	<sect1 id="nslookup">	    <title>nslookup</title>		<para>		Usage: nslookup [HOST]		</para>		<para>		Query the nameserver for the IP address of the given		HOST.		</para>		<para>		Example:		</para>		<para>		<screen>			$ nslookup localhost			Server:     default			Address:    default			Name:       debian			Address:    127.0.0.1		</screen>		</para>	</sect1>	<sect1 id="ping">	    <title>ping</title>		<para>		Usage: ping [OPTION]... HOST		</para>		<para>		Send ICMP ECHO_REQUEST packets to HOST.		</para>		<para>		Options:		</para>		<para>		<screen>			-c COUNT	Send only COUNT pings			-s SIZE		Send SIZE data bytes in packets (default=56)			-q		Quiet mode, only displays output at start and when finished		</screen>		</para>		<para>		Example:		</para>		<para>		<screen>			$ ping localhost			PING slag (127.0.0.1): 56 data bytes			64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=20.1 ms			--- debian ping statistics ---			1 packets transmitted, 1 packets received, 0% packet loss			round-trip min/avg/max = 20.1/20.1/20.1 ms		</screen>		</para>	</sect1>	<sect1 id="poweroff">	    <title>poweroff</title>		<para>		Usage: poweroff		</para>		<para>		Shut down the system, and request that the kernel turn		off power upon halting.		</para>	</sect1>	<sect1 id="printf">	    <title>printf</title>		<para>		Usage: printf FORMAT [ARGUMENT]...		</para>		<para>		Format and print the given data in a manner similar to		the C printf command.		</para>		<para>		Example:		</para>		<para>		<screen>			$ printf "Val=%d\n" 5			Val=5		</screen>		</para>	</sect1>	<sect1 id="ps">	    <title>ps</title>		<para>		Usage: ps		</para>		<para>		Report process status.  This version of ps accepts no		options.		</para>		<para>		Options:		</para>		<para>		<screen>		</screen>		</para>		<para>		Example:		</para>		<para>		<screen>			$ ps			  PID  Uid      Gid State Command			    1 root     root     S init			    2 root     root     S [kflushd]			    3 root     root     S [kupdate]			    4 root     root     S [kpiod]			    5 root     root     S [kswapd]			  742 andersen andersen S [bash]			  743 andersen andersen S -bash			  745 root     root     S [getty]			 2990 andersen andersen R ps		</screen>		</para>	</sect1>	<sect1 id="pwd">	    <title>pwd</title>		<para>		Usage: pwd		</para>		<para>		Print the full filename of the current working		directory.		</para>		<para>		Example:		</para>		<para>		<screen>			$ pwd			/root		</screen>		</para>	</sect1>	<sect1 id="rdate">	    <title>rdate</title>		<para>		Usage: rdate [OPTION] HOST		</para>		<para>		Get and possibly set the system date and time from a remote HOST.		</para>		<para>		Options:		</para>		<para>		<screen>			-s      Set the system date and time (default).			-p      Print the date and time.		</screen>		</para>	</sect1>	<sect1 id="reboot">	    <title>reboot</title>		<para>		Usage: reboot		</para>		<para>		Reboot the system.		</para>	</sect1>	<sect1 id="renice">	    <title>renice</title>		<para>		Usage: renice priority pid [pid ...]		</para>		<para>		Changes priority of running processes. Allowed priorities range		from 20 (the process runs only when nothing else is running) to 0		(default priority) to -20 (almost nothing else ever gets to run).		</para>	</sect1>	<sect1 id="reset">	    <title>reset</title>		<para>		Usage: reset		</para>		<para>		Resets the screen.		</para>	</sect1>	<sect1 id="rm">	    <title>rm</title>		<para>		Usage: rm [OPTION]... FILE...		</para>		<para>		Remove (unlink) the FILE(s).  You may use '--' to		indicate that all following arguments are non-options.		</para>		<para>		Options:		</para>		<para>		<screen>			-i		Always prompt before removing each destinations			-f		Remove existing destinations, never prompt			-r or -R	Remove the contents of directories recursively		</screen>		</para>		<para>		Example:		</para>		<para>		<screen>			$ rm -rf /tmp/foo		</screen>		</para>	</sect1>	<sect1 id="rmdir">	    <title>rmdir</title>		<para>		Usage: rmdir DIRECTORY...		</para>		<para>		Remove DIRECTORY(s) if they are empty.		</para>		<para>		Example:		</para>		<para>		<screen>			$ rmdir /tmp/foo		</screen>		</para>	</sect1>	<sect1 id="rmmod">	    <title>rmmod</title>		<para>		Usage: rmmod [OPTION]... [MODULE]...		</para>		<para>		Unload MODULE(s) from the kernel.		</para>		<para>		Options:		</para>		<para>		<screen>			-a	Try to remove all unused kernel modules		</screen>		</para>		<para>		Example:		</para>		<para>		<screen>			$ rmmod tulip		</screen>		</para>	</sect1>	<sect1 id="sed">	    <title>sed</title>		<para>		Usage: sed [OPTION]... SCRIPT [FILE]...		</para>		<para>		Allowed sed scripts come in the following form:		</para>		<para>		<screen>		ADDR [!] COMMAND		</screen>		</para>		<para>		ADDR can be:		</para>		<para>		<screen>			NUMBER    Match specified line number			$         Match last line			/REGEXP/  Match specified regexp		</screen>		</para>		<para>		! inverts the meaning of the match		</para>		<para>		COMMAND can be:		</para>		<para>		<screen>			s/regexp/replacement/[igp]				which attempt to match regexp against the pattern space				and if successful replaces the matched portion with replacement.			aTEXT				which appends TEXT after the pattern space		</screen>		</para>		<para>		This version of sed matches full regular expressions.		</para>		<para>		Options:		</para>		<para>		<screen>			-e	Add the script to the commands to be executed			-n	Suppress automatic printing of pattern space		</screen>		</para>		<para>		Example:		</para>		<para>		<screen>			$ echo "foo" | sed -e 's/f[a-zA-Z]o/bar/g'			bar		</screen>		</para>	</sect1>	<sect1 id="setkeycodes">	    <title>setkeycodes</title>		<para>		Usage: setkeycodes SCANCODE KEYCODE ...		</para>		<para>		Set entries into the kernel's scancode-to-keycode map,		allowing unusual keyboards to generate usable keycodes.		</para>		<para>		SCANCODE may be either xx or e0xx (hexadecimal), and		KEYCODE is given in decimal.		</para>		<para>		Example:		</para>		<para>		<screen>			$ setkeycodes e030 127		</screen>		</para>	</sect1>	<sect1 id="sh">	    <title>sh</title>		<para>		Usage: sh		</para>		<para>		lash -- the BusyBox LAme SHell (command interpreter)		</para>		<para>		This command does not yet have proper documentation.  		</para>		<para>		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 (#!/bin/sh), and has a		sufficient set of builtins to do what is needed. It does		not (yet) support Bourne Shell syntax. If you need		things like ``if-then-else'', ``while'', and such, use		ash or bash. If you just need a very simple and		extremely small shell, this will do the job.		</para>	</sect1>	<sect1 id="sleep">	    <title>sleep</title>		<para>		Usage: sleep N		</para>		<para>		Pause for N seconds.		</para>		<para>		Example:		</para>		<para>		<screen>			$ sleep 2			[2 second delay results]		</screen>		</para>	</sect1>	<sect1 id="sort">	    <title>sort</title>		<para>		Usage: sort [OPTION]... [FILE]...		</para>		<para>		Sort lines of text in FILE(s).		</para>		<para>		Options:		</para>		<para>		<screen>			-n	Compare numerically			-r	Reverse after sorting		</screen>		</para>		<para>		Example:		</para>		<para>		<screen>			$ echo -e "e\nf\nb\nd\nc\na" | sort			a			b			c			d			e			f		</screen>		</para>	</sect1>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -