Hacker News new | ask | show | jobs
by analog31 1261 days ago

    ls is not recognized as an internal or external command,
    operable program or batch file.
;-)
1 comments

Haha, yeah we probably should have added a caveat that this is only applicable to Unix
I assumed so, but then I got curious what would happen in a DOS window.
Thankfully it works in Powershell on Windows. I lost any muscle memory for `dir` a long long time ago.
Until you hit something like "Get-ChildItem : A parameter cannot be found that matches parameter name 'lh'" and are jarringly reminded that this is not your old friend `ls` after all.
This is why, if I use a shorthand in PowerShell at all, I avoid using "dir", "ls", and the like. "gci" is at least not like any common Unix/BSD/PC-DOS/Windows/OS/2 command.