• woelkchen@lemmy.world
    link
    fedilink
    arrow-up
    13
    ·
    2 days ago

    ls works on Windows just fine. PowerShell understands this command since a long time, maybe even since the very beginning (not looking through the git commits, just to find out).

    • fleem@piefed.zeromedia.vipOP
      link
      fedilink
      English
      arrow-up
      16
      ·
      edit-2
      2 days ago

      heck, you’re right.

      also dir works on linux but it is not as pretty, (i am finding out as we speak)

      This meme is pivoting to education bait?

      • blackbeans@lemmy.zip
        link
        fedilink
        arrow-up
        5
        ·
        2 days ago

        Powershell is starting to become more common. But simple directory listing is actually much faster in cmd as Powershell treats everything as an object while cmd just dumps the contents as text.

        • woelkchen@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          edit-2
          2 days ago

          Well who uses powershell? Common people open command prompt and it doesn’t support ls.

          Windows Terminal is shipped with Windows and defaults to PowerShell. Too bad Windows ships some ancient PS version by default but winget install Microsoft.PowerShell isn’t that complicated.

        • suxen_tsihcrana@anarchist.nexus
          link
          fedilink
          English
          arrow-up
          6
          ·
          edit-2
          2 days ago

          I can tell it’s been a while since you used windows 😁.

          Some of us are forced to btw.

          Modern “command prompt” on windows is called Terminal and supports both PowerShell and CMD commands.

        • Elvith Ma'for@feddit.org
          link
          fedilink
          arrow-up
          3
          ·
          2 days ago

          You could define Powershell as the default shell in Windows 10, so that you wouldn’t need to explicitly invoke it every time - although, which (non-technical) user does this?

          Windows 11 changed the default to Powershell so that you’ll always land in Powershell and need to invoke the old CMD explicitly. Also the new Terminal (optional in Win10, Default in Win11) defaults to Powershell.

          • MinnesotaGoddam@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 day ago

            Wait. I always just invoked cmd explicitly to get the command prompt. What the hell was I supposed to be doing to get the command prompt