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

📄 busybox.txt

📁 手机嵌入式Linux下可用的busybox源码
💻 TXT
📖 第 1 页 / 共 4 页
字号:
                $ df                Filesystem           1k-blocks      Used Available Use% Mounted on                /dev/sda3              8690864   8553540    137324  98% /                /dev/sda1                64216     36364     27852  57% /boot                $ df /dev/sda3                Filesystem           1k-blocks      Used Available Use% Mounted on                /dev/sda3              8690864   8553540    137324  98% /        -------------------------------    dirname        dirname [FILENAME ...]        Strips non-directory suffix from FILENAME        Example:                $ dirname /tmp/foo                /tmp                $ dirname /tmp/foo/                /tmp        -------------------------------    dmesg        dmesg [-c] [-n LEVEL] [-s SIZE]        Prints or controls the kernel ring buffer        Options:                -c              Clears the ring buffer's contents after printing                -n LEVEL        Sets console logging level                -s SIZE         Use a buffer of size SIZE        -------------------------------    dos2unix        dos2unix [option] [FILE]        Converts FILE from dos format to unix format. When no option is        given, the input is converted to the opposite output format. When no        file is given, uses stdin for input and stdout for output.        Options:                -u      output will be in UNIX format                -d      output will be in DOS format        -------------------------------    dpkg        dpkg -i package_file [-CPru] package_name                -i      Install the package                -C      Configure an unpackaged package                -P      Purge all files of a package                -r      Remove all but the configuration files for a package                -u      Unpack a package, but dont configure it        -------------------------------    dpkg_deb        dpkg_deb [-cefItxX] FILE [argument]        Perform actions on debian packages (.debs)        Options:                -c      List contents of filesystem tree                -e      Extract control files to [argument] directory                -f      Display control field name starting with [argument]                -I      Display the control filenamed [argument]                -t      Extract filesystem tree to stdout in tar format                -x      Extract packages filesystem tree to directory                -X      Verbose extract        Example:                $ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp        -------------------------------    du  du [-lsxhmk] [FILE]...        Summarizes disk space used for each FILE and/or directory. Disk        space is printed in units of 1024 bytes.        Options:                -l      count sizes many times if hard linked                -s      display only a total for each argument                -h      print sizes in human readable format (e.g., 1K 243M 2G )                -m      print sizes in megabytes                -x      skip directories on different filesystems                -k      print sizes in kilobytes(default)        Example:                $ du                16      ./CVS                12      ./kernel-patches/CVS                80      ./kernel-patches                12      ./tests/CVS                36      ./tests                12      ./scripts/CVS                16      ./scripts                12      ./docs/CVS                104     ./docs                2417    .        -------------------------------    dumpkmap        dumpkmap > keymap        Prints out a binary keyboard translation table to standard output.        Example:                $ dumpkmap > keymap        -------------------------------    dutmp        dutmp [FILE]        Dump utmp file format (pipe delimited) from FILE or stdin to stdout.        (i.e., 'dutmp /var/run/utmp')        Example:                $ dutmp /var/run/utmp                8|7||si|||0|0|0|955637625|760097|0                2|0|~|~~|reboot||0|0|0|955637625|782235|0                1|20020|~|~~|runlevel||0|0|0|955637625|800089|0                8|125||l4|||0|0|0|955637629|998367|0                6|245|tty1|1|LOGIN||0|0|0|955637630|998974|0                6|246|tty2|2|LOGIN||0|0|0|955637630|999498|0                7|336|pts/0|vt00andersen|andersen|:0.0|0|0|0|955637763|0|0        -------------------------------    echo        echo [-neE] [ARG ...]        Prints the specified ARGs to stdout        Options:                -n      suppress trailing newline                -e      interpret backslash-escaped characters (i.e., \t=tab)                -E      disable interpretation of backslash-escaped characters        Example:                $ echo "Erik is cool"                Erik is cool                $  echo -e "Erik\nis\ncool"                Erik                is                cool                $ echo "Erik\nis\ncool"                Erik\nis\ncool        -------------------------------    env env [-iu] [-] [name=value]... [command]        Prints the current environment or runs a program after setting up        the specified environment.        Options:                -, -i   start with an empty environment                -u      remove variable from the environment        -------------------------------    expr        expr EXPRESSION        Prints the value of EXPRESSION to standard output.        EXPRESSION may be:                ARG1 |  ARG2    ARG1 if it is neither null nor 0, otherwise ARG2                ARG1 &  ARG2    ARG1 if neither argument is null or 0, otherwise 0                ARG1 <  ARG2    ARG1 is less than ARG2                ARG1 <= ARG2    ARG1 is less than or equal to ARG2                ARG1 =  ARG2    ARG1 is equal to ARG2                ARG1 != ARG2    ARG1 is unequal to ARG2                ARG1 >= ARG2    ARG1 is greater than or equal to ARG2                ARG1 >  ARG2    ARG1 is greater than ARG2                ARG1 +  ARG2    arithmetic sum of ARG1 and ARG2                ARG1 -  ARG2    arithmetic difference of ARG1 and ARG2                ARG1 *  ARG2    arithmetic product of ARG1 and ARG2                ARG1 /  ARG2    arithmetic quotient of ARG1 divided by ARG2                ARG1 %  ARG2    arithmetic remainder of ARG1 divided by ARG2                STRING : REGEXP             anchored pattern match of REGEXP in STRING                match STRING REGEXP         same as STRING : REGEXP                substr STRING POS LENGTH    substring of STRING, POS counted from 1                index STRING CHARS          index in STRING where any CHARS is found,                                            or 0                length STRING               length of STRING                quote TOKEN                 interpret TOKEN as a string, even if                                            it is a keyword like `match' or an                                            operator like `/'                ( EXPRESSION )              value of EXPRESSION        Beware that many operators need to be escaped or quoted for shells.        Comparisons are arithmetic if both ARGs are numbers, else        lexicographical. Pattern matches return the string matched between        \( and \) or null; if \( and \) are not used, they return the number        of characters matched or 0.        -------------------------------    false        false        Return an exit code of FALSE (1).        Example:                $ false                $ echo $?                1        -------------------------------    fbset        fbset [options] [mode]        Show and modify frame buffer settings        Example:                $ fbset                mode "1024x768-76"                        # D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz                        geometry 1024 768 1024 768 16                        timings 12714 128 32 16 4 128 4                        accel false                        rgba 5/11,6/5,5/0,0/0                endmode        -------------------------------    fdflush        fdflush DEVICE        Forces floppy disk drive to detect disk change        -------------------------------    find        find [PATH...] [EXPRESSION]        Search for files in a directory hierarchy. The default PATH is the        current directory; default EXPRESSION is '-print'        EXPRESSION may consist of:                -follow         Dereference symbolic links.                -name PATTERN   File name (leading directories removed) matches PATTERN.                -print          Print (default and assumed).                -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                -newer FILE     Modified time is more recent than FILE's        Example:                $ find / -name /etc/passwd                /etc/passwd        -------------------------------    free        free        Displays the amount of free and used system memory        Example:                $ free                              total         used         free       shared      buffers                  Mem:       257628       248724         8904        59644        93124                 Swap:       128516         8404       120112                Total:       386144       257128       129016        -------------------------------    freeramdisk        freeramdisk DEVICE        Frees all memory used by the specified ramdisk.        Example:                $ freeramdisk /dev/ram2        -------------------------------    fsck_minix        fsck_minix [-larvsmf] /dev/name        Performs a consistency check for MINIX filesystems.        Options:                -l      Lists all filenames                -r      Perform interactive repairs                -a      Perform automatic repairs                -v      verbose                -s      Outputs super-block information                -m      Activates MINIX-like "mode not cleared" warnings                -f      Force file system check.        -------------------------------    getopt        getopt [OPTIONS]...        Parse command options                -a, --alternative               Allow long options starting with single -                -l, --longoptions=longopts      Long options to be recognized                -n, --name=progname             The name under which errors are reported                -o, --options=optstring Short options to be recognized                -q, --quiet                     Disable error reporting by getopt(3)                -Q, --quiet-output              No normal output                -s, --shell=shell               Set shell quoting conventions                -T, --test                      Test for getopt(1) version                -u, --unqote                    Do not quote the output        Example:                $ cat getopt.test                #!/bin/sh                GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \                       -n 'example.busybox' -- "$@"`                if [ $? != 0 ] ; then  exit 1 ; fi                eval set -- "$GETOPT"                while true ; do                 case $1 in                   -a|--a-long) echo "Option a" ; shift ;;                   -b|--b-long) echo "Option b, argument `$2'" ; shift 2 ;;                   -c|--c-long)                     case "$2" in                       "") echo "Option c, no argument"; shift 2 ;;                       *)  echo "Option c, argument `$2'" ; shift 2 ;;                     esac ;;                   --) shift ; break ;;                   *) echo "Internal error!" ; exit 1 ;;

⌨️ 快捷键说明

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