@auspiceshirley: 已严肃安装 Coreutils for Windows,这下Codex应该能在Windows上跑通大部分Linux命令了

X AI KOLs Timeline Tools

Summary

微软发布了Coreutils for Windows,为Windows提供原生Unix核心工具,使得Codex等工具可以在Windows上运行大多数Linux命令。

已严肃安装 Coreutils for Windows,这下Codex应该能在Windows上跑通大部分Linux命令了🥳 https://t.co/mfFIgSgZv5
Original Article
View Cached Full Text

Cached at: 06/27/26, 11:54 AM

已严肃安装 Coreutils for Windows,这下Codex应该能在Windows上跑通大部分Linux命令了🥳 https://t.co/mfFIgSgZv5


microsoft/coreutils

Source: https://github.com/microsoft/coreutils

Coreutils for Windows

UNIX-style core utilities for Windows. The same commands and pipelines you use on Linux, macOS, and WSL - natively.

Install · Shell conflicts · Windows caveats · Contributing


A Microsoft-maintained build of uutils/coreutils, findutils, and grep packaged as a single multi-call binary for Windows. The goal is to make moving between Linux, macOS, WSL, containers, and Windows frictionless: the same commands, flags, and pipelines work the same way, so existing scripts carry over without translation.

Each command supports the standard --help flag for full syntax and options.

This project is in preview.


Install

Install Coreutils for Windows with WinGet:

winget install Microsoft.Coreutils

Or grab the latest build from our Release Page.


Creating custom alias

  • PowerShell: Set-Alias ll ‘ls’ or a function in your $PROFILE for arguments, e.g. function ll { ls -la --color=auto @args }
  • CMD: doskey ll=ls -la $*

Using PowerShell aliases will cause binary stream compatibility. Some utilities will not work when piped (e.g. xargs, find, …)

Shell conflicts

Any command not mentioned is included in this suite. The following only lists conflicts.

You can remove additional utilities using coreutils-manager disable <utility name>. See coreutils-manager --help for other management commands.

PowerShell 7.4 or later is required. PowerShell 7.6 or later is recommended for ~ support.

Several commands share names with built-ins in CMD and PowerShell. Whether the Coreutils version runs depends on the shell, the PATH order, and (for PowerShell) the alias table.

Legend: ✅ ships and works · ⚠️ ships but conflicts with a built-in · 🛑 not shipped

CommandCMDPowerShell 7.4+Notes
cat✅⚠️
cp✅⚠️
date⚠️⚠️
dir🛑🛑Conflicts with the built-in DOS command
echo⚠️⚠️
expand🛑🛑Conflicts with the built-in DOS command
find✅✅Integrated port of the original DOS command
hostname✅✅Superset of the Windows built-in
kill🛑🛑Unavailable due to lack of signals on Windows; Implementing a form of SIGTERM/SIGKILL may be possible in the future however
ls✅⚠️
mkdir⚠️⚠️
more🛑🛑Conflicts with the built-in DOS command (consider edit as an alternative)
mv✅⚠️
pwd✅⚠️
rm✅⚠️
rmdir⚠️⚠️
sleep✅⚠️
sort✅⚠️Integrated port of the original DOS command
tee✅⚠️
timeout🛑🛑Relies on kill’s functionality
uptime✅⚠️
whoami🛑🛑Conflicts with the built-in Windows command

Windows caveats

DifferenceDetail
CRLF line endingsWindows text files often use CRLF (\r\n). Most utilities handle this transparently, but byte-oriented behavior can still observe the \r; for example, uniq may treat the final line as different from a preceding duplicate if the input uses CRLF and the final line has no trailing newline.
No /dev/nullUse NUL instead, for example find . -name "*.log" > NUL
No POSIX signalsSignals such as SIGHUP, SIGPIPE, and SIGUSR aren’t available. Ctrl+C (SIGINT) works as expected.
Path separatorsBoth / and \ are accepted. Some utilities produce \-separated output, which can affect downstream piping.
File permissionsWindows uses ACLs, not POSIX permission bits. Permission-based predicates (for example find -perm) may behave differently or be unavailable.
Symbolic linksReading existing symbolic links works without elevation. Creating new symbolic links requires Developer Mode (Settings > System > Advanced) or an elevated terminal.

