you are viewing a single comment's thread
view the rest of the comments
[–] 7 points 11 months ago (12 children)
  • [–] 16 points 11 months ago* (3 children)

    Uh... kinda? Powershell has many POSIX aliases to cmdlets (equivalent to shell built-ins) of allegedly the same functionality. rmdir and rm are both aliases of Remove-Item, ls is Get-ChildItem, cd is Set-Location, cat is Get-Content, and so on.

    Of particular note is curl. Windows supplies the real CURL executable (System32/curl.exe), but in a Powershell 5 session, which is still the default on Windows 11 25H2, the curl alias shadows it. curl is an alias of the Invoke-WebRequest cmdlet, which is functionally a headless front-end for Internet Explorer unless the -UseBasicParsing switch is specified. But since IE is dead, if -UseBasicParsing is not specified, the cmdlet will always throw an error. Fucking genius, Microsoft.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 5 points 11 months ago (1 child)

    Jesus, They really just need to start over.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 11 months ago

    Yeah as an admin I love that I can run familiar Linuxy commands in powershell but I also hate that they can't just use/fork the real userland utilities so everything works just similarly enough to completely throw you off when you stumble across a difference

  • source
  • parent
  • [–] 2 points 11 months ago* (2 children)

    "rd" and "rmdir" only work on empty directories in MS-DOS (and I assume, by extension, in Windows shell). "deltree" is for nuking a complete tree including files, as the name suggests.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 11 months ago (3 children)

    Wait, what do people use other than rmdir?

  • source
  • parent
  • hideshow 3 child comments