Author Topic: busybox for Windows  (Read 1548 times)


  • Member
  • *****
  • Posts: 1763
busybox for Windows
« on: April 28, 2015, 04:22:06 AM »
BusyBox is a single binary that contains many common Unix tools. It's often found in embedded Linux systems like routers.

The shell of busybox is based on dash, Debian Almquist shell.

Currently defined functions:
        [, [[, ar, ash, awk, base64, basename, bash, bbconfig, bunzip2, bzcat,
        bzip2, cal, cat, catv, chmod, cksum, clear, cmp, comm, cp, cpio, cut,
        date, dc, dd, df, diff, dirname, dos2unix, du, echo, ed, egrep, env,
        expand, expr, false, fgrep, find, fold, ftpget, ftpput, getopt, grep,
        gunzip, gzip, hd, head, hexdump, kill, killall, logname, ls, lzcat,
        lzma, lzop, lzopcat, man, md5sum, mkdir, mktemp, mv, nc, od, patch,
        pgrep, pidof, printenv, printf, ps, pwd, rev, rm, rmdir, sed, seq, sh,
        sha1sum, sha256sum, sha3sum, sha512sum, shuf, sleep, sort, split, stat,
        strings, sum, tac, tail, tar, tee, test, touch, tr, true, truncate,
        uname, uncompress, unexpand, uniq, unix2dos, unlink, unlzma, unlzop,
        unxz, unzip, usleep, uudecode, uuencode, vi, wc, wget, which, whoami,
        xargs, xz, xzcat, yes, zcat

Executing a command :

Code: [Select]
busybox.exe cat


while [ "$x" -lt 11 ]

   echo x = "$x"


Running the script above :

Code: [Select]
busybox.exe sh

x = 1
x = 2
x = 3
x = 4
x = 5
x = 6
x = 7
x = 8
x = 9
x = 10