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

📄 busybox.1

📁 手机嵌入式Linux下可用的busybox源码
💻 1
📖 第 1 页 / 共 4 页
字号:
\&        world.Ve\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBdate\fR" 4.IX Item "date"date [\s-1OPTION\s0]... [+FORMAT].SpDisplays the current time in the given \s-1FORMAT\s0, or sets the system date..SpOptions:.Sp.Vb 4\&        -R              Outputs RFC-822 compliant date string\&        -d STRING       display time described by STRING, not `now'\&        -s              Sets time described by STRING\&        -u              Prints or sets Coordinated Universal Time.VeExample:.Sp.Vb 2\&        $ date\&        Wed Apr 12 18:52:41 MDT 2000.Ve\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBdc\fR" 4.IX Item "dc"dc expression ....SpThis is a Tiny \s-1RPN\s0 calculator that understands thefollowing operations: +, \-, /, *, and, or, not, eor.i.e., 'dc 2 2 add' \-> 4, and 'dc 8 8 \e* 2 2 + /' \-> 16.SpExample:.Sp.Vb 10\&        $ dc 2 2 +\&        4\&        $ dc 8 8 * 2 2 + /\&        16\&        $ dc 0 1 and\&        0\&        $ dc 0 1 or\&        1\&        $ echo 72 9 div 8 mul | dc\&        64.Ve\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBdd\fR" 4.IX Item "dd"dd [if=FILE] [of=FILE] [bs=N] [count=N] [skip=N]	  [seek=N] [conv=notrunc|noerror|sync].SpCopy a file, converting and formatting according to options.Sp.Vb 9\&        if=FILE         read from FILE instead of stdin\&        of=FILE         write to FILE instead of stdout\&        bs=N            read and write N bytes at a time\&        count=N         copy only N input blocks\&        skip=N          skip N input blocks\&        seek=N          skip N output blocks\&        conv=notrunc    don't truncate output file\&        conv=noerror    continue after read errors\&        conv=sync       pad blocks with zeros.VeNumbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024),\&\s-1MD\s0 (x1000000), M (x1048576), \s-1GD\s0 (x1000000000) or G (x1073741824)..SpExample:.Sp.Vb 3\&        $ dd if=/dev/zero of=/dev/ram1 bs=1M count=4\&        4+0 records in\&        4+0 records out.Ve\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBdeallocvt\fR" 4.IX Item "deallocvt"deallocvt N.SpDeallocate unused virtual terminal /dev/ttyN.Sp\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBdf\fR" 4.IX Item "df"df [\fB\-hmk\fR] [\s-1FILESYSTEM\s0 ...].SpPrint the filesystem space used and space available..SpOptions:.Sp.Vb 3\&        -h      print sizes in human readable format (e.g., 1K 243M 2G )\&        -m      print sizes in megabytes\&        -k      print sizes in kilobytes(default).VeExample:.Sp.Vb 7\&        $ 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% /.Ve\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBdirname\fR" 4.IX Item "dirname"dirname [\s-1FILENAME\s0 ...].SpStrips non-directory suffix from \s-1FILENAME\s0.SpExample:.Sp.Vb 4\&        $ dirname /tmp/foo\&        /tmp\&        $ dirname /tmp/foo/\&        /tmp.Ve\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBdmesg\fR" 4.IX Item "dmesg"dmesg [\fB\-c\fR] [\fB\-n\fR \s-1LEVEL\s0] [\fB\-s\fR \s-1SIZE\s0].SpPrints or controls the kernel ring buffer.SpOptions:.Sp.Vb 3\&        -c              Clears the ring buffer's contents after printing\&        -n LEVEL        Sets console logging level\&        -s SIZE         Use a buffer of size SIZE.Ve\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBdos2unix\fR" 4.IX Item "dos2unix"dos2unix [option] [\s-1FILE\s0].SpConverts \s-1FILE\s0 from dos format to unix format.  When no optionis given, the input is converted to the opposite output format.When no file is given, uses stdin for input and stdout for output..SpOptions:.Sp.Vb 2\&        -u      output will be in UNIX format\&        -d      output will be in DOS format.Ve\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBdpkg\fR" 4.IX Item "dpkg"dpkg \fB\-i\fR package_file[\fB\-CPru\fR] package_name.Sp.Vb 5\&        -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.Ve\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBdpkg_deb\fR" 4.IX Item "dpkg_deb"dpkg_deb [\fB\-cefItxX\fR] \s-1FILE\s0 [argument].SpPerform actions on debian packages (.debs).SpOptions:.Sp.Vb 7\&        -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.VeExample:.Sp.Vb 1\&        $ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp.Ve\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBdu\fR" 4.IX Item "du"du [\fB\-lsxhmk\fR] [\s-1FILE\s0]....SpSummarizes disk space used for each \s-1FILE\s0 and/or directory.Disk space is printed in units of 1024 bytes..SpOptions:.Sp.Vb 6\&        -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).VeExample:.Sp.Vb 11\&        $ 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    ..Ve\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBdumpkmap\fR" 4.IX Item "dumpkmap"dumpkmap > keymap.SpPrints out a binary keyboard translation table to standard output..SpExample:.Sp.Vb 1\&        $ dumpkmap > keymap.Ve\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBdutmp\fR" 4.IX Item "dutmp"dutmp [\s-1FILE\s0].SpDump utmp file format (pipe delimited) from \s-1FILE\s0or stdin to stdout.  (i.e., 'dutmp /var/run/utmp').SpExample:.Sp.Vb 8\&        $ 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.Ve\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBecho\fR" 4.IX Item "echo"echo [\fB\-neE\fR] [\s-1ARG\s0 ...].SpPrints the specified ARGs to stdout.SpOptions:.Sp.Vb 3\&        -n      suppress trailing newline\&        -e      interpret backslash-escaped characters (i.e., \et=tab)\&        -E      disable interpretation of backslash-escaped characters.VeExample:.Sp.Vb 8\&        $ echo "Erik is cool"\&        Erik is cool\&        $  echo -e "Erik\enis\encool"\&        Erik\&        is\&        cool\&        $ echo "Erik\enis\encool"\&        Erik\enis\encool.Ve\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBenv\fR" 4.IX Item "env"env [\fB\-iu\fR] [\-] [name=value]... [command].SpPrints the current environment or runs a program after settingup the specified environment..SpOptions:.Sp.Vb 2\&        -, -i   start with an empty environment\&        -u      remove variable from the environment.Ve\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBexpr\fR" 4.IX Item "expr"expr \s-1EXPRESSION\s0.SpPrints the value of \s-1EXPRESSION\s0 to standard output..Sp\&\s-1EXPRESSION\s0 may be:.Sp.Vb 23\&        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.VeBeware that many operators need to be escaped or quoted for shells.Comparisons are arithmetic if both ARGs are numbers, elselexicographical.  Pattern matches return the string matched between \&\e( and \e) or null; if \e( and \e) are not used, they return the number of characters matched or 0..Sp\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBfalse\fR" 4.IX Item "false"false 	.SpReturn an exit code of \s-1FALSE\s0 (1)..SpExample:.Sp.Vb 3\&        $ false\&        $ echo $?\&        1.Ve\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBfbset\fR" 4.IX Item "fbset"fbset [options] [mode].SpShow and modify frame buffer settings.SpExample:.Sp.Vb 8\&        $ 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.Ve\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBfdflush\fR" 4.IX Item "fdflush"fdflush \s-1DEVICE\s0.SpForces floppy disk drive to detect disk change.Sp\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBfind\fR" 4.IX Item "find"find [\s-1PATH\s0...] [\s-1EXPRESSION\s0].SpSearch for files in a directory hierarchy.  The default \s-1PATH\s0 isthe current directory; default \s-1EXPRESSION\s0 is '\fB\-print\fR'.Sp\&\s-1EXPRESSION\s0 may consist of:.Sp.Vb 3\&        -follow         Dereference symbolic links.\&        -name PATTERN   File name (leading directories removed) matches PATTERN.\&        -print          Print (default and assumed)..Ve.Vb 6\&        -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.VeExample:.Sp.Vb 2\&        $ find / -name /etc/passwd\&        /etc/passwd.Ve\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBfree\fR" 4.IX Item "free"free 	.SpDisplays the amount of free and used system memory.SpExample:.Sp.Vb 5\&        $ free\&                      total         used         free       shared      buffers\&          Mem:       257628       248724         8904        59644        93124\&         Swap:       128516         8404       120112\&        Total:       386144       257128       129016.Ve\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-.IP "\fBfreeramdisk\fR" 4.IX Item "freeramdisk"freeramdisk \s-1DEVICE\s0.SpFrees all memory used by the specified ramdisk..SpExample:.Sp.Vb 1\&        $ freeramdisk /dev/ram2

⌨️ 快捷键说明

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