SuperAPI AI 工具集

busybox-on-windows

通用与其它

查看项目

更新于 10-16 08:35

技能介绍

用途:在 Windows 上借助 BusyBox 的 Win32 构建版运行许多标准 UNIX 命令行工具。BusyBox 是单个二进制文件,实现了大量常见 Unix 工具。此技能仅适用于 Windows;如果处于 UNIX 环境,则无需使用。

主要能力:提供一份可用的 UNIX 命令列表,并通过在命令前加 busybox.exe 前缀来调用。通过 busybox.exe --list 可查看帮助与可用 UNIX 命令。

使用方式:仅当本文档所在目录中找不到 busybox.exe 时,才执行以下步骤。相关命令为 PowerShell 命令;若使用经典 cmd.exe 终端,需用 powershell -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

下载合适的 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

常用命令:帮助与可用 UNIX 命令均为 busybox.exe --list。调用方式是在 UNIX 命令前加 busybox.exe,例如 busybox.exe ls -1。若需在其他工作目录下运行 UNIX 命令,请使用 busybox.exe 的绝对路径。

限制:仅适用于 Windows。文档未提供价格、授权及其他平台支持信息。