{"id":619989,"date":"2026-06-04T02:43:10","date_gmt":"2026-06-04T02:43:10","guid":{"rendered":"https:\/\/www.newsbeep.com\/uk\/619989\/"},"modified":"2026-06-04T02:43:10","modified_gmt":"2026-06-04T02:43:10","slug":"grep-this-microsoft-grafts-most-linux-commands-onto-windows","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/uk\/619989\/","title":{"rendered":"Grep this: Microsoft grafts (most) Linux commands onto Windows"},"content":{"rendered":"<p>Steve Ballmer\u2019s <a href=\"https:\/\/www.theregister.com\/software\/2001\/06\/02\/ballmer-linux-is-a-cancer\/581119\" rel=\"nofollow noopener\" target=\"_blank\">darkest fear<\/a> has come to pass: Linux has worked itself into the deepest innards of Microsoft Windows itself.\u00a0<\/p>\n<p>At the company\u2019s annual Build developer conference this week, Microsoft released<a href=\"https:\/\/learn.microsoft.com\/en-us\/windows\/core-utils\/overview\" rel=\"nofollow noopener\" target=\"_blank\"> coreutils<\/a>, a Rust-built multi-call binary file for Windows that serves over 75 Unix commands directly in the Windows CMD and PowerShell command lines \u2013 including favorites such as cat, ls, grep, and head. They join Linux favorites curl and <a href=\"https:\/\/learn.microsoft.com\/en-us\/windows\/advanced-settings\/sudo\/\" rel=\"nofollow noopener\" target=\"_blank\">sudo<\/a> which were earlier added to the Microsoft command lines.\u00a0\u00a0<\/p>\n<p>\u201cGrep in full glory is now available for full Windows access,\u201d enthused Microsoft CEO Satya Nadella yesterday <a href=\"https:\/\/youtu.be\/FFMm454fxNA?t=632\" rel=\"nofollow noopener\" target=\"_blank\">during his Build keynote<\/a>. Grep (Global Regular Expression Print) provides a way to search through all the files in a given space \u2013 it\u2019s essential for searching through gargantuan log files for instance.\u00a0 It is one of the many commands memorized by the daily Linux user.\u00a0<\/p>\n<p>                <img decoding=\"async\" src=\"https:\/\/www.newsbeep.com\/uk\/wp-content\/uploads\/2026\/06\/5250845.webp\" width=\"480\" height=\"120\" alt=\"Grep running on Windows CMD\" loading=\"lazy\" style=\"\"\/><\/p>\n<p>            Behold! Grep on Windows CMD\n        <\/p>\n<p>Microsoft\u2019s stated motivation in evoking Linux powers is an effort to standardize user commands across the multiverse of platforms it supports so that developer scripts work the same way across containers, PowerShell, Macs, the Windows Subsystem for Linux (WSL), and the DOS-era CMD command line.\u00a0<\/p>\n<p>Unix was built on the philosophy of small programs that can be easily piped together to build larger workflows, so that, say, the output of grep can be combined with other material through the cat (concatenate) command.\u00a0 As a result, developers, admins, and now AI agents write scripts that incorporate these commands.\u00a0<\/p>\n<p>The adoption is also good news for Linux expats who occasionally work in the Windows CMD: They will no longer need to remember the standard \u201cls\u201d command for listing the contents doesn\u2019t work in Windows, and that they have to type the DOS-era \u201cdir\u201d command instead. Now both work.\u00a0<\/p>\n<p>                <img decoding=\"async\" src=\"https:\/\/www.newsbeep.com\/uk\/wp-content\/uploads\/2026\/06\/5250843.webp\" width=\"480\" height=\"77\" alt=\"ls working on CMD\" loading=\"lazy\" style=\"\"\/><\/p>\n<p>            No longer will you need to remember that \u201cdir\u201d and not \u201cls\u201d works on CMD.\n        <\/p>\n<p>That said, the devil is in the details for many of these ported commands. Several long-time Linux commands conflict with existing CMD and PowerShell commands of the same names, such as date and rmdir. In these cases, the user must suss out which identical command takes precedence, which can depend on the shell, the PATH order, or the alias table if you are using PowerShell.\u00a0<\/p>\n<p>One X poster <a href=\"https:\/\/x.com\/lutefiskguy\/status\/2061919472051724508\" rel=\"nofollow\">noted<\/a> that Coreutils relieves a repeated \u201cfrustration of looking up the PowerShell equivalent syntax\u201d for grep. \u201cUseful functionality over \u2018not invented here\u2019 is a huge win!\u201d they wrote.<\/p>\n<p>One could run Grep before on Windows through third-party packages such as <a href=\"https:\/\/cygwin.com\/cygwin\/packages\/summary\/grep.html\" rel=\"nofollow noopener\" target=\"_blank\">Cygwin<\/a>, though Coreutils has the speed of native functionality, thanks to its implementation in Rust.\u00a0<\/p>\n<p>Microsoft built Coreutils from the <a href=\"https:\/\/uutils.github.io\/\" rel=\"nofollow noopener\" target=\"_blank\">uutils<\/a> open source effort of rewriting Linux core commands in Rust, for the purposes of memory safety and cross-platform portability. No doubt, it also helped Microsoft that this package was written under the permissive MIT open source license, thereby sidestepping the sticky GNU GPL requirements that so spooked Ballmer.\u00a0<\/p>\n<p>There are some Unix\/Linux commands that this project won\u2019t touch, such as dd, the byte-by-byte copying (\u201cPerhaps useful in the future,\u201d the documentation wryly notes). A few other commands \u2013 original DOS Sort and Find \u2013 were integrated into their Linux equivalents so they would work in both contexts.<\/p>\n<p>And because Windows uses ACLs to assign file ownership, rather than POSIX permission bits, none of the Linux permission-setting commands (chcon, chgrp, chmod, chown, chroot, groups) make any sense to Windows, so any scripts changing file permissions still must be massaged (Linus Torvalds created Linux to adhere to the POSIX standards that define the Unix commands).<\/p>\n<p>You can download and install Coreutils, which is only about 4.6MB, through CMD WinGet (\u201cwinget install Microsoft.Coreutils\u201d). The download is worth it for grep alone, which is the undisputed champion rifling through all the files in an overloaded directory.<\/p>\n<p>Bigger fish to fry<\/p>\n<p>When Windows was king at Microsoft, Linux was public enemy number one. But times have changed now that Microsoft has larger competitive threats to worry about than open source \u2013 namely the frontier AI labs threatening to disrupt the entire enterprise software market.\u00a0<\/p>\n<p>Linux has been, for several years now, the <a href=\"https:\/\/thenewstack.io\/microsoft-linux-is-the-top-operating-system-on-azure-today\/\" rel=\"nofollow noopener\" target=\"_blank\">most popular operating system <\/a>on the company\u2019s Azure cloud service. And last month, few graybeards even batted an eye when Microsoft released its own Linux distribution,<a href=\"https:\/\/azure.microsoft.com\/en-us\/solutions\/linux-on-azure\" rel=\"nofollow noopener\" target=\"_blank\"> Azure Linux<\/a>.\u00a0<\/p>\n<p>Nadella\u2019s newfound love for grep probably has more to do with its recent popularity as an agent tool for finding the needles in the haystack.\u00a0\u00a0\u00a0<\/p>\n<p>At Build, Microsoft relied heavily on its trusted playbook of commoditizing the competitor, revealing a host of new features and services to help developers integrate AI into their own applications. The message was clear: The developer is still in charge, and they can integrate the best of what commercial LLM suppliers could provide with Microsoft\u2019s enterprise-focused platform.\u00a0<\/p>\n<p>After all, it\u2019s a long way from <a href=\"https:\/\/www.theguardian.com\/technology\/2026\/may\/05\/richard-dawkins-ai-consciousness-anthropic-claude-openai-chatgpt\" rel=\"nofollow noopener\" target=\"_blank\">impressing Richard Dawkins<\/a> with displays of artificial intelligence to building something genuinely useful for Frank in accounting that doesn\u2019t upset the security team.\u00a0<\/p>\n<p>At this show, Microsoft released a version of the popular OpenClaw agent builder that runs in Windows, and hence inherits the ecosystem of permissions and security guardrails that come with the Microsoft enterprise ecosystem. This package relies on the newly-released Microsoft Execution Containers (MXC), a policy layer for <a href=\"https:\/\/blogs.windows.com\/windowsdeveloper\/2026\/06\/02\/build-2026-furthering-windows-as-the-trusted-platform-for-development\/\" rel=\"nofollow noopener\" target=\"_blank\">describing agent containment requirements<\/a> that can be enforced by Windows. Earlier this year, Microsoft <a href=\"https:\/\/www.microsoft.com\/en-us\/security\/blog\/2026\/02\/19\/running-openclaw-safely-identity-isolation-runtime-risk\/\" rel=\"nofollow noopener\" target=\"_blank\">issued a warning<\/a> about the security problems of running OpenClaw unfettered on Windows.<\/p>\n<p>In fact, agents may work best within the confines of established software, the \u2018Softies argued. At the event, the company revealed the new <a href=\"https:\/\/www.theregister.com\/ai-and-ml\/2026\/06\/03\/no-longer-just-a-copilot-microsofts-ai-wants-to-take-the-wheel\/5250718\" rel=\"nofollow noopener\" target=\"_blank\">CoPilot for GitHub<\/a>, which was expanded from offering only in-line assistance to a full developer environment and orchestrator for multiple agents that can autocomplete the more mundane tasks of pushing code to GitHub.\u00a0<\/p>\n<p>For Office 365, Microsoft introduced a new set of prefabricated OpenClaw-based agents, called <a href=\"https:\/\/www.theregister.com\/ai-and-ml\/2026\/06\/03\/no-longer-just-a-copilot-microsofts-ai-wants-to-take-the-wheel\/5250718\" rel=\"nofollow noopener\" target=\"_blank\">AutoPilots<\/a>, that inherit the developer\u2019s environment. &#8220;These are autonomous, long running agents with full enterprise compliance that run in your tenant.&#8221; Nadella said.<\/p>\n<p>He introduced the first of these personalized agents, called Scout, which runs in Microsoft Teams, and can dip into the user\u2019s chats, email, calendar, and contacts to run errands.\u00a0<\/p>\n<p>The company also introduced to the audience a<a href=\"https:\/\/microsoft.ai\/\" rel=\"nofollow noopener\" target=\"_blank\"> bevy of in-house models<\/a> that devs can implement directly into their own apps to lessen their reliance on OpenAI or Anthropic API. They cover reasoning (MAI-Thinking-1) coding (MAI-Code-1-Flash), image creation (MAI-Image-2.5), voice transcription (MAI-Transcribe-1.5) and speech generation (MAI-Voice-2)\u00a0<\/p>\n<p>Perhaps most ambitiously, the company launched <a href=\"https:\/\/commandline.microsoft.com\/project-solara-build-2026\/\" rel=\"nofollow noopener\" target=\"_blank\">Project Solara<\/a>, a platform for ambient computing, in order to bring AI to portable single-purpose devices. &#8220;The next computer is not one device, it is all these devices working together as one system, with agents showing up closer to where and when you need them,&#8221; Microsoft Technical Fellow Steve Bathiche told the Microsoft Build crowd. This hearkened back to Nadella&#8217;s kickoff remarks in his keynote, where he reminded developers that\u00a0 &#8220;the amount of compute at the edge is actually astounding. Think about every NPU, GPU, CPU, even every PC. If you aggregate that, that&#8217;s a lot of compute power.&#8221;\u00a0<\/p>\n<p>Project Solara follows in the steps of Anthropic, which recently released its own blueprint for building agent-enhanced portable devices, called the <a href=\"https:\/\/github.com\/anthropics\/claude-desktop-buddy\" rel=\"nofollow noopener\" target=\"_blank\">Claude Desktop Buddy<\/a>. \u00ae<\/p>\n","protected":false},"excerpt":{"rendered":"Steve Ballmer\u2019s darkest fear has come to pass: Linux has worked itself into the deepest innards of Microsoft&hellip;\n","protected":false},"author":2,"featured_media":619990,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[59,86,56,54,55],"class_list":["post-619989","post","type-post","status-publish","format-standard","has-post-thumbnail","category-technology","tag-gb","tag-technology","tag-uk","tag-united-kingdom","tag-unitedkingdom"],"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts\/619989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/comments?post=619989"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts\/619989\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/media\/619990"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/media?parent=619989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/categories?post=619989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/tags?post=619989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}