Ignore:
Timestamp:
09/18/11 21:30:11 (20 months ago)
Author:
BrainSlayer
Message:

ext2fs header fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/busybox/docs/BusyBox.txt

    r17628 r17633  
    7777    Currently available applets include: 
    7878 
    79             [, [[, adjtimex, arp, arping, ash, awk, basename, bash, bunzip2, 
    80             bzcat, cat, chattr, chgrp, chmod, chown, chroot, clear, cmp, cp, 
    81             cut, date, dc, dd, df, dirname, dmesg, dnsdomainname, du, echo, 
    82             egrep, env, expr, false, fdisk, fgrep, find, free, fsck, ftpget, 
    83             ftpput, getopt, grep, gunzip, gzip, halt, head, hexdump, hostname, 
    84             hwclock, id, ifconfig, ifdown, ifup, insmod, install, kill, killall, 
    85             klogd, less, ln, logger, login, logread, ls, lsattr, lsmod, lsusb, 
    86             lzcat, md5sum, mesg, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2, 
    87             mkfs.vfat, mknod, more, mount, mv, nameif, nc, netstat, nice, nohup, 
    88             nslookup, pidof, ping, ping6, pivot_root, poweroff, printenv, 
    89             printf, ps, pwd, reboot, renice, reset, rm, rmdir, rmmod, route, 
    90             run-parts, rx, sed, sendmail, sh, sha1sum, sleep, sort, strings, 
    91             stty, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, 
    92             tftp, time, top, touch, tr, traceroute, traceroute6, true, tty, 
    93             tune2fs, umount, uname, uniq, unlzma, uptime, usleep, uudecode, 
    94             uuencode, vconfig, vi, watch, wc, wget, which, whoami, xargs, yes, 
    95             zcat 
     79            [, [[, adjtimex, arp, arping, ash, awk, basename, bash, cat, chgrp, 
     80            chmod, chown, chroot, clear, cmp, cp, cut, date, dc, dd, df, 
     81            dirname, dmesg, dnsdomainname, du, echo, egrep, env, expr, false, 
     82            fgrep, find, free, ftpget, ftpput, getopt, grep, gunzip, gzip, halt, 
     83            head, hexdump, hostname, id, ifconfig, ifdown, ifup, insmod, 
     84            install, kill, killall, klogd, less, ln, logger, login, logread, ls, 
     85            lsmod, md5sum, mesg, mkdir, mke2fs, mkfifo, mkfs.ext2, more, mount, 
     86            mv, nameif, nc, netstat, nohup, nslookup, pidof, ping, pivot_root, 
     87            poweroff, printf, ps, pwd, reboot, reset, rm, rmdir, rmmod, route, 
     88            run-parts, rx, sed, sendmail, sh, sleep, sort, strings, stty, sync, 
     89            syslogd, tail, tar, tee, telnet, telnetd, test, time, top, touch, 
     90            tr, traceroute, true, tty, umount, uname, uniq, uptime, usleep, 
     91            uudecode, uuencode, vconfig, vi, watch, wc, wget, which, whoami, 
     92            xargs, yes, zcat 
    9693 
    9794COMMAND DESCRIPTIONS 
    9895    adjtimex 
    9996        adjtimex [-q] [-o OFF] [-f FREQ] [-p TCONST] [-t TICK] 
    100  
    101         Read and optionally set system timebase parameters. See adjtimex(2) 
    102  
    103                 -q      Quiet 
    104                 -o OFF  Time offset, microseconds 
    105                 -f FREQ Frequency adjust, integer kernel units (65536 is 1ppm) 
    106                         (positive values make clock run faster) 
    107                 -t TICK Microseconds per tick, usually 10000 
    108                 -p TCONST 
    10997 
    11098    arp arp [-vn] [-H HWTYPE] [-i IF] -a [HOSTNAME] [-v] [-i IF] -d HOSTNAME 
     
    113101        HWTYPE] [-i IF] -Ds HOSTNAME IFACE [netmask MASK] pub 
    114102 
    115         Manipulate ARP cache 
    116  
    117                 -a              Display (all) hosts 
    118                 -s              Set new ARP entry 
    119                 -d              Delete a specified entry 
    120                 -v              Verbose 
    121                 -n              Don't resolve names 
    122                 -i IF           Network interface 
    123                 -D              Read <hwaddr> from given device 
    124                 -A,-p AF        Protocol family 
    125                 -H HWTYPE       Hardware address type 
    126  
    127103    arping 
    128104        arping [-fqbDUA] [-c CNT] [-w TIMEOUT] [-I IFACE] [-s SRC_IP] DST_IP 
    129105 
    130         Send ARP requests/replies 
    131  
    132                 -f              Quit on first ARP reply 
    133                 -q              Quiet 
    134                 -b              Keep broadcasting, don't go unicast 
    135                 -D              Duplicated address detection mode 
    136                 -U              Unsolicited ARP mode, update your neighbors 
    137                 -A              ARP answer mode, update your neighbors 
    138                 -c N            Stop after sending N ARP requests 
    139                 -w TIMEOUT      Time to wait for ARP reply, seconds 
    140                 -I IFACE        Interface to use (default eth0) 
    141                 -s SRC_IP       Sender IP address 
    142                 DST_IP          Target IP address 
    143  
    144106    ash ash [-/+OPTIONS] [-/+o OPT]... [-c 'SCRIPT' [ARG0 [ARGS]] / FILE 
    145107        [ARGS]] 
    146108 
    147         Unix shell interpreter 
    148  
    149109    awk awk [OPTIONS] [AWK_PROGRAM] [FILE]... 
    150  
    151                 -v VAR=VAL      Set variable 
    152                 -F SEP          Use SEP as field separator 
    153                 -f FILE         Read program from FILE 
    154110 
    155111    basename 
    156112        basename FILE [SUFFIX] 
    157  
    158         Strip directory path and .SUFFIX from FILE 
    159113 
    160114    bash 
     
    162116        [ARGS]] 
    163117 
    164         Unix shell interpreter 
    165  
    166     bunzip2 
    167         bunzip2 [-cf] [FILE]... 
    168  
    169         Decompress FILEs (or stdin) 
    170  
    171                 -c      Write to stdout 
    172                 -f      Force 
    173  
    174     bzcat 
    175         bzcat FILE 
    176  
    177         Decompress to stdout 
    178  
    179118    cat cat [FILE]... 
    180  
    181         Concatenate FILEs and print them to stdout 
    182  
    183     chattr 
    184         chattr [-R] [-+=AacDdijsStTu] [-v VERSION] [FILE]... 
    185  
    186         Change file attributes on an ext2 fs 
    187  
    188         Modifiers: 
    189  
    190                 -       Remove attributes 
    191                 +       Add attributes 
    192                 =       Set attributes 
    193         Attributes: 
    194  
    195                 A       Don't track atime 
    196                 a       Append mode only 
    197                 c       Enable compress 
    198                 D       Write dir contents synchronously 
    199                 d       Don't backup with dump 
    200                 i       Cannot be modified (immutable) 
    201                 j       Write all data to journal first 
    202                 s       Zero disk storage when deleted 
    203                 S       Write file contents synchronously 
    204                 t       Disable tail-merging of partial blocks with other files 
    205                 u       Allow file to be undeleted 
    206                 -R      Recurse 
    207                 -v      Set the file's version/generation number 
    208119 
    209120    chgrp 
    210121        chgrp [-RhLHP]... GROUP FILE... 
    211122 
    212         Change the group membership of each FILE to GROUP 
    213  
    214                 -R      Recurse 
    215                 -h      Affect symlinks instead of symlink targets 
    216                 -L      Traverse all symlinks to directories 
    217                 -H      Traverse symlinks on command line only 
    218                 -P      Don't traverse symlinks (default) 
    219  
    220123    chmod 
    221124        chmod [-R] MODE[,MODE]... FILE... 
    222125 
    223         Each MODE is one or more of the letters ugoa, one of the symbols +-= 
    224         and one or more of the letters rwxst 
    225  
    226                 -R      Recurse 
    227  
    228126    chown 
    229127        chown [-RhLHP]... OWNER[<.|:>[GROUP]] FILE... 
    230128 
    231         Change the owner and/or group of each FILE to OWNER and/or GROUP 
    232  
    233                 -R      Recurse 
    234                 -h      Affect symlinks instead of symlink targets 
    235                 -L      Traverse all symlinks to directories 
    236                 -H      Traverse symlinks on command line only 
    237                 -P      Don't traverse symlinks (default) 
    238  
    239129    chroot 
    240130        chroot NEWROOT [PROG ARGS] 
    241131 
    242         Run PROG with root directory set to NEWROOT 
    243  
    244132    clear 
    245133        clear 
    246134 
    247         Clear screen 
    248  
    249135    cmp cmp [-l] [-s] FILE1 [FILE2] 
    250136 
    251         Compare FILE1 with FILE2 (or stdin) 
    252  
    253                 -l      Write the byte numbers (decimal) and values (octal) 
    254                         for all differing bytes 
    255                 -s      Quiet 
    256  
    257137    cp  cp [OPTIONS] SOURCE DEST 
    258138 
    259         Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY 
    260  
    261                 -a      Same as -dpR 
    262                 -R,-r   Recurse 
    263                 -d,-P   Preserve symlinks (default if -R) 
    264                 -L      Follow all symlinks 
    265                 -H      Follow symlinks on command line 
    266                 -p      Preserve file attributes if possible 
    267                 -f      Overwrite 
    268                 -i      Prompt before overwrite 
    269                 -l,-s   Create (sym)links 
    270  
    271139    cut cut [OPTIONS] [FILE]... 
    272  
    273         Print selected fields from each input FILE to stdout 
    274  
    275                 -b LIST Output only bytes from LIST 
    276                 -c LIST Output only characters from LIST 
    277                 -d CHAR Use CHAR instead of tab as the field delimiter 
    278                 -s      Output only the lines containing delimiter 
    279                 -f N    Print only these fields 
    280                 -n      Ignored 
    281140 
    282141    date 
    283142        date [OPTIONS] [+FMT] [TIME] 
    284143 
    285         Display time (using +FMT), or set time 
    286  
    287                 [-s] TIME       Set time to TIME 
    288                 -u              Work in UTC (don't convert to local time) 
    289                 -R              Output RFC-2822 compliant date string 
    290                 -I[SPEC]        Output ISO-8601 compliant date string 
    291                                 SPEC='date' (default) for date only, 
    292                                 'hours', 'minutes', or 'seconds' for date and 
    293                                 time to the indicated precision 
    294                 -r FILE         Display last modification time of FILE 
    295                 -d TIME         Display TIME, not 'now' 
    296                 -D FMT          Use FMT for -d TIME conversion 
    297  
    298         Recognized TIME formats: 
    299  
    300                 hh:mm[:ss] 
    301                 [YYYY.]MM.DD-hh:mm[:ss] 
    302                 YYYY-MM-DD hh:mm[:ss] 
    303                 [[[[[YY]YY]MM]DD]hh]mm[.ss] 
    304  
    305144    dc  dc EXPRESSION... 
    306145 
    307         Tiny RPN calculator. Operations: +, add, -, sub, *, mul, /, div, %, 
    308         mod, and, or, not, eor, p - print top of the stack (without 
    309         popping), f - print entire stack, o - pop the value and set output 
    310         radix (must be 10, 16, 8 or 2). Examples: 'dc 2 2 add p' -> 4, 'dc 8 
    311         8 * 2 2 + / p' -> 16 
    312  
    313     dd  dd [if=FILE] [of=FILE] [ibs=N] [obs=N] [bs=N] [count=N] [skip=N] 
    314         [seek=N] [conv=notrunc|noerror|sync|fsync] 
    315  
    316         Copy a file with converting and formatting 
    317  
    318                 if=FILE         Read from FILE instead of stdin 
    319                 of=FILE         Write to FILE instead of stdout 
    320                 bs=N            Read and write N bytes at a time 
    321                 ibs=N           Read N bytes at a time 
    322                 obs=N           Write N bytes at a time 
    323                 count=N         Copy only N input blocks 
    324                 skip=N          Skip N input blocks 
    325                 seek=N          Skip N output blocks 
    326                 conv=notrunc    Don't truncate output file 
    327                 conv=noerror    Continue after read errors 
    328                 conv=sync       Pad blocks with zeros 
    329                 conv=fsync      Physically write data out before finishing 
    330  
    331         Numbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k 
    332         (x1024), MD (x1000000), M (x1048576), GD (x1000000000) or G 
    333         (x1073741824) 
     146    dd  dd [if=FILE] [of=FILE] [bs=N] [count=N] [skip=N] [seek=N] 
    334147 
    335148    df  df [-Pkmhai] [-B SIZE] [FILESYSTEM]... 
    336  
    337         Print filesystem usage statistics 
    338  
    339                 -P      POSIX output format 
    340                 -k      1024-byte blocks (default) 
    341                 -m      1M-byte blocks 
    342                 -h      Human readable (e.g. 1K 243M 2G) 
    343                 -a      Show all filesystems 
    344                 -i      Inodes 
    345                 -B SIZE Blocksize 
    346149 
    347150    dirname 
    348151        dirname FILENAME 
    349152 
    350         Strip non-directory suffix from FILENAME 
    351  
    352153    dmesg 
    353154        dmesg [-c] [-n LEVEL] [-s SIZE] 
    354155 
    355         Print or control the kernel ring buffer 
    356  
    357                 -c              Clear ring buffer after printing 
    358                 -n LEVEL        Set console logging level 
    359                 -s SIZE         Buffer size 
    360  
    361156    du  du [-aHLdclsxhmk] [FILE]... 
    362  
    363         Summarize disk space used for each FILE and/or directory. Disk space 
    364         is printed in units of 1024 bytes. 
    365  
    366                 -a      Show file sizes too 
    367                 -L      Follow all symlinks 
    368                 -H      Follow symlinks on command line 
    369                 -d N    Limit output to directories (and files with -a) of depth < N 
    370                 -c      Show grand total 
    371                 -l      Count sizes many times if hard linked 
    372                 -s      Display only a total for each argument 
    373                 -x      Skip directories on different filesystems 
    374                 -h      Sizes in human readable format (e.g., 1K 243M 2G ) 
    375                 -m      Sizes in megabytes 
    376                 -k      Sizes in kilobytes (default) 
    377157 
    378158    echo 
    379159        echo [-neE] [ARG]... 
    380160 
    381         Print the specified ARGs to stdout 
    382  
    383                 -n      Suppress trailing newline 
    384                 -e      Interpret backslash escapes (i.e., \t=tab) 
    385                 -E      Don't interpret backslash escapes (default) 
    386  
    387161    env env [-iu] [-] [name=value]... [PROG ARGS] 
    388  
    389         Print the current environment or run PROG after setting up the 
    390         specified environment 
    391  
    392                 -, -i   Start with an empty environment 
    393                 -u      Remove variable from the environment 
    394162 
    395163    expr 
    396164        expr EXPRESSION 
    397165 
    398         Print the value of EXPRESSION to stdout 
    399  
    400         EXPRESSION may be: 
    401  
    402                 ARG1 | ARG2     ARG1 if it is neither null nor 0, otherwise ARG2 
    403                 ARG1 & ARG2     ARG1 if neither argument is null or 0, otherwise 0 
    404                 ARG1 < ARG2     1 if ARG1 is less than ARG2, else 0. Similarly: 
    405                 ARG1 <= ARG2 
    406                 ARG1 = ARG2 
    407                 ARG1 != ARG2 
    408                 ARG1 >= ARG2 
    409                 ARG1 > ARG2 
    410                 ARG1 + ARG2     Sum of ARG1 and ARG2. Similarly: 
    411                 ARG1 - ARG2 
    412                 ARG1 * ARG2 
    413                 ARG1 / ARG2 
    414                 ARG1 % ARG2 
    415                 STRING : REGEXP         Anchored pattern match of REGEXP in STRING 
    416                 match STRING REGEXP     Same as STRING : REGEXP 
    417                 substr STRING POS LENGTH Substring of STRING, POS counted from 1 
    418                 index STRING CHARS      Index in STRING where any CHARS is found, or 0 
    419                 length STRING           Length of STRING 
    420                 quote TOKEN             Interpret TOKEN as a string, even if 
    421                                         it is a keyword like 'match' or an 
    422                                         operator like '/' 
    423                 (EXPRESSION)            Value of EXPRESSION 
    424  
    425         Beware that many operators need to be escaped or quoted for shells. 
    426         Comparisons are arithmetic if both ARGs are numbers, else 
    427         lexicographical. Pattern matches return the string matched between 
    428         \( and \) or null; if \( and \) are not used, they return the number 
    429         of characters matched or 0. 
    430  
    431166    false 
    432167        false 
    433168 
    434         Return an exit code of FALSE (1) 
    435  
    436     fdisk 
    437         fdisk [-ul] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK 
    438  
    439         Change partition table 
    440  
    441                 -u              Start and End are in sectors (instead of cylinders) 
    442                 -l              Show partition table for each DISK, then exit 
    443                 -b 2048         (for certain MO disks) use 2048-byte sectors 
    444                 -C CYLINDERS    Set number of cylinders/heads/sectors 
    445                 -H HEADS 
    446                 -S SECTORS 
    447  
    448169    find 
    449170        find [PATH]... [OPTIONS] [ACTIONS] 
    450171 
    451         Search for files and perform actions on them. First failed action 
    452         stops processing of current file. Defaults: PATH is current 
    453         directory, action is '-print' 
    454  
    455                 -follow         Follow symlinks 
    456                 -xdev           Don't descend directories on other filesystems 
    457  
    458         Actions: 
    459  
    460                 ACT1 [-a] ACT2  If ACT1 fails, stop, else do ACT2 
    461                 ACT1 -o ACT2    If ACT1 succeeds, stop, else do ACT2 
    462                                 Note: -a has higher priority than -o 
    463                 -name PATTERN   Match file name (w/o directory name) to PATTERN 
    464                 -iname PATTERN  Case insensitive -name 
    465                 -type X         File type is X (one of: f,d,l,b,c,...) 
    466                 -perm MASK      At least one mask bit (+MASK), all bits (-MASK), 
    467                                 or exactly MASK bits are set in file's mode 
    468                 -mtime DAYS     mtime is greater than (+N), less than (-N), 
    469                                 or exactly N days in the past 
    470                 -newer FILE     mtime is more recent than FILE's 
    471                 -inum N         File has inode number N 
    472         If none of the following actions is specified, -print is assumed 
    473                 -print          Print file name 
    474                 -print0         Print file name, NUL terminated 
    475                 -exec CMD ARG ; Run CMD with all instances of {} replaced by 
    476                                 file name. Fails if CMD exits with nonzero 
    477  
    478172    free 
    479173        free 
    480174 
    481         Display the amount of free and used system memory 
    482  
    483     fsck 
    484         fsck [-ANPRTV] [-C FD] [-t FSTYPE] [FS_OPTS] [BLOCKDEV]... 
    485  
    486         Check and repair filesystems 
    487  
    488                 -A      Walk /etc/fstab and check all filesystems 
    489                 -N      Don't execute, just show what would be done 
    490                 -P      With -A, check filesystems in parallel 
    491                 -R      With -A, skip the root filesystem 
    492                 -T      Don't show title on startup 
    493                 -V      Verbose 
    494                 -C n    Write status information to specified filedescriptor 
    495                 -t TYPE List of filesystem types to check 
    496  
    497175    ftpget 
    498176        ftpget [OPTIONS] HOST [LOCAL_FILE] REMOTE_FILE 
    499177 
    500         Retrieve a remote file via FTP 
    501  
    502                 -c      Continue previous transfer 
    503                 -v      Verbose 
    504                 -u      Username 
    505                 -p      Password 
    506                 -P      Port number 
    507  
    508178    ftpput 
    509179        ftpput [OPTIONS] HOST [REMOTE_FILE] LOCAL_FILE 
    510180 
    511         Store a local file on a remote machine via FTP 
    512  
    513                 -v      Verbose 
    514                 -u      Username 
    515                 -p      Password 
    516                 -P      Port number 
    517  
    518181    getopt 
    519182        getopt [OPTIONS] 
    520  
    521                 -a              Allow long options starting with single - 
    522                 -l longopts     Long options to be recognized 
    523                 -n progname     The name under which errors are reported 
    524                 -o optstring    Short options to be recognized 
    525                 -q              Disable error reporting by getopt(3) 
    526                 -Q              No normal output 
    527                 -s shell        Set shell quoting conventions 
    528                 -T              Test for getopt(1) version 
    529                 -u              Don't quote the output 
    530183 
    531184    grep 
     
    533186        FILE [FILE]... 
    534187 
    535         Search for PATTERN in FILEs (or stdin) 
    536  
    537                 -H      Add 'filename:' prefix 
    538                 -h      Do not add 'filename:' prefix 
    539                 -n      Add 'line_no:' prefix 
    540                 -l      Show only names of files that match 
    541                 -L      Show only names of files that don't match 
    542                 -c      Show only count of matching lines 
    543                 -o      Show only the matching part of line 
    544                 -q      Quiet. Return 0 if PATTERN is found, 1 otherwise 
    545                 -v      Select non-matching lines 
    546                 -s      Suppress open and read errors 
    547                 -r      Recurse 
    548                 -i      Ignore case 
    549                 -w      Match whole words only 
    550                 -F      PATTERN is a literal (not regexp) 
    551                 -E      PATTERN is an extended regexp 
    552                 -m N    Match up to N times per file 
    553                 -A N    Print N lines of trailing context 
    554                 -B N    Print N lines of leading context 
    555                 -C N    Same as '-A N -B N' 
    556                 -e PTRN Pattern to match 
    557                 -f FILE Read pattern from file 
    558  
    559188    gunzip 
    560189        gunzip [-cft] [FILE]... 
    561190 
    562         Decompress FILEs (or stdin) 
    563  
    564                 -c      Write to stdout 
    565                 -f      Force 
    566                 -t      Test file integrity 
    567  
    568191    gzip 
    569192        gzip [-cfd] [FILE]... 
    570193 
    571         Compress FILEs (or stdin) 
    572  
    573                 -d      Decompress 
    574                 -c      Write to stdout 
    575                 -f      Force 
    576  
    577194    halt 
    578195        halt [-d DELAY] [-n] [-f] 
    579196 
    580         Halt the system 
    581  
    582                 -d SEC  Delay interval 
    583                 -n      Do not sync 
    584                 -f      Force (don't go through init) 
    585  
    586197    head 
    587198        head [OPTIONS] [FILE]... 
    588199 
    589         Print first 10 lines of each FILE (or stdin) to stdout. With more 
    590         than one FILE, precede each with a filename header. 
    591  
    592                 -n N[kbm]       Print first N lines 
    593                 -c N[kbm]       Print first N bytes 
    594                 -q              Never print headers 
    595                 -v              Always print headers 
    596  
    597         N may be suffixed by k (x1024), b (x512), or m (x1024^2). 
    598  
    599200    hexdump 
    600201        hexdump [-bcCdefnosvx] [FILE]... 
    601202 
    602         Display FILEs (or stdin) in a user specified format 
    603  
    604                 -b              One-byte octal display 
    605                 -c              One-byte character display 
    606                 -C              Canonical hex+ASCII, 16 bytes per line 
    607                 -d              Two-byte decimal display 
    608                 -e FORMAT_STRING 
    609                 -f FORMAT_FILE 
    610                 -n LENGTH       Interpret only LENGTH bytes of input 
    611                 -o              Two-byte octal display 
    612                 -s OFFSET       Skip OFFSET bytes 
    613                 -v              Display all input data 
    614                 -x              Two-byte hexadecimal display 
    615  
    616203    hostname 
    617204        hostname [OPTIONS] [HOSTNAME | -F FILE] 
    618205 
    619         Get or set hostname or DNS domain name 
    620  
    621                 -s      Short 
    622                 -i      Addresses for the hostname 
    623                 -d      DNS domain name 
    624                 -f      Fully qualified domain name 
    625                 -F FILE Use FILE's content as hostname 
    626  
    627     hwclock 
    628         hwclock [-r] [-s] [-w] [-t] [-l] [-u] [-f FILE] 
    629  
    630         Query and set hardware clock (RTC) 
    631  
    632                 -r      Show hardware clock time 
    633                 -s      Set system time from hardware clock 
    634                 -w      Set hardware clock from system time 
    635                 -t      Set in-kernel timezone, correct system time 
    636                         if hardware clock is in local time 
    637                 -u      Assume hardware clock is kept in UTC 
    638                 -l      Assume hardware clock is kept in local time 
    639                 -f FILE Use specified device (e.g. /dev/rtc2) 
    640  
    641206    id  id [OPTIONS] [USER] 
    642  
    643         Print information about USER or the current user 
    644  
    645                 -u      User ID 
    646                 -g      Group ID 
    647                 -G      Supplementary group IDs 
    648                 -n      Print names instead of numbers 
    649                 -r      Print real ID instead of effective ID 
    650207 
    651208    ifconfig 
    652209        ifconfig [-a] interface [address] 
    653210 
    654         Configure a network interface 
    655  
    656                 [add ADDRESS[/PREFIXLEN]] 
    657                 [del ADDRESS[/PREFIXLEN]] 
    658                 [[-]broadcast [ADDRESS]] [[-]pointopoint [ADDRESS]] 
    659                 [netmask ADDRESS] [dstaddr ADDRESS] 
    660                 [outfill NN] [keepalive NN] 
    661                 [hw ether ADDRESS] [metric NN] [mtu NN] 
    662                 [[-]trailers] [[-]arp] [[-]allmulti] 
    663                 [multicast] [[-]promisc] [txqueuelen NN] [[-]dynamic] 
    664                 [mem_start NN] [io_addr NN] [irq NN] 
    665                 [up|down] ... 
    666  
    667211    ifdown 
    668212        ifdown [-anvf] [-i FILE] IFACE... 
    669213 
    670                 -a      De/configure all interfaces automatically 
    671                 -i FILE Use FILE for interface definitions 
    672                 -n      Print out what would happen, but don't do it 
    673                 -v      Print out what would happen before doing it 
    674                 -f      Force de/configuration 
    675  
    676214    ifup 
    677215        ifup [-anvf] [-i FILE] IFACE... 
    678216 
    679                 -a      De/configure all interfaces automatically 
    680                 -i FILE Use FILE for interface definitions 
    681                 -n      Print out what would happen, but don't do it 
    682                 -v      Print out what would happen before doing it 
    683                 -f      Force de/configuration 
    684  
    685217    insmod 
    686218        insmod [OPTIONS] MODULE [SYMBOL=VALUE]... 
    687219 
    688         Load the specified kernel modules into the kernel 
    689  
    690                 -f      Force module to load into the wrong kernel version 
    691                 -k      Make module autoclean-able 
    692                 -v      Verbose 
    693                 -q      Quiet 
    694                 -L      Lock: prevent simultaneous loads 
    695                 -x      Don't export externs 
    696  
    697220    install 
    698221        install [-cdDsp] [-o USER] [-g GRP] [-m MODE] [SOURCE]... DEST 
    699222 
    700         Copy files and set attributes 
    701  
    702                 -c      Just copy (default) 
    703                 -d      Create directories 
    704                 -D      Create leading target directories 
    705                 -s      Strip symbol table 
    706                 -p      Preserve date 
    707                 -o USER Set ownership 
    708                 -g GRP  Set group ownership 
    709                 -m MODE Set permissions 
    710  
    711223    kill 
    712224        kill [-l] [-SIG] PID... 
    713225 
    714         Send a signal (default: TERM) to given PIDs 
    715  
    716                 -l      List all signal names and numbers 
    717  
    718226    killall 
    719227        killall [-l] [-q] [-SIG] PROCESS_NAME... 
    720228 
    721         Send a signal (default: TERM) to given processes 
    722  
    723                 -l      List all signal names and numbers 
    724                 -q      Don't complain if no processes were killed 
    725  
    726229    klogd 
    727230        klogd [-c N] [-n] 
    728231 
    729         Kernel logger 
    730  
    731                 -c N    Print to console messages more urgent than prio N (1-8) 
    732                 -n      Run in foreground 
    733  
    734232    less 
    735233        less [-EMNmh~I?] [FILE]... 
    736234 
    737         View FILE (or stdin) one screenful at a time 
    738  
    739                 -E      Quit once the end of a file is reached 
    740                 -M,-m   Display status line with line numbers 
    741                         and percentage through the file 
    742                 -N      Prefix line number to each line 
    743                 -I      Ignore case in all searches 
    744                 -~      Suppress ~s displayed past the end of the file 
    745  
    746235    ln  ln [OPTIONS] TARGET... LINK|DIR 
    747  
    748         Create a link LINK or DIR/TARGET to the specified TARGET(s) 
    749  
    750                 -s      Make symlinks instead of hardlinks 
    751                 -f      Remove existing destinations 
    752                 -n      Don't dereference symlinks - treat like normal file 
    753                 -b      Make a backup of the target (if exists) before link operation 
    754                 -S suf  Use suffix instead of ~ when making backup files 
    755236 
    756237    logger 
    757238        logger [OPTIONS] [MESSAGE] 
    758239 
    759         Write MESSAGE (or stdin) to syslog 
    760  
    761                 -s      Log to stderr as well as the system log 
    762                 -t TAG  Log using the specified tag (defaults to user name) 
    763                 -p PRIO Priority (numeric or facility.level pair) 
    764  
    765240    login 
    766241        login [-p] [-h HOST] [[-f] USER] 
    767242 
    768         Begin a new session on the system 
    769  
    770                 -f      Don't authenticate (user already authenticated) 
    771                 -h      Name of the remote host 
    772                 -p      Preserve environment 
    773  
    774243    logread 
    775244        logread [-f] 
    776245 
    777         Show messages in syslogd's circular buffer 
    778  
    779                 -f      Output data as log grows 
    780  
    781246    ls  ls [-1AaCxdLHRFplinsehrSXvctu] [-w WIDTH] [FILE]... 
    782  
    783         List directory contents 
    784  
    785                 -1      One column output 
    786                 -a      Include entries which start with . 
    787                 -A      Like -a, but exclude . and .. 
    788                 -C      List by columns 
    789                 -x      List by lines 
    790                 -d      List directory entries instead of contents 
    791                 -L      Follow symlinks 
    792                 -H      Follow symlinks on command line 
    793                 -R      Recurse 
    794                 -p      Append / to dir entries 
    795                 -F      Append indicator (one of */=@|) to entries 
    796                 -l      Long listing format 
    797                 -i      List inode numbers 
    798                 -n      List numeric UIDs and GIDs instead of names 
    799                 -s      List allocated blocks 
    800                 -e      List full date and time 
    801                 -h      List sizes in human readable format (1K 243M 2G) 
    802                 -r      Sort in reverse order 
    803                 -S      Sort by size 
    804                 -X      Sort by extension 
    805                 -v      Sort by version 
    806                 -c      With -l: sort by ctime 
    807                 -t      With -l: sort by mtime 
    808                 -u      With -l: sort by atime 
    809                 -w N    Assume the terminal is N columns wide 
    810  
    811     lsattr 
    812         lsattr [-Radlv] [FILE]... 
    813  
    814         List file attributes on an ext2 fs 
    815  
    816                 -R      Recurse 
    817                 -a      Don't hide entries starting with . 
    818                 -d      List directory entries instead of contents 
    819                 -l      List long flag names 
    820                 -v      List the file's version/generation number 
    821247 
    822248    lsmod 
    823249        lsmod 
    824250 
    825         List the currently loaded kernel modules 
    826  
    827     lzcat 
    828         lzcat FILE 
    829  
    830         Decompress to stdout 
    831  
    832251    md5sum 
    833252        md5sum [FILE]... 
    834253 
    835         Print MD5 checksums 
    836  
    837254    mesg 
    838255        mesg [y|n] 
    839256 
    840         Control write access to your terminal y Allow write access to your 
    841         terminal n Disallow write access to your terminal 
    842  
    843257    mkdir 
    844258        mkdir [OPTIONS] DIRECTORY... 
    845  
    846         Create DIRECTORY 
    847  
    848                 -m MODE Mode 
    849                 -p      No error if exists; make parent directories as needed 
    850  
    851     mkdosfs 
    852         mkdosfs [-v] [-n LABEL] BLOCKDEV [KBYTES] 
    853  
    854         Make a FAT32 filesystem 
    855  
    856                 -v      Verbose 
    857                 -n LBL  Volume label 
    858259 
    859260    mke2fs 
     
    861262        RESERVED_PERCENT] [-L LABEL] BLOCKDEV [KBYTES] 
    862263 
    863                 -b BLK_SIZE     Block size, bytes 
    864                 -F              Force 
    865                 -i RATIO        Max number of files is filesystem_size / RATIO 
    866                 -I BYTES        Inode size (min 128) 
    867                 -L LBL          Volume label 
    868                 -m PERCENT      Percent of blocks to reserve for admin 
    869                 -n              Dry run 
    870  
    871264    mkfifo 
    872265        mkfifo [-m MODE] NAME 
    873  
    874         Create named pipe 
    875  
    876                 -m MODE Mode (default a=rw) 
    877266 
    878267    mkfs.ext2 
     
    880269        RESERVED_PERCENT] [-L LABEL] BLOCKDEV [KBYTES] 
    881270 
    882                 -b BLK_SIZE     Block size, bytes 
    883                 -F              Force 
    884                 -i RATIO        Max number of files is filesystem_size / RATIO 
    885                 -I BYTES        Inode size (min 128) 
    886                 -L LBL          Volume label 
    887                 -m PERCENT      Percent of blocks to reserve for admin 
    888                 -n              Dry run 
    889  
    890     mkfs.vfat 
    891         mkfs.vfat [-v] [-n LABEL] BLOCKDEV [KBYTES] 
    892  
    893         Make a FAT32 filesystem 
    894  
    895                 -v      Verbose 
    896                 -n LBL  Volume label 
    897  
    898     mknod 
    899         mknod [-m MODE] NAME TYPE MAJOR MINOR 
    900  
    901         Create a special file (block, character, or pipe) 
    902  
    903                 -m MODE Creation mode (default a=rw) 
    904         TYPE: 
    905                 b       Block device 
    906                 c or u  Character device 
    907                 p       Named pipe (MAJOR and MINOR are ignored) 
    908  
    909271    more 
    910272        more [FILE]... 
    911273 
    912         View FILE (or stdin) one screenful at a time 
    913  
    914274    mount 
    915275        mount [OPTIONS] [-o OPTS] DEVICE NODE 
    916276 
    917         Mount a filesystem. Filesystem autodetection requires /proc. 
    918  
    919                 -a              Mount all filesystems in fstab 
    920                 -r              Read-only mount 
    921                 -w              Read-write mount (default) 
    922                 -t FSTYPE       Filesystem type 
    923                 -O OPT          Mount only filesystems with option OPT (-a only) 
    924         -o OPT: 
    925                 loop            Ignored (loop devices are autodetected) 
    926                 [a]sync         Writes are [a]synchronous 
    927                 [no]atime       Disable/enable updates to inode access times 
    928                 [no]diratime    Disable/enable atime updates to directories 
    929                 [no]relatime    Disable/enable atime updates relative to modification time 
    930                 [no]dev         (Dis)allow use of special device files 
    931                 [no]exec        (Dis)allow use of executable files 
    932                 [no]suid        (Dis)allow set-user-id-root programs 
    933                 [r]shared       Convert [recursively] to a shared subtree 
    934                 [r]slave        Convert [recursively] to a slave subtree 
    935                 [r]private      Convert [recursively] to a private subtree 
    936                 [un]bindable    Make mount point [un]able to be bind mounted 
    937                 [r]bind         Bind a file or directory [recursively] to another location 
    938                 move            Relocate an existing mount point 
    939                 remount         Remount a mounted filesystem, changing flags 
    940                 ro/rw           Same as -r/-w 
    941  
    942         There are filesystem-specific -o flags. 
    943  
    944277    mv  mv [-fin] SOURCE DEST or: mv [-fin] SOURCE... DIRECTORY 
    945  
    946         Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY 
    947  
    948                 -f      Don't prompt before overwriting 
    949                 -i      Interactive, prompt before overwrite 
    950                 -n      Don't overwrite an existing file 
    951278 
    952279    nameif 
    953280        nameif [-s] [-c FILE] [IFNAME HWADDR]... 
    954281 
    955         Rename network interface while it in the down state. The device with 
    956         address HWADDR is renamed to IFACE. 
    957  
    958                 -c FILE Configuration file (default: /etc/mactab) 
    959                 -s      Log to syslog 
    960  
    961282    nc  nc [-iN] [-wN] [-l] [-p PORT] [-f FILE|IPADDR PORT] [-e PROG] 
    962  
    963         Open a pipe to IP:PORT or FILE 
    964  
    965                 -e PROG Run PROG after connect 
    966                 -l      Listen mode, for inbound connects 
    967                         (use -l twice with -e for persistent server) 
    968                 -p PORT Local port 
    969                 -w SEC  Timeout for connect 
    970                 -i SEC  Delay interval for lines sent 
    971                 -f FILE Use file (ala /dev/ttyS0) instead of network 
    972283 
    973284    netstat 
    974285        netstat [-ral] [-tuwx] [-en] 
    975286 
    976         Display networking information 
    977  
    978                 -r      Routing table 
    979                 -a      All sockets 
    980                 -l      Listening sockets 
    981                         Else: connected sockets 
    982                 -t      TCP sockets 
    983                 -u      UDP sockets 
    984                 -w      Raw sockets 
    985                 -x      Unix sockets 
    986                         Else: all socket types 
    987                 -e      Other/more information 
    988                 -n      Don't resolve names 
    989  
    990     nice 
    991         nice [-n ADJUST] [PROG ARGS] 
    992  
    993         Change scheduling priority, run PROG 
    994  
    995                 -n ADJUST       Adjust priority by ADJUST 
    996  
    997287    nohup 
    998288        nohup PROG ARGS 
    999289 
    1000         Run PROG immune to hangups, with output to a non-tty 
    1001  
    1002290    nslookup 
    1003291        nslookup [HOST] [SERVER] 
    1004292 
    1005         Query the nameserver for the IP address of the given HOST optionally 
    1006         using a specified DNS server 
    1007  
    1008293    pidof 
    1009294        pidof [OPTIONS] [NAME]... 
    1010295 
    1011         List PIDs of all processes with names that match NAMEs 
    1012  
    1013                 -s      Show only one PID 
    1014                 -o PID  Omit given pid 
    1015                         Use %PPID to omit pid of pidof's parent 
    1016  
    1017296    ping 
    1018297        ping [OPTIONS] HOST 
    1019298 
    1020         Send ICMP ECHO_REQUEST packets to network hosts 
    1021  
    1022                 -4,-6           Force IP or IPv6 name resolution 
    1023                 -c CNT          Send only CNT pings 
    1024                 -s SIZE         Send SIZE data bytes in packets (default:56) 
    1025                 -t TTL          Set TTL 
    1026                 -I IFACE/IP     Use interface or IP address as source 
    1027                 -W SEC          Seconds to wait for the first response (default:10) 
    1028                                 (after all -c CNT packets are sent) 
    1029                 -w SEC          Seconds until ping exits (default:infinite) 
    1030                                 (can exit earlier with -c CNT) 
    1031                 -q              Quiet, only displays output at start 
    1032                                 and when finished 
    1033  
    1034     ping6 
    1035         ping6 [OPTIONS] HOST 
    1036  
    1037         Send ICMP ECHO_REQUEST packets to network hosts 
    1038  
    1039                 -c CNT          Send only CNT pings 
    1040                 -s SIZE         Send SIZE data bytes in packets (default:56) 
    1041                 -I IFACE/IP     Use interface or IP address as source 
    1042                 -q              Quiet, only displays output at start 
    1043                                 and when finished 
    1044  
    1045299    pivot_root 
    1046300        pivot_root NEW_ROOT PUT_OLD 
    1047301 
    1048         Move the current root file system to PUT_OLD and make NEW_ROOT the 
    1049         new root file system 
    1050  
    1051302    poweroff 
    1052303        poweroff [-d DELAY] [-n] [-f] 
    1053304 
    1054         Halt and shut off power 
    1055  
    1056                 -d SEC  Delay interval 
    1057                 -n      Do not sync 
    1058                 -f      Force (don't go through init) 
    1059  
    1060     printenv 
    1061         printenv [VARIABLE]... 
    1062  
    1063         Print environment VARIABLEs. If no VARIABLE specified, print all. 
    1064  
    1065305    printf 
    1066306        printf FORMAT [ARGUMENT]... 
    1067307 
    1068         Format and print ARGUMENT(s) according to FORMAT, where FORMAT 
    1069         controls the output exactly as in C printf 
    1070  
    1071308    ps  ps 
    1072309 
    1073         Show list of processes 
    1074  
    1075                 w       Wide output 
    1076  
    1077310    pwd pwd 
    1078  
    1079         Print the full filename of the current working directory 
    1080311 
    1081312    reboot 
    1082313        reboot [-d DELAY] [-n] [-f] 
    1083314 
    1084         Reboot the system 
    1085  
    1086                 -d SEC  Delay interval 
    1087                 -n      Do not sync 
    1088                 -f      Force (don't go through init) 
    1089  
    1090     renice 
    1091         renice {{-n INCREMENT} | PRIORITY} [[-p | -g | -u] ID...] 
    1092  
    1093         Change scheduling priority for a running process 
    1094  
    1095                 -n      Adjust current nice value (smaller is faster) 
    1096                 -p      Process id(s) (default) 
    1097                 -g      Process group id(s) 
    1098                 -u      Process user name(s) and/or id(s) 
    1099  
    1100315    reset 
    1101316        reset 
    1102317 
    1103         Reset the screen 
    1104  
    1105318    rm  rm [-irf] FILE... 
    1106  
    1107         Remove (unlink) FILEs 
    1108  
    1109                 -i      Always prompt before removing 
    1110                 -f      Never prompt 
    1111                 -R,-r   Recurse 
    1112319 
    1113320    rmdir 
    1114321        rmdir [OPTIONS] DIRECTORY... 
    1115322 
    1116         Remove DIRECTORY if it is empty 
    1117  
    1118                 -p      Include parents 
    1119  
    1120323    rmmod 
    1121324        rmmod [-wfa] [MODULE]... 
    1122325 
    1123         Unload kernel modules 
    1124  
    1125                 -w      Wait until the module is no longer used 
    1126                 -f      Force unload 
    1127                 -a      Remove all unused modules (recursively) 
    1128  
    1129326    route 
    1130327        route [{add|del|delete}] 
    1131328 
    1132         Edit kernel routing tables 
    1133  
    1134                 -n      Don't resolve names 
    1135                 -e      Display other/more information 
    1136                 -A inet{6}      Select address family 
    1137  
    1138329    run-parts 
    1139330        run-parts [-t] [-a ARG] [-u MASK] DIRECTORY 
    1140331 
    1141         Run a bunch of scripts in DIRECTORY 
    1142  
    1143                 -t      Print what would be run, but don't actually run anything 
    1144                 -a ARG  Pass ARG as argument for every program 
    1145                 -u MASK Set the umask to MASK before running every program 
    1146  
    1147332    rx  rx FILE 
    1148333 
    1149         Receive a file using the xmodem protocol 
    1150  
    1151334    sed sed [-efinr] SED_CMD [FILE]... 
    1152  
    1153                 -e CMD  Add CMD to sed commands to be executed 
    1154                 -f FILE Add FILE contents to sed commands to be executed 
    1155                 -i      Edit files in-place (else sends result to stdout) 
    1156                 -n      Suppress automatic printing of pattern space 
    1157                 -r      Use extended regex syntax 
    1158  
    1159         If no -e or -f, the first non-option argument is the sed command 
    1160         string. Remaining arguments are input files (stdin if none). 
    1161335 
    1162336    sendmail 
    1163337        sendmail [OPTIONS] [RECIPIENT_EMAIL]... 
    1164338 
    1165         Read email from stdin and send it 
    1166  
    1167         Standard options: 
    1168  
    1169                 -t              Read additional recipients from message body 
    1170                 -f SENDER       Sender (required) 
    1171                 -o OPTIONS      Various options. -oi implied, others are ignored 
    1172                 -i              -oi synonym. implied and ignored 
    1173  
    1174         Busybox specific options: 
    1175  
    1176                 -v              Verbose 
    1177                 -w SECS         Network timeout 
    1178                 -H 'PROG ARGS'  Run connection helper 
    1179                                 Examples: 
    1180                                 -H 'exec openssl s_client -quiet -tls1 -starttls smtp 
    1181                                         -connect smtp.gmail.com:25' <email.txt 
    1182                                         [4<username_and_passwd.txt | -au<username> -ap<password>] 
    1183                                 -H 'exec openssl s_client -quiet -tls1 
    1184                                         -connect smtp.gmail.com:465' <email.txt 
    1185                                         [4<username_and_passwd.txt | -au<username> -ap<password>] 
    1186                 -S HOST[:PORT]  Server 
    1187                 -au<username>   Username for AUTH LOGIN 
    1188                 -ap<password>   Password for AUTH LOGIN 
    1189                 -am<method>     Authentication method. Ignored. LOGIN is implied 
    1190  
    1191         Other options are silently ignored; -oi -t is implied 
    1192  
    1193339    sh  sh [-/+OPTIONS] [-/+o OPT]... [-c 'SCRIPT' [ARG0 [ARGS]] / FILE 
    1194340        [ARGS]] 
    1195341 
    1196         Unix shell interpreter 
    1197  
    1198     sha1sum 
    1199         sha1sum [FILE]... 
    1200  
    1201         Print SHA1 checksums 
    1202  
    1203342    sleep 
    1204343        sleep [N]... 
    1205  
    1206         Pause for a time equal to the total of the args given, where each 
    1207         arg can have an optional suffix of (s)econds, (m)inutes, (h)ours, or 
    1208         (d)ays 
    1209344 
    1210345    sort 
     
    1212347        start[.offset][opts][,end[.offset][opts]] [-t CHAR] [FILE]... 
    1213348 
    1214         Sort lines of text 
    1215  
    1216                 -b      Ignore leading blanks 
    1217                 -c      Check whether input is sorted 
    1218                 -d      Dictionary order (blank or alphanumeric only) 
    1219                 -f      Ignore case 
    1220                 -g      General numerical sort 
    1221                 -i      Ignore unprintable characters 
    1222                 -k      Sort key 
    1223                 -M      Sort month 
    1224                 -n      Sort numbers 
    1225                 -o      Output to file 
    1226                 -k      Sort by key 
    1227                 -t CHAR Key separator 
    1228                 -r      Reverse sort order 
    1229                 -s      Stable (don't sort ties alphabetically) 
    1230                 -u      Suppress duplicate lines 
    1231                 -z      Lines are terminated by NUL, not newline 
    1232                 -mST    Ignored for GNU compatibility 
    1233  
    1234349    strings 
    1235350        strings [-afo] [-n LEN] [FILE]... 
    1236351 
    1237         Display printable strings in a binary file 
    1238  
    1239                 -a      Scan whole file (default) 
    1240                 -f      Precede strings with filenames 
    1241                 -n LEN  At least LEN characters form a string (default 4) 
    1242                 -o      Precede strings with decimal offsets 
    1243  
    1244352    stty 
    1245353        stty [-a|g] [-F DEVICE] [SETTING]... 
    1246354 
    1247         Without arguments, prints baud rate, line discipline, and deviations 
    1248         from stty sane 
    1249  
    1250                 -F DEVICE       Open device instead of stdin 
    1251                 -a              Print all current settings in human-readable form 
    1252                 -g              Print in stty-readable form 
    1253                 [SETTING]       See manpage 
    1254  
    1255355    sync 
    1256356        sync 
    1257357 
    1258         Write all buffered blocks to disk 
    1259  
    1260     sysctl 
    1261         sysctl [OPTIONS] [VALUE]... 
    1262  
    1263         Configure kernel parameters at runtime 
    1264  
    1265                 -n      Don't print key names 
    1266                 -e      Don't warn about unknown keys 
    1267                 -w      Change sysctl setting 
    1268                 -p FILE Load sysctl settings from FILE (default /etc/sysctl.conf) 
    1269                 -a      Display all values 
    1270                 -A      Display all values in table form 
    1271  
    1272358    syslogd 
    1273359        syslogd [OPTIONS] 
    1274360 
    1275         System logging utility (this version of syslogd ignores 
    1276         /etc/syslog.conf) 
    1277  
    1278                 -n              Run in foreground 
    1279                 -O FILE         Log to FILE (default:/var/log/messages) 
    1280                 -l N            Log only messages more urgent than prio N (1-8) 
    1281                 -S              Smaller output 
    1282                 -s SIZE         Max size (KB) before rotation (default:200KB, 0=off) 
    1283                 -b N            N rotated logs to keep (default:1, max=99, 0=purge) 
    1284                 -R HOST[:PORT]  Log to IP or hostname on PORT (default PORT=514/UDP) 
    1285                 -L              Log locally and via network (default is network only if -R) 
    1286                 -C[size_kb]     Log to shared mem buffer (use logread to read it) 
    1287  
    1288361    tail 
    1289362        tail [OPTIONS] [FILE]... 
    1290363 
    1291         Print last 10 lines of each FILE (or stdin) to stdout. With more 
    1292         than one FILE, precede each with a filename header. 
    1293  
    1294                 -f              Print data as file grows 
    1295                 -s SECONDS      Wait SECONDS between reads with -f 
    1296                 -n N[kbm]       Print last N lines 
    1297                 -c N[kbm]       Print last N bytes 
    1298                 -q              Never print headers 
    1299                 -v              Always print headers 
    1300  
    1301         N may be suffixed by k (x1024), b (x512), or m (x1024^2). If N 
    1302         starts with a '+', output begins with the Nth item from the start of 
    1303         each file, not from the end. 
    1304  
    1305     tar tar -[cxtzahvO] [-f TARFILE] [-C DIR] [FILE]... 
    1306  
    1307         Create, extract, or list files from a tar file 
    1308  
    1309         Operation: 
    1310  
    1311                 c       Create 
    1312                 x       Extract 
    1313                 t       List 
    1314                 f       Name of TARFILE ('-' for stdin/out) 
    1315                 C       Change to DIR before operation 
    1316                 v       Verbose 
    1317                 z       (De)compress using gzip 
    1318                 a       (De)compress using lzma 
    1319                 O       Extract to stdout 
    1320                 h       Follow symlinks 
     364    tar tar -[cxtzhvO] [-f TARFILE] [-C DIR] [FILE]... 
    1321365 
    1322366    tee tee [-ai] [FILE]... 
    1323  
    1324         Copy stdin to each FILE, and also to stdout 
    1325  
    1326                 -a      Append to the given FILEs, don't overwrite 
    1327                 -i      Ignore interrupt signals (SIGINT) 
    1328367 
    1329368    telnet 
    1330369        telnet [-a] [-l USER] HOST [PORT] 
    1331370 
    1332         Connect to telnet server 
    1333  
    1334                 -a      Automatic login with $USER variable 
    1335                 -l USER Automatic login as USER 
    1336  
    1337371    telnetd 
    1338372        telnetd [OPTIONS] 
    1339373 
    1340         Handle incoming telnet connections 
    1341  
    1342                 -l LOGIN        Exec LOGIN on connect 
    1343                 -f ISSUE_FILE   Display ISSUE_FILE instead of /etc/issue 
    1344                 -K              Close connection as soon as login exits 
    1345                                 (normally wait until all programs close slave pty) 
    1346                 -p PORT         Port to listen on 
    1347                 -b ADDR[:PORT]  Address to bind to 
    1348                 -F              Run in foreground 
    1349                 -i              Inetd mode 
    1350  
    1351374    test 
    1352375        test EXPRESSION ] 
    1353376 
    1354         Check file types, compare values etc. Return a 0/1 exit code 
    1355         depending on logical value of EXPRESSION 
    1356  
    1357     tftp 
    1358         tftp [OPTIONS] HOST [PORT] 
    1359  
    1360         Transfer a file from/to tftp server 
    1361  
    1362                 -l FILE Local FILE 
    1363                 -r FILE Remote FILE 
    1364                 -g      Get file 
    1365                 -p      Put file 
    1366                 -b SIZE Transfer blocks of SIZE octets 
    1367  
    1368377    time 
    1369378        time [-v] PROG ARGS 
    1370379 
    1371         Run PROG, display resource usage when it exits 
    1372  
    1373                 -v      Verbose 
    1374  
    1375380    top top [-b] [-nCOUNT] [-dSECONDS] [-m] 
    1376  
    1377         Provide a view of process activity in real time. Read the status of 
    1378         all processes from /proc each SECONDS and display a screenful of 
    1379         them. Keys: 
    1380  
    1381                 N/M/P/T: show CPU usage, sort by pid/mem/cpu/time 
    1382                 S: show memory 
    1383                 R: reverse sort 
    1384                 H: toggle threads, 1: toggle SMP 
    1385                 Q,^C: exit 
    1386  
    1387         Options: 
    1388  
    1389                 -b      Batch mode 
    1390                 -n N    Exit after N iterations 
    1391                 -d N    Delay between updates 
    1392                 -m      Same as 's' key 
    1393381 
    1394382    touch 
    1395383        touch [-c] FILE [FILE]... 
    1396384 
    1397         Update the last-modified date on the given FILE[s] 
    1398  
    1399                 -c      Don't create files 
    1400  
    1401385    tr  tr [-cds] STRING1 [STRING2] 
    1402386 
    1403         Translate, squeeze, or delete characters from stdin, writing to 
    1404         stdout 
    1405  
    1406                 -c      Take complement of STRING1 
    1407                 -d      Delete input characters coded STRING1 
    1408                 -s      Squeeze multiple output characters of STRING2 into one character 
    1409  
    1410387    traceroute 
    1411         traceroute [-46FIldnrv] [-f 1ST_TTL] [-m MAXTTL] [-p PORT] [-q 
    1412         PROBES] [-s SRC_IP] [-t TOS] [-w WAIT_SEC] [-g GATEWAY] [-i IFACE] 
    1413         [-z PAUSE_MSEC] HOST [BYTES] 
    1414  
    1415         Trace the route to HOST 
    1416  
    1417                 -4,-6   Force IP or IPv6 name resolution 
    1418                 -F      Set the don't fragment bit 
    1419                 -I      Use ICMP ECHO instead of UDP datagrams 
    1420                 -l      Display the TTL value of the returned packet 
    1421                 -d      Set SO_DEBUG options to socket 
    1422                 -n      Print numeric addresses 
    1423                 -r      Bypass routing tables, send directly to HOST 
    1424                 -v      Verbose 
    1425                 -m      Max time-to-live (max number of hops) 
    1426                 -p      Base UDP port number used in probes 
    1427                         (default 33434) 
    1428                 -q      Number of probes per TTL (default 3) 
    1429                 -s      IP address to use as the source address 
    1430                 -t      Type-of-service in probe packets (default 0) 
    1431                 -w      Time in seconds to wait for a response (default 3) 
    1432                 -g      Loose source route gateway (8 max) 
    1433  
    1434     traceroute6 
    1435         traceroute6 [-dnrv] [-m MAXTTL] [-p PORT] [-q PROBES] [-s SRC_IP] 
    1436         [-t TOS] [-w WAIT_SEC] [-i IFACE] HOST [BYTES] 
    1437  
    1438         Trace the route to HOST 
    1439  
    1440                 -d      Set SO_DEBUG options to socket 
    1441                 -n      Print numeric addresses 
    1442                 -r      Bypass routing tables, send directly to HOST 
    1443                 -v      Verbose 
    1444                 -m      Max time-to-live (max number of hops) 
    1445                 -p      Base UDP port number used in probes 
    1446                         (default is 33434) 
    1447                 -q      Number of probes per TTL (default 3) 
    1448                 -s      IP address to use as the source address 
    1449                 -t      Type-of-service in probe packets (default 0) 
    1450                 -w      Time in seconds to wait for a response (default 3) 
     388        traceroute [-FIldnrv] [-f 1ST_TTL] [-m MAXTTL] [-p PORT] [-q PROBES] 
     389        [-s SRC_IP] [-t TOS] [-w WAIT_SEC] [-g GATEWAY] [-i IFACE] [-z 
     390        PAUSE_MSEC] HOST [BYTES] 
    1451391 
    1452392    true 
    1453393        true 
    1454394 
    1455         Return an exit code of TRUE (0) 
    1456  
    1457395    tty tty 
    1458  
    1459         Print file name of stdin's terminal 
    1460  
    1461     tune2fs 
    1462         tune2fs [-c MOUNT_CNT] [-i DAYS] [-L LABEL] BLOCKDEV 
    1463  
    1464         Adjust filesystem options on ext[23] filesystems 
    1465396 
    1466397    umount 
    1467398        umount [OPTIONS] FILESYSTEM|DIRECTORY 
    1468399 
    1469         Unmount file systems 
    1470  
    1471                 -r      Try to remount devices as read-only if mount is busy 
    1472                 -l      Lazy umount (detach filesystem) 
    1473                 -f      Force umount (i.e., unreachable NFS server) 
    1474                 -d      Free loop device if it has been used 
    1475  
    1476400    uname 
    1477401        uname [-amnrspv] 
    1478402 
    1479         Print system information 
    1480  
    1481                 -a      Print all 
    1482                 -m      The machine (hardware) type 
    1483                 -n      Hostname 
    1484                 -r      OS release 
    1485                 -s      OS name (default) 
    1486                 -p      Processor type 
    1487                 -v      OS version 
    1488  
    1489403    uniq 
    1490404        uniq [-cdu][-f,s,w N] [INPUT [OUTPUT]] 
    1491405 
    1492         Discard duplicate lines 
    1493  
    1494                 -c      Prefix lines by the number of occurrences 
    1495                 -d      Only print duplicate lines 
    1496                 -u      Only print unique lines 
    1497                 -f N    Skip first N fields 
    1498                 -s N    Skip first N chars (after any skipped fields) 
    1499                 -w N    Compare N characters in line 
    1500  
    1501     unlzma 
    1502         unlzma [-cf] [FILE]... 
    1503  
    1504         Decompress FILE (or stdin) 
    1505  
    1506                 -c      Write to stdout 
    1507                 -f      Force 
    1508  
    1509406    uptime 
    1510407        uptime 
    1511408 
    1512         Display the time since the last boot 
    1513  
    1514409    usleep 
    1515410        usleep N 
    1516411 
    1517         Pause for N microseconds 
    1518  
    1519412    uudecode 
    1520413        uudecode [-o OUTFILE] [INFILE] 
    1521414 
    1522         Uudecode a file Finds outfile name in uuencoded source unless -o is 
    1523         given 
    1524  
    1525415    uuencode 
    1526416        uuencode [-m] [INFILE] STORED_FILENAME 
    1527417 
    1528         Uuencode a file to stdout 
    1529  
    1530                 -m      Use base64 encoding per RFC1521 
    1531  
    1532418    vconfig 
    1533419        vconfig COMMAND [OPTIONS] 
    1534420 
    1535         Create and remove virtual ethernet devices 
    1536  
    1537                 add             [interface-name] [vlan_id] 
    1538                 rem             [vlan-name] 
    1539                 set_flag        [interface-name] [flag-num] [0 | 1] 
    1540                 set_egress_map  [vlan-name] [skb_priority] [vlan_qos] 
    1541                 set_ingress_map [vlan-name] [skb_priority] [vlan_qos] 
    1542                 set_name_type   [name-type] 
    1543  
    1544421    vi  vi [OPTIONS] [FILE]... 
    1545  
    1546         Edit FILE 
    1547  
    1548                 -c      Initial command to run ($EXINIT also available) 
    1549                 -R      Read-only 
    1550                 -H      Short help regarding available features 
    1551422 
    1552423    watch 
    1553424        watch [-n SEC] [-t] PROG ARGS 
    1554425 
    1555         Run PROG periodically 
    1556  
    1557                 -n      Loop period in seconds (default 2) 
    1558                 -t      Don't print header 
    1559  
    1560426    wc  wc [-clwL] [FILE]... 
    1561  
    1562         Count lines, words, and bytes for each FILE (or stdin) 
    1563  
    1564                 -c      Count bytes 
    1565                 -l      Count newlines 
    1566                 -w      Count words 
    1567                 -L      Print longest line length 
    1568427 
    1569428    wget 
    1570429        wget [-csq] [-O FILE] [-Y on/off] [-P DIR] [-U AGENT] URL... 
    1571430 
    1572         Retrieve files via HTTP or FTP 
    1573  
    1574                 -s      Spider mode - only check file existence 
    1575                 -c      Continue retrieval of aborted transfer 
    1576                 -q      Quiet 
    1577                 -P DIR  Save to DIR (default .) 
    1578                 -O FILE Save to FILE ('-' for stdout) 
    1579                 -U STR  Use STR for User-Agent header 
    1580                 -Y      Use proxy ('on' or 'off') 
    1581  
    1582431    which 
    1583432        which [COMMAND]... 
    1584433 
    1585         Locate a COMMAND 
    1586  
    1587434    whoami 
    1588435        whoami 
    1589436 
    1590         Print the user name associated with the current effective user id 
    1591  
    1592437    xargs 
    1593438        xargs [OPTIONS] [PROG ARGS] 
    1594439 
    1595         Run PROG on every item given by stdin 
    1596  
    1597                 -p      Ask user whether to run each command 
    1598                 -r      Don't run command if input is empty 
    1599                 -0      Input is separated by NUL characters 
    1600                 -t      Print the command on stderr before execution 
    1601                 -e[STR] STR stops input processing 
    1602                 -n N    Pass no more than N args to PROG 
    1603                 -s N    Pass command line of no more than N bytes 
    1604                 -x      Exit if size is exceeded 
    1605  
    1606440    yes yes [STRING] 
    1607  
    1608         Repeatedly output a line with STRING, or 'y' 
    1609441 
    1610442    zcat 
    1611443        zcat FILE 
    1612  
    1613         Decompress to stdout 
    1614444 
    1615445LIBC NSS 
Note: See TracChangeset for help on using the changeset viewer.