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

📄 busybox.txt

📁 手机嵌入式Linux下可用的busybox源码
💻 TXT
📖 第 1 页 / 共 4 页
字号:
                 esac                done        -------------------------------    grep        grep [-ihHnqvs] PATTERN [FILEs...]        Search for PATTERN in each FILE or standard input.        Options:                -H      prefix output lines with filename where match was found                -h      suppress the prefixing filename on output                -i      ignore case distinctions                -l      list names of files that match                -n      print line number with output lines                -q      be quiet. Returns 0 if result was found, 1 otherwise                -v      select non-matching lines                -s      suppress file open/read error messages        Example:                $ grep root /etc/passwd                root:x:0:0:root:/root:/bin/bash                $ grep ^[rR]oo. /etc/passwd                root:x:0:0:root:/root:/bin/bash        -------------------------------    gunzip        gunzip [OPTION]... FILE        Uncompress FILE (or standard input if FILE is '-').        Options:                -c      Write output to standard output                -t      Test compressed file integrity        Example:                $ ls -la /tmp/BusyBox*                -rw-rw-r--    1 andersen andersen   557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz                $ gunzip /tmp/BusyBox-0.43.tar.gz                $ ls -la /tmp/BusyBox*                -rw-rw-r--    1 andersen andersen  1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar        -------------------------------    gzip        gzip [OPTION]... FILE        Compress FILE with maximum compression. When FILE is '-', reads        standard input. Implies -c.        Options:                -c      Write output to standard output instead of FILE.gz                -d      decompress        Example:                $ ls -la /tmp/busybox*                -rw-rw-r--    1 andersen andersen  1761280 Apr 14 17:47 /tmp/busybox.tar                $ gzip /tmp/busybox.tar                $ ls -la /tmp/busybox*                -rw-rw-r--    1 andersen andersen   554058 Apr 14 17:49 /tmp/busybox.tar.gz        -------------------------------    halt        halt        Halt the system.        -------------------------------    head        head [OPTION] [FILE]...        Print first 10 lines of each FILE to standard output. With more than        one FILE, precede each with a header giving the file name. With no        FILE, or when FILE is -, read standard input.        Options:                -n NUM          Print first NUM lines instead of first 10        Example:                $ head -n 2 /etc/passwd                root:x:0:0:root:/root:/bin/bash                daemon:x:1:1:daemon:/usr/sbin:/bin/sh        -------------------------------    hostid        hostid        Print out a unique 32-bit identifier for the machine.        -------------------------------    hostname        hostname [OPTION] {hostname | -F FILE}        Get or set the hostname or DNS domain name. If a hostname is given        (or FILE with the -F parameter), the host name will be set.        Options:                -s              Short                -i              Addresses for the hostname                -d              DNS domain name                -F, --file FILE Use the contents of FILE to specify the hostname        Example:                $ hostname                sage         -------------------------------    id  id [OPTIONS]... [USERNAME]        Print information for USERNAME or the current user        Options:                -g      prints only the group ID                -u      prints only the user ID                -n      print a name instead of a number (with for -ug)                -r      prints the real user ID instead of the effective ID (with -ug)        Example:                $ id                uid=1000(andersen) gid=1000(andersen)        -------------------------------    ifconfig        ifconfig [-a] <interface> [<address>]        configure a network interface        Options:                [[-]broadcast [<address>]]  [[-]pointopoint [<address>]]                [netmask <address>]  [dstaddr <address>]                [outfill <NN>] [keepalive <NN>]                [hw ether <address>]  [metric <NN>]  [mtu <NN>]                [[-]trailers]  [[-]arp]  [[-]allmulti]                [multicast]  [[-]promisc]  [txqueuelen <NN>]  [[-]dynamic]                [mem_start <NN>]  [io_addr <NN>]  [irq <NN>]                [up|down] ...        -------------------------------    init        init        Init is the parent of all processes.        This version of init is designed to be run only by the kernel.        BusyBox init doesn't support multiple runlevels. The runlevels field        of the /etc/inittab file is completely ignored by BusyBox init. If        you want runlevels, use sysvinit.        BusyBox init works just fine without an inittab. If no inittab is        found, it has the following default behavior:                ::sysinit:/etc/init.d/rcS                ::askfirst:/bin/sh                ::ctrlaltdel:/sbin/reboot                ::shutdown:/sbin/swapoff -a                ::shutdown:/bin/umount -a -r                ::restart:/sbin/init        if it detects that /dev/console is _not_ a serial console, it will        also run:                tty2::askfirst:/bin/sh                tty3::askfirst:/bin/sh                tty4::askfirst:/bin/sh        If you choose to use an /etc/inittab file, the inittab entry format        is as follows:                <id>:<runlevels>:<action>:<process>                <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, 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.                <runlevels>:                         The runlevels field is completely ignored.                <action>:                         Valid actions include: sysinit, respawn, askfirst, wait,                         once, restart, ctrlaltdel, and shutdown.                        The available actions can be classified into two groups: actions                        that are run only once, and actions that are re-run when the specified                        process exits.                        Run only-once actions:                                'sysinit' is the first item run on boot.  init waits until all                                sysinit actions are completed before continuing.  Following the                                completion of all sysinit actions, all 'wait' actions are run.                                'wait' actions, like  'sysinit' actions, cause init to wait until                                the specified task completes.  'once' actions are asynchronous,                                therefore, init does not wait for them to complete.  'restart' is                                the action taken to restart the init process.  By default this should                                simply run /sbin/init, but can be a script which runs pivot_root or it                                can do all sorts of other interesting things.  The 'ctrlaltdel' init                                actions are run when the system detects that someone on the system                               console has pressed the CTRL-ALT-DEL key combination.  Typically one                               wants to run 'reboot' at this point to cause the system to reboot.                                Finally the 'shutdown' action specifies the actions to taken when                               init is told to reboot.  Unmounting filesystems and disabling swap                               is a very good here                        Run repeatedly actions:                                'respawn' actions are run after the 'once' actions.  When a process                                started with a 'respawn' action exits, init automatically restarts                                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        -------------------------------    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        -------------------------------    kill        kill [-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        -------------------------------    killall        killall [-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        -------------------------------    klogd        klogd -n        Kernel logger. Options:                -n      Run as a foreground process.        -------------------------------    lash        lash [FILE]... or: sh -c command [args]...        lash: The BusyBox LAme SHell (command interpreter)

⌨️ 快捷键说明

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