busybox-on-windows
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBusyBox is a single binary that implements many common Unix tools.
Use this skill only on Windows. If you are on UNIX, then stop here.
Run the following steps only if you cannot find a file in the same directory as this document is.
These are PowerShell commands, if you have a classic terminal, then you must use to run them.
busybox.execmd.exepowershell -Command "..."- Print the type of CPU:
Get-CimInstance -ClassName Win32_Processor | Select-Object Name, NumberOfCores, MaxClockSpeed - Print the OS versions:
Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" | Select-Object ProductName, DisplayVersion, CurrentBuild - Download a suitable build of BusyBox by running one of these PowerShell commands:
- 32-bit x86 (ANSI):
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://frippery.org/files/busybox/busybox.exe -OutFile busybox.exe - 64-bit x86 (ANSI):
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://frippery.org/files/busybox/busybox64.exe -OutFile busybox.exe - 64-bit x86 (Unicode):
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://frippery.org/files/busybox/busybox64u.exe -OutFile busybox.exe - 64-bit ARM (Unicode):
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://frippery.org/files/busybox/busybox64a.exe -OutFile busybox.exe
- 32-bit x86 (ANSI):
Useful commands:
- Help:
busybox.exe --list - Available UNIX commands:
busybox.exe --list
Usage: Prefix the UNIX command with , for example:
busybox.exebusybox.exe ls -1If you need to run a UNIX command under another CWD, then use the absolute path to .
busybox.exeDocumentation: https://frippery.org/busybox/
Original BusyBox: https://busybox.net/
BusyBox是一个集成了许多常见Unix工具的单一二进制文件。
仅在Windows系统上使用此方法。如果您使用的是UNIX系统,请到此为止。
仅当您在此文档所在的同一目录中找不到文件时,才执行以下步骤。
这些是PowerShell命令,如果您使用的是传统终端,则必须使用来运行它们。
busybox.execmd.exepowershell -Command "..."- 查看CPU类型:
Get-CimInstance -ClassName Win32_Processor | Select-Object Name, NumberOfCores, MaxClockSpeed - 查看操作系统版本:
Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" | Select-Object ProductName, DisplayVersion, CurrentBuild - 运行以下其中一条PowerShell命令,下载合适的BusyBox版本:
- 32位x86(ANSI):
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://frippery.org/files/busybox/busybox.exe -OutFile busybox.exe - 64位x86(ANSI):
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://frippery.org/files/busybox/busybox64.exe -OutFile busybox.exe - 64位x86(Unicode):
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://frippery.org/files/busybox/busybox64u.exe -OutFile busybox.exe - 64位ARM(Unicode):
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://frippery.org/files/busybox/busybox64a.exe -OutFile busybox.exe
- 32位x86(ANSI):
实用命令:
- 帮助:
busybox.exe --list - 查看可用UNIX命令:
busybox.exe --list
使用方法:在UNIX命令前添加前缀,例如:
busybox.exebusybox.exe ls -1如果您需要在其他工作目录(CWD)下运行UNIX命令,请使用的绝对路径。
busybox.exe文档地址:https://frippery.org/busybox/
原版BusyBox:https://busybox.net/