Microsoft launches Coreutils for Windows, bringing native Linux commands to the operating system


microsoft announced the release of Coreutils for windows at its Build 2026 developer conference, adding many popular linux command line utilities as native applications for Windows.

The project is based on the open source uutils project, which is a cross-platform rewrite of GNU coreutils written in Rust. Its goal is to allow developers to switch between Linux, macOS, Windows, and WSL without needing to change their command-line workflows.

The project is available at GitHub as a Microsoft-maintained package that combines uutils, coreutils, findutils, and a GNU-compatible grep implementation into a single binary.

How to install Coreutils and how the single binary works

Coreutils for Windows offers many command-line tools familiar to Linux users, such as cat, cp, find, grep, hostname, ls, mv, pwd, rm, sleep, tee, and uptime. Its purpose is to allow existing scripts and tools to run smoothly on Windows without the need for modifications.

The package can be installed via WinGet with the following command:

winget install Microsoft.Coreutils

Instead of creating a separate executable for each program, Microsoft developed a single coreutils.exe that contains all the functions.

During installation, Setup creates NTFS hard links for each supported command, such as ls.exe, cp.exe, cat.exe, and rm.exe, all pointing to coreutils.exe located in C:\Program Files\coreutils.

When a user runs one of these commands, Windows loads coreutils.exe, which then determines which utility to run based on the name of the command used.

This approach allows Microsoft to maintain a single executable while still offering individual Linux-style commands. When running commands, it is common to see dozens of command names that reference the same file.

Shell Conflicts and Compatibility

Many Linux command names clash with those used in the Command Prompt and PowerShell. Microsoft has published a compatibility table that explains how each utility behaves in various Windows shells.

Commands such as ls, cat, cp, mv, rm, pwd, sleep, and tee are included in the table, but whether the Coreutils version is usable depends on the shell being used, the order of directories in the system PATH, and the PowerShell alias table.

Some commands such as dir, more, paste, and whoami are not included because they conflict with existing Windows commands.

What is not included in Coreutils for Windows and why

Microsoft has not released several Unix utilities that rely on POSIX features that are not available on Windows. These include commands such as chmod, chown, chroot, nohup, tty, and who.

The Kill and Timeout commands are also not available, since Windows does not support POSIX signals. Microsoft has indicated that it may be possible to support signals in the future.

The company warns that there may be behavioral differences between the Linux and Windows versions of these commands. These differences could be due to variations in line feeds, file permissions, and POSIX compatibility.

Coreutils for Windows is part of Microsoft’s broader effort to make Windows more attractive to developers. At Build 2026, the company announced WSL containers, which will allow users to create, run, and manage Linux containers on Windows using native command-line tools and APIs.

Coreutils for Windows is now available through WinGet and GitHub as an open source project maintained by Microsoft.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *