WinuxCmd

Cao Mengxuan·caomengxuan666.WinuxCmd

Linux-style command set for Windows terminals

WinuxCmd provides native Windows implementations of common Linux-style commands for Windows terminals. It includes GNU-style commands such as ls, cat, grep, sed, ps, and lsof, works without WSL, and supports Windows and Linux-style command workflows in PowerShell, Command Prompt, and other shells. The bundled `wpm` package manager installs a curated set of portable Unix-side tools with SHA-256 verification and an isolated opt/ layout for DLL-bearing packages.

winget install --id caomengxuan666.WinuxCmd --exact --source winget

Latest 1.2.1·November 2, 2026

Release Notes

Windows binaries for v1.2.1

Architectures:

• x64:Windows 64-bit • ARM64:Windows ARM64 (cross-compiled)

Full-only commands (edition split, #1438):

The default edition does not create entry links for [, env, false, kill, test, time, true — these commands' user-facing semantics are defined by your host shell's builtins (winuxcmd <name> ... still works). The full edition materializes every entry and ships under the -full asset names; it is not distributed through wpm: • WinuxCmd-1.2.1-win-x64-full.7z / .zip / .tar.gz • WinuxCmd-1.2.1-win-arm64-full.7z / .zip / .tar.gz

Files included:

• WinuxCmd-1.2.1-win-x64.7z / .zip / .tar.gz • WinuxCmd-1.2.1-x64-setup.exe • WinuxCmd-1.2.1-win-arm64.7z / .zip / .tar.gz • WinuxCmd-1.2.1-arm64-setup.exe • WinuxCmd-skill-v1.2.1.zip (AI agent skill bundle, attached separately)

Package Contents:

• usr/bin/winuxcmd.exe - Main executable (multi-call binary:one exe provides all commands) • usr/bin/create_links.ps1 - Generates per-command links (hardlinks on NTFS, symlinks otherwise) • Environment and lifecycle scripts:winux.ps1 / winux.cmd / winux-activate.ps1, winuxcmd_init.cmd / winuxcmd_uninstall.cmd • README.md / README-ZH.md / LICENSE

Package Formats:

• 7Z:Best compression (requires 7-Zip) • ZIP:Native Windows support (right-click to extract) • TGZ:tar.gz format (use tar -xzf filename.tar.gz) • EXE:standalone installer with PATH and PowerShell integration tasks

Usage:

  1. Download the appropriate package for your architecture
  2. Extract to your desired directory
  3. Navigate to the usr/bin directory
  4. Run create_links.ps1 to generate command links
    # For NTFS filesystems (recommended)
    .\create_links.ps1
    
    # For non-NTFS filesystems, use symbolic links
    .\create_links.ps1 -UseSymbolicLinks
    
    # To remove all links later
    .\create_links.ps1 -Remove
    
  5. Add the usr\bin directory to your PATH

What's Changed

• fix(sed):memoize repeat exploration — nested quantifier no longer hangs (Fixes #1495, Refs rubash#2481) by @caomengxuan666 in https://github.com/unixwin/WinuxCmd/pull/1498 • fix:readlink -f POSIX separators, unprivileged ln -s (+opt-in copy fallback), wpm --force shims.map refresh (Fixes #1491 #1492 #1497) by @caomengxuan666 in https://github.com/unixwin/WinuxCmd/pull/1499 • fix(sed):POSIX subexpression capture rules (Fixes #1496) by @caomengxuan666 in https://github.com/unixwin/WinuxCmd/pull/1501 • fix:readers bridge the winux fifo marker (Fixes #1493) by @caomengxuan666 in https://github.com/unixwin/WinuxCmd/pull/1502 • chore(release):WinuxCmd 1.2.1 by @caomengxuan666 in https://github.com/unixwin/WinuxCmd/pull/1503

Full Changelog:https://github.com/unixwin/WinuxCmd/compare/v1.2.0...v1.2.1


What's new in 1.2.1

sed engine

• Nested quantifiers no longer hang (#1495):portable_regex's collect_repeat enumerated every parse of a repetition with no memoization, so a pattern such as s/^\(.*\)*$/X/ split a 32-char line into every ordered chunk decomposition — exponential work. Repeat exploration is memoized now; the historical reproducer (printf 'abcdef…32chars\n' | sed 's/^\(.*\)*$/X/') returns in well under a second (Refs rubash#2481). • POSIX subexpression capture rules (#1496):capture groups are numbered by their opening delimiter (POSIX.1-2017 XBD 9.1, as glibc does) instead of closing order, and empty loop iterations are counted toward \{m,n\} lower bounds (glibc empty-iteration accounting). printf 'xxxx\n' | sed 's/^\(\(x\)*\)*$/[\1|[\2]]/' now prints [xxxx|[x]] like GNU sed.

readlink / ln (#1491)

• readlink -f/-e/-m print /-separated canonical names — GNU canonicalize_filename_mode() assembles them with / by construction. The drive spelling the resolver chose is kept, and the no-mode form still prints the stored target text verbatim. This unblocks bats-core's BATS_ROOT=$(cd -P ... && pwd -P) resolution. • ln -s now tries CreateSymbolicLinkW with SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE first, so Developer Mode creates real symlinks without elevation; the copy fallback stays opt-in (GNU ln has no silent downgrade to mirror, coreutils 9.4 ln.c).

wpm / build (#1492, #1497)

• wpm --force refreshes stale shims.map entries. • Local MSVC 14.51 source builds no longer break on missing <ctime> / <string_view> includes (CI toolchains were unaffected).

FIFO marker read-side bridge (#1493)

Reader applets that opened operands through a raw std::ifstream bypassed the !<fifo> marker bridge and read the 7 marker bytes as content (od -c p printed !<fifo> literally while the writer blocked in the rendezvous). Those operand opens now route through file_io::open_binary_file, so reader operands rendezvous with the write bridge like the shared readers do.

Packaging unchanged

• No new strip:the #1438 edition split is untouched — the default edition strips exactly [, env, false, kill, test, time, true and keeps echo/printf/pwd (wpm links rebuild → created=171); the full edition still materializes all 178 entries under the -full asset names, outside wpm. • No FFI changes:this release touches no FFI surface; BUILD_FFI stays off and no FFI artifacts are shipped.

Installer type: zip

x64—5E00F7891D33350EEA4E4B0248E24710D087428C145B34E1FBC996F86D357BD7
arm64—C00017DC29CAEAD94D3C94A97BFD87E839D0139FC052E202452C43583B3D752D

Details

Homepage
https://github.com/unixwin/WinuxCmd
License
MIT
Publisher
Cao Mengxuan
Support
https://github.com/unixwin/WinuxCmd/issues
Copyright
Copyright (c) 2026 caomengxuan666

Tags

command-linecoreutilsgreplinuxlspowershellshellterminalwpm

Older versions (6)

1.1.20
x64—790D1F6EEF3A555FD2C043866D32C6EDBF936A8A70D25E554B3383E67B36AD43
arm64—205EDB87A06B8B5B3C6FB731884D2B91B60FE406B9E7F3DBE625326489BB89DF
1.0.1
x64—0BF1E76DB099E0495F6CFF837348074CA3CB578219A47958A3928918BFAAE303
arm64—291FCF6E2166AD2DBCF53152EF341BCF3A6FD2328220529B92D979C77948ABBD
0.17.0
x64—FB1154789DE1650E6F2BF7DCDFE714F76A970C2CD65E043F2EA4F74C655CCBD6
arm64—0D75F7D7DFF9AA38D7EC84E91A57969DA88FCD8B43FED1E1A6E5E18DEB2235FD
0.16.3
x64—8F98D4ADA9B09B173193FF9471973650BA52435F94A1C43DDA876AF09E7BEB08
arm64—68A671FCF664141883CE1FF35BFC7C5A90BE9EDA682591EBB82F0CE1E0D1A8DB
0.12.3
x64—850A405B20BCE0296F6B07B69C8FFA48B01FB4360B1F80D3ABFD775FBB6F939E
arm64—6D0428BA5484358202A4315D5D525D4489A7C6488E536BFF4AF9F4D98A7D4623
0.12.0
x64—55D00ED7367CC404F39FCF3FB8F35F29A50F0E6373E48B59412A29EC98E50FD5
arm64—F2BD6F4F64048936E2336DA2DBDAA8F1B365C57E6FDCF33FE12F808F994639B5