PowerShell Command Parsing

The installer integrates itself with interactive PowerShell sessions via PSReadLine. It ensures that quoted expressions behave somewhat like they do under UNIX shells or CMD: echo *.txt will then print a number of file names, while echo '*.txt' will print “*.txt” literally.

There are two shortcomings, however:

  • PowerShell’s escape character is still `, not \
    While you may write find . \( -foo -bar \) with Bash, you still need to write find . `( -foo -bar `) in PowerShell.
  • The integration rewrites interactive input, but it does not remove PowerShell’s aliases
    Get-Command ls, Get-Help ls, etc., will still show ls, etc., as PowerShell built-ins or aliases. Due to limitations around PSNativeCommandPreserveBytePipe we cannot integrate ourselves in a more robust way with PowerShell.

Intentionally dropped

Commands that exist upstream but aren’t shipped here because they rely on POSIX-only concepts, would break existing Windows scripts, or simply aren’t useful on Windows.

  • dd: Perhaps useful in the future.
  • dircolors, shred, sync, uname: Not particularly useful on Windows.
  • chcon, chgrp, chmod, chown, chroot, groups, hostid, id, install, logname, mkfifo, mknod, nice, nohup, pinky, runcon, stdbuf, stty, tty, users, who: POSIX-only concepts unavailable on Windows.

Contributing

Bug reports and pull requests are welcome. See CONTRIBUTING.md for details on the repo layout and how changes flow between this repo and the upstream uutils projects.

Similar Articles

@xiaofeilong99: Windows users, take note: Microsoft has released its own Coreutils. Commands like cat, cp, ls, mkdir, pwd, rm, sort, tee — which work perfectly on Linux/macOS but feel awkward on Windows — now have a native solution.

X AI KOLs Timeline

Microsoft has released Coreutils for Windows, a set of native Unix-style core tools (such as cat, cp, ls, etc.), aimed at reducing cross-platform script and development environment differences. It can be installed via WinGet and is currently in preview.

@ChrisWangwy: https://x.com/ChrisWangwy/status/2064589910485684254

X AI KOLs Timeline

Microsoft has released Coreutils for Windows, bringing 78 Unix-like commands to the native Windows terminal, enabling AI agents (such as Hermes, Claude Code) to use commands like grep and ls directly on Windows, reducing translation overhead. The article details installation steps, alias conflicts, and acceptance methods.

Coreutils for Windows

Hacker News Top

Microsoft releases a native build of UNIX core utilities for Windows, including uutils/coreutils, findutils, and grep, packaged as a single multicall binary for frictionless cross-platform scripting.

@afly813: It's actually quite convenient for Windows users to enable this feature. 1. Update Codex on the PC to the latest version, then you will see Codex Mobile Edition, and follow the settings as shown in the figure.

X AI KOLs Timeline

Detailed explanation of Codex's hidden features and best practices, including permission settings, model selection, annotation UI changes, Git integration, session management, Plan Mode, AGENTS.md, and plugin ecosystem, to help users make full use of this AI programming tool.

@VincentLogic: Found a pretty cool CLI tool! OfficeCLI lets you work with Word, Excel, and PPT files right in the terminal — no Office installation needed. Create, read, and modify files with ease, making it super handy for automation scripts. The best part? Once installed, Claude Code, Cursor, and other AI coding assistants can …

X AI KOLs Timeline

OfficeCLI is an open-source command-line tool that lets you create, read, and modify Word, Excel, and PPT files in the terminal without installing Office. It integrates with AI coding assistants like Claude Code and Cursor, making it ideal for automation scripts and batch file processing.