Coreutils for Windows (Linux commands natively on Windows)

Microsoft coreutils for Windows has just been releasedYes, you read that right. The same commands that have powered Unix and Linux systems for over 50 years are now available natively in Windows, and are maintained by Microsoft itself.

In case you don't know, GNU coreutils are the foundational utilities that every Linux and macOS system relies on for basic file operations, text editing, and shell scripting. They are the foundation of Unix computing. Tens of millions of scripts, pipelines, and workflows depend on them every day.

Discover more articles in search results.

And now Microsoft is taking over and maintaining a version of these tools for Windows.

We're not talking about WSL. You won't need a Windows Linux subsystem to run the commands. These Linux commands will run natively on Windows, with the exact same flags and behaviors as they do on Linux.

Microsoft's ultimate goal seems to be to make switching between Linux, macOS, WSL, containers, and Windows completely seamless. You write a script and run it anywhere.

Windows coreutils is written in Rust and is a work in progress.

The package combines uutils/coreutils (a modern rewrite of GNU coreutils in Rust), findutils, and grep into a single multi-call binary. Each command supports standard flags. Same commands, no conversion required.

The project is still in preview and there are only a few commands. Since some commands have the same name on Linux and Windows, there is a possibility of problems. Some even do not fit in the Windows environment.

Commands such as dir, expand, more, paste, whoami directly conflict with existing Windows built-in commands. Kill and timeout are not available due to lack of POSIX signals on Windows. dd, dircolors, shred, sync and uname have been removed as not useful on Windows.

Other POSIX-only commands like chmod, chown, chroot, mkfifo, id, who, and others simply don't apply to the Windows environment.

So which commands remain in Windows coreutils? The official GitHub repository it shows it better...

Obviously, we will see more improvements in the future.


Google preferences

Leave a Comment

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).