13
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

BusyBox設定備忘録

Posted at

概要

Windows環境下でUnix系のコマンド使用できるようにするためのBusyBoxの環境設定方法。

ダウンロード

下記サイトよりexeファイルダウンロードします。

busybox

使い方

ダウンロードしたexeを任意のフォルダに配置し、システム環境変数に追加すると

コマンドプロンプト or PowerShellで下記のようにコマンドを組み合わせてUnixコマンドを使用することができます。

C:\Users\WorkSpace>busybox ls -la 
  • busyboxで使用可能なコマンドは、引数なしで実行すると詳細が表示されます。
C:\Tool>busybox
BusyBox v1.28.0-FRP-1722-g096aee2bb (2017-12-09 09:30:52 GMT) multi-call binary
(mingw64-gcc 7.2.0-1.fc27; mingw64-crt 5.0.2-2.fc27; safe)

BusyBox is copyrighted by many authors between 1998-2015.
Licensed under GPLv2. See source distribution for detailed
copyright notices.

Usage: busybox [function [arguments]...]
   or: busybox --list
   or: busybox --install [DIR]
   or: function [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  The shell in this build
        is configured to run built-in utilities without $PATH search.
        You don't need to install a link to busybox for each utility.
        To run external program, use full path (/sbin/ip instead of ip).

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

また、下記のように設定するとbusyboxコマンドなしでそのままUnixのコマンドを使用することができます。

  1. コマンドを展開するフォルダを作成する
C:\Tool>mkdir busybox
  1. busyboxで使用できるコマンドを任意のフォルダに展開する
C:\Tool>busybox --install ./busybox
  1. 展開したフォルダPathをシステム環境変数に追加する
C:\Users\WorkSpace>ls -la 
13
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?