Skip to main content

微軟推出Coreutils for Windows,讓開發者在Windows原生執行常用Linux命令列工具

Posted in 業界新聞
新聞

Coreutils for Windows是由微軟維護的UNIX風格命令列工具套件,目標是降低開發者在Windows、Linux、macOS、WSL與容器環境之間切換時,因工具與操作方式不一致造成的不便與學習成本,讓既有命令、旗標、管線與指令碼可在Windows環境延續使用。

根據微軟說明,Coreutils for Windows是以Rust語言開發而成,並以uutils/coreutils專案為基礎,該專案為GNU coreutils的跨平臺重新實作版本,也是部分現代Linux發行版採用的實作基礎。微軟則維護Windows專用版本,將coreutils、findutils(包含find與xargs)以及GNU相容版本的grep整合為單一套件,同時整合原始DOS版sort與find的移植版本,讓依賴/switch風格語法的既有CMD指令碼,也能與UNIX風格命令並存運作。

不過,InfoWorld報導指出微軟目前列出75項Coreutils for Windows支援工具,但並非所有Linux命令都可在Windows環境使用。微軟也提醒,實際執行的是哪個版本,仍可能受到shell內建命令、PATH設定順序,以及PowerShell別名機制等因素影響。

Preview image for Coreutils for Windows overview

Coreutils for Windows overview

A set of UNIX-style core utilities for Windows that lets developers run the same commands and scripts they already use on Linux, macOS, and WSL.

learn.microsoft.com
View original 0 Likes 0 Boosts

Comments (0)

No comments yet.