X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=docs%2Fbusybox.sgml;h=34559dab45023cf831dddaa09543ddc591d0d518;hb=603557b466a101b8f9bcd494fd4e3ea821278651;hp=7d86e19e2a770e3d1b2208e0c742613cdae43fe0;hpb=5b5db38a7df20c8196e6a737cb2c76b219e152cc;p=oweals%2Fbusybox.git diff --git a/docs/busybox.sgml b/docs/busybox.sgml index 7d86e19e2..34559dab4 100644 --- a/docs/busybox.sgml +++ b/docs/busybox.sgml @@ -137,14 +137,14 @@ ar, basename, cat, chgrp, chmod, chown, chroot, chvt, clear, - cp, cut, date, dc, dd, deallocvt, df, dirname, dmesg, du, - dumpkmap, dutmp, echo, false, fbset, fdflush, find, free, + cp, cut, date, dc, dd, deallocvt, df, dirname, dmesg, dpkg-deb, + du, dumpkmap, dutmp, echo, false, fbset, fdflush, find, free, freeramdisk, fsck.minix, grep, gunzip, gzip, halt, head, hostid, hostname, id, init, insmod, kill, killall, length, ln, loadacm, loadfont, loadkmap, logger, logname, ls, lsmod, makedevs, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp, more, mount, mt, mv, nc, nslookup, ping, poweroff, printf, ps, - pwd, reboot, renice, reset, rm, rmdir, rmmod, sed, setkeycodes, sh, sleep, + pwd, reboot, renice, reset, rm, rmdir, rmmod, run-parts, sed, setkeycodes, sh, sleep, sort, swapoff, swapon, sync, syslogd, tail, tar, tee, telnet, test, touch, tr, true, tty, umount, uname, uniq, update, uptime, usleep, uudecode, uuencode, wc, which, whoami, yes, @@ -758,6 +758,44 @@ + + dpkg-deb + + + Usage: dpkg-deb [OPTION] archive [directory] + + + + Debian package archive (.deb) manipulation tool + + + + Options: + + + + + -c List the contents of the filesystem tree archive portion of the package + -e Extracts the control information files from a package archive into the specified directory. + If no directory is specified then a subdirectory DEBIAN in the current directory is used. + -x Silently extracts the filesystem tree from a package archive into the specified directory. + -X Extracts the filesystem tree from a package archive into the specified directory, listing the files as it goes. + If required the specified directory (but not its parents) will be created. + + + + + Example: + + + + + dpkg-deb -e ./busybox_0.48-1_i386.deb + dpkg-deb -x ./busybox_0.48-1_i386.deb ./unpack_dir + + + + du @@ -767,7 +805,7 @@ Summarize the disk space used for each FILE or current - directory. Disk space printed in units of 1k (i.e. + directory. Disk space printed in units of 1k (i.e., 1024 bytes). @@ -1050,7 +1088,9 @@ -follow Dereference symbolic links -name PATTERN File name (leading directories removed) matches PATTERN - -print Print the full file name followed by a newline to stdout + -type X Filetype matches X (where X is one of: f,d,l,b,c,...) + -perm PERMS Permissions match any of (+NNN); all of (-NNN); or exactly (NNN) + -mtime TIME Modified time is greater than (+N); less than (-N); or exactly (N) days @@ -1297,6 +1337,7 @@ -c Write output to standard output + -d decompress @@ -1435,6 +1476,7 @@ -g Print only the group ID -u Print only the user ID + -n print a name instead of a number (with for -ug) -r Print the real user ID instead of the effective ID (with -ug) @@ -1511,19 +1553,18 @@ id - WARNING: This field has a non-traditional - meaning for BusyBox init! The id field is used - by BusyBox init to specify the controlling tty - for the specified process to run on. The - contents of this field are appended to "/dev/" - and used as-is. There is no need for this field - to be unique, although if it isn't you may have - strange results. If this field is left blank, - it is completely ignored. Also note that if - BusyBox detects that a serial console is in use, - then all entries containing non-empty id fields - will _not_ be run. BusyBox init does nothing - with utmp. We don't need no stinkin' utmp. + + WARNING: This field has a non-traditional meaning for BusyBox init! + The id field is used by BusyBox init to specify the controlling tty + for the specified process to run on. The contents of this field + are appended to "/dev/" and used as-is. There is no need for this + field to be unique, although if it isn't you may have strange + results. If this field is left blank, the controlling tty is set + to the console. Also note that if BusyBox detects that a serial + console is in use, then only entries whose controlling tty is + either the serial console or /dev/null will be run. BusyBox init + does nothing with utmp. We don't need no stinkin' utmp. + @@ -1659,6 +1700,7 @@ -k Make module autoclean-able. -v Verbose output -x Do not export externs + -L Prevent simultaneous loads of the same module @@ -1872,7 +1914,7 @@ - Write MESSAGE to the system log. If MESSAGE is '-', log + Write MESSAGE to the system log. If MESSAGE is omitted, log stdin. @@ -2243,7 +2285,7 @@ Creates a temporary file with its name based on - TEMPLATE. TEMPLATE is any name with six `Xs' (i.e. + TEMPLATE. TEMPLATE is any name with six `Xs' (i.e., /tmp/temp.XXXXXX). @@ -2410,7 +2452,12 @@ - Open a pipe to HOST:PORT. + or: nc -p PORT -l + + + + + Open a pipe to HOST:PORT or listen for a connection on PORT. @@ -2681,6 +2728,7 @@ + -i Always prompt before removing each destinations -f Remove existing destinations, never prompt -r or -R Remove the contents of directories recursively @@ -2751,6 +2799,33 @@ + + run-parts + + + Usage: run-parts [-t] [-a ARG] [-u MASK] DIRECTORY + + + + Run a bunch of scripts in a directory. + + + + Options: + + + + + -t Test only. It only print the file to be executed, + without execute them. + -a ARG Pass ARG as an a argument to the programs executed. + -u MASK Set the umask to MASK before executing the programs. + + + + + + sed @@ -3022,8 +3097,8 @@ -n Run as a foreground process -K Do not start up the klogd process -O FILE Use an alternate log file (default=/var/log/messages) - -R HOST[:PORT] Log messages to HOST on PORT (default=514) over UDP. - -N Do not log anything locally -- network logging only + -R HOST[:PORT] Log remotely to IP or hostname on PORT (default PORT=514/UDP) + -L Log locally as well as network logging (default is network only) @@ -3359,7 +3434,7 @@ -a Unmount all file systems -r Try to remount devices as read-only if mount is busy - -f Force filesystem umount (i.e. unreachable NFS server) + -f Force filesystem umount (i.e., unreachable NFS server) -l Do not free loop device (if a loop device has been used) @@ -3620,6 +3695,18 @@ + + watchdog + + + Usage: watchdog device + + + + Periodically writes to watchdog device B. + + + wc