That is interesting. I just remoted into 5 different machines at the office and none of them worked with ‘ls’. If you enter ‘ls /?’, does it give you a synopsis and argument list?
If I do “ls /?” it returns no such file or directory, but just “ls” performs exactly as you’d expect. I haven’t installed anything to provide that function that I know of. It never occurred to me that I would have to because as far as I know it’s always worked. Until today I just assumed it had become a standard command and never investigated. Was just happy I could use the same command in cmd and on my Pi box.
Lately I’ve been using it as a simple way to drag and drop a source .tar.xz archive on a .bat file so it can be twice extracted, moved, renamed, have dependencies downloaded by git, run a cmake process, do a visual studio compile, then move the result release directory back to where the .bat file is while removing unneeded files and adding new ones.
It’s my own fault, and the result of 30+ years of muscle memory building up. Plus, while I agree cmd isn’t nearly as powerful as powershell or wsl can be, when I’m in Windows it’s still the fastest way for me to do 90% of the simple things I need to do. I have a long history with it, and a thorough understanding of it, so I don’t really need to think for most of the things I’m doing there.
If I need to script something, or do anything that seems like it would be annoying to do in CMD, I hop into WSL pretty quickly and get to work with bash or python. The problem I have now is that I’ve developed a little muscle memory there as well… hence my issue with entering ‘ls’ everywhere.
Ok, getting past the dickish, completely unhelpful first part of your reply (as you can see in the comments, not EVERYONE was saying that), the second part helped me trace it back to this:
which is a toolset that I never intentionally installed, and was evidently added by an emulator package without me knowing where it was or what it did.
So thank you for (eventually) helping me find what it was, and now you and others know how to add it to cmd and don't have to complain about its absence.
I find it interesting how everyone tells me that ls doesn’t work in cmd.exe, then I provide a screenshot showing it doing exactly that, and no one has anything to say.
'Cmd' is to 'horse and buggy' as 'powershell' is to 'automotive vehicle'
Have no idea where you decided to pull this 100mph idea from. It wasn't a comment about speed, it was a comment about utilizing modern practices and tools. And that the joke falls apart because it's forcing the narrative all windows has is cmd and blatantly ignoring pwsh. It be me like making a joke how linux can't do wifi... because there was a time Windows did wifi just fine but linux required using a special process using an ndiswrapper with windows drivers to get linux on wifi... so like 16-17 years ago. See, hilarious.
What? Ignoring the out of date, over used, 'gottem', phrase... it literally doesn't make sense given the context. I'm advocating for modern tools... how is that a 'boomer' move?
I ended it with a question mark because I was uncertain but otherwise your asinine, dismissive statement sounds like something a jackass who’s been around too long would say because he’s entirely too full of himself. I’m willing to recognize that it’s actually ignorance formed out of youth. Don’t think about it too hard.