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

📄 busybox.pod

📁 手机嵌入式Linux下可用的busybox源码
💻 POD
📖 第 1 页 / 共 3 页
字号:
			it.  Unlike sysvinit, BusyBox init does not stop processes from			respawning out of control.  The 'askfirst' actions acts just like			respawn, except that before running the specified process it			displays the line "Please press Enter to activate this console."			and then waits for the user to press enter before starting the			specified process.  		Unrecognized actions (like initdefault) will cause init to emit an		error message, and then go along with its business.  All actions are		run in the order they appear in /etc/inittab.	<process>: 		Specifies the process to be executed and it's command line.Example /etc/inittab file:	# This is run first except when booting in single-user mode.	#	::sysinit:/etc/init.d/rcS		# /bin/sh invocations on selected ttys	#	# Start an "askfirst" shell on the console (whatever that may be)	::askfirst:-/bin/sh	# Start an "askfirst" shell on /dev/tty2-4	tty2::askfirst:-/bin/sh	tty3::askfirst:-/bin/sh	tty4::askfirst:-/bin/sh		# /sbin/getty invocations for selected ttys	#	tty4::respawn:/sbin/getty 38400 tty5	tty5::respawn:/sbin/getty 38400 tty6			# Example of how to put a getty on a serial line (for a terminal)	#	#::respawn:/sbin/getty -L ttyS0 9600 vt100	#::respawn:/sbin/getty -L ttyS1 9600 vt100	#	# Example how to put a getty on a modem line.	#::respawn:/sbin/getty 57600 ttyS2		# Stuff to do when restarting the init process	::restart:/sbin/init		# Stuff to do before rebooting	::ctrlaltdel:/sbin/reboot	::shutdown:/bin/umount -a -r	::shutdown:/sbin/swapoff -a-------------------------------=item B<insmod>insmod [OPTION]... MODULE [symbol=value]...Loads the specified kernel modules into the kernel.Options:	-f	Force module to load into the wrong kernel version.	-k	Make module autoclean-able.	-v	verbose output	-L	Lock to prevent simultaneous loads of a module	-x	do not export externs-------------------------------=item B<kill>kill [B<-signal>] process-id [process-id ...]Send a signal (default is SIGTERM) to the specified process(es).Options:	-l	List all signal names and numbers.Example:	$ ps | grep apache	252 root     root     S [apache]	263 www-data www-data S [apache]	264 www-data www-data S [apache]	265 www-data www-data S [apache]	266 www-data www-data S [apache]	267 www-data www-data S [apache]	$ kill 252-------------------------------=item B<killall>killall [B<-signal>] process-name [process-name ...]Send a signal (default is SIGTERM) to the specified process(es).Options:	-l	List all signal names and numbers.Example:	$ killall apache-------------------------------=item B<klogd>klogd B<-n>Kernel logger.Options:	-n	Run as a foreground process.-------------------------------=item B<lash>lash [FILE]...or: sh B<-c> command [args]...lash: The BusyBox LAme SHell (command interpreter)This command does not yet have proper documentation.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.-------------------------------=item B<length>length STRINGPrints out the length of the specified STRING.Example:	$ length Hello	5-------------------------------=item B<ln>ln [OPTION] TARGET... LINK_NAME|DIRECTORYCreate a link named LINK_NAME or DIRECTORY to the specified TARGETYou may use '--' to indicate that all following arguments are non-options.Options:	-s	make symbolic links instead of hard links	-f	remove existing destination files	-n	no dereference symlinks - treat like normal fileExample:	$ ln -s BusyBox /tmp/ls	$ ls -l /tmp/ls	lrwxrwxrwx    1 root     root            7 Apr 12 18:39 ls -> BusyBox*-------------------------------=item B<loadacm>loadacm < mapfileLoads an acm from standard input.Example:	$ loadacm < /etc/i18n/acmname-------------------------------=item B<loadfont>loadfont < fontLoads a console font from standard input.Example:	$ loadfont < /etc/i18n/fontname-------------------------------=item B<loadkmap>loadkmap < keymapLoads a binary keyboard translation table from standard input.Example:	$ loadkmap < /etc/i18n/lang-keymap-------------------------------=item B<logger>logger [OPTION]... [MESSAGE]Write MESSAGE to the system log.  If MESSAGE is omitted, log stdin.Options:	-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.Example:	$ logger "hello"-------------------------------=item B<logname>logname 	Print the name of the current user.Example:	$ logname	root-------------------------------=item B<logread>logread         Shows the messages from syslogd (using circular buffer).-------------------------------=item B<losetup>losetup [OPTION]... LOOPDEVICE [FILE]Associate LOOPDEVICE with FILE.Options:	-d		Disassociate LOOPDEVICE.	-o OFFSET	Start OFFSET bytes into FILE.-------------------------------=item B<ls>ls [B<-1AacCdeFilnpLRrSsTtuvwxXhk>] [filenames...]List directory contentsOptions:	-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)-------------------------------=item B<lsmod>lsmod 	List the currently loaded kernel modules.-------------------------------=item B<makedevs>makedevs NAME TYPE MAJOR MINOR FIRST LAST [s]Creates a range of block or character special filesTYPEs include:	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.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.For example:	makedevs /dev/ttyS c 4 66 2 63   ->  ttyS2-ttyS63	makedevs /dev/hda b 3 0 0 8 s    ->  hda,hda1-hda8Example:	$ makedevs /dev/ttyS c 4 66 2 63	[creates ttyS2-ttyS63]	$ makedevs /dev/hda b 3 0 0 8 s	[creates hda,hda1-hda8]-------------------------------=item B<md5sum>md5sum [OPTION] [FILE]...or: md5sum [OPTION] B<-c> [FILE]Print or check MD5 checksums.Options:With no FILE, or when FILE is -, read standard input.	-b	read files in binary mode	-c	check MD5 sums against given list	-t	read files in text mode (default)	-g	read a stringThe following two options are useful only when verifying checksums:	-s	don't output anything, status code shows success	-w	warn about improperly formated MD5 checksum linesExample:	$ md5sum < busybox	6fd11e98b98a58f64ff3398d7b324003	$ md5sum busybox	6fd11e98b98a58f64ff3398d7b324003  busybox	$ md5sum -c -	6fd11e98b98a58f64ff3398d7b324003  busybox	busybox: OK	^D-------------------------------=item B<mkdir>mkdir [OPTION] DIRECTORY...Create the DIRECTORY(ies) if they do not already existOptions:	-m	set permission mode (as in chmod), not rwxrwxrwx - umask	-p	no error if existing, make parent directories as neededExample:	$ 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-------------------------------=item B<mkfifo>mkfifo [OPTIONS] nameCreates a named pipe (identical to 'mknod name p')Options:	-m	create the pipe using the specified mode (default a=rw)-------------------------------=item B<mkfs_minix>mkfs_minix [B<-c> | B<-l> filename] [B<-nXX>] [B<-iXX>] /dev/name [blocks]Make a MINIX filesystem.Options:	-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-------------------------------=item B<mknod>mknod [OPTIONS] NAME TYPE MAJOR MINORCreate a special file (block, character, or pipe).Options:	-m	create the special file using the specified mode (default a=rw)TYPEs include:	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.Example:	$ mknod /dev/fd0 b 2 0 	$ mknod -m 644 /tmp/pipe p-------------------------------=item B<mkswap>mkswap [B<-c>] [B<-v0>|B<-v1>] device [block-count]Prepare a disk partition to be used as a swap partition.Options:	-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).-------------------------------=item B<mktemp>mktemp [B<-q>] TEMPLATECreates a temporary file with its name based on TEMPLATE.TEMPLATE is any name with six `Xs' (i.e., /tmp/temp.XXXXXX).Example:	$ mktemp /tmp/temp.XXXXXX	/tmp/temp.mWiLjM	$ ls -la /tmp/temp.mWiLjM	-rw-------    1 andersen andersen        0 Apr 25 17:10 /tmp/temp.mWiLjM-------------------------------=item B<modprobe>modprobe modprobe	 [  B<-adnqv>  ] [ B<-C> config ] module [ symbol=value ... ]modprobe [ B<-adnqv> ] [ B<-C> config ] [ B<-t> type ] patternmodprobe B<-l> [ B<-C> config ] [ B<-t> type ] patternmodprobe B<-c> [ B<-C> config ]modprobe B<-r> [ B<-dnv> ] [ B<-C> config ] [ module ...]modprobe B<-V>Used to load kernel modules and automatically load their dependancies.USAGE:	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 -VOPTIONS	-a (*** not supported ***)	   Load all matching modules instead of stopping after	   the first successful loading.	-c (*** not supported ***)	   Show the currently used configuration.	-d	   Show  information about the internal representation	   of the stack of modules.	-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 + -