Dir?
what did you say? say that again to my face, I dare you.
I apologize. I didnt mean to offend anyone!
Why are DOS commands always so verbose?
deleted by creator
^L
Old habits die hard, that’s the first alias on my list in .zshrc!
Wait till I tell you about Pause
Well that’s rude…
Too many letters
Mir?
Mir nichts, dir nichts
Achso, schade, aber kann man nichts machen
Tja
Just makes the command prompt climb into a hole
use powershell (specifically the core version!!!), or even better something like Nu shell
In Linux?
Why use cmd in Linux?
Because Wine makes it possible ;)
Nah, mine was a joke on how Microsoft published Powershell on Linux and somehow thought that anyone was gonna use it.
deleted by creator
Add ls.bat in your windows directory with dir as the source. It basically acts as an alias.
Still won’t help me when I type
ifconfig
ordig
, though.Also I’ve noticed there is also a curl in Windows CLI that I believe is based on libcurl, but when called from powershell is an alias for (iirc)
Invoke-WebRequest
.ifconfig doesn’t even work in a lot of Linux distros anymore.
I came across this one just yesterday and while it was convenient at first, I immediately got frustrated when I went to add some parameters and discovered it wasn’t actually
curl
Classic PoweShell experience. Try
rm -rf
- I wonder why they added the aliases in the first place. Only frustrating to type different arguments which are also more verbose. Tastes like the good ol’ embrace-extend-extinguish.Fortunately splitting up the arguments works in Powershell sometimes:
rm -r -f
echo @dir %1 %2 %3>%windir%\system32\ls.bat
Something like that should fix the problem, I think…
:puke:
You’re no fun…
%0|%0
Not gonna lie I love easily readable scripts. Powershell was my first, and as much pain it can be it’s for sure readable even for the most novice.
Maybe that’s why I love Python too, but have hard time learning sh past very basics…
Edit: oh lol that’s a fork bomb, curiosity won and had to ddg what that is. Love the simplicity of that
Haha!
Old-school fork bomb, at least it doesn’t do anything but bog the system down…
Thank Microsoft for PowerShell
Cmd? What century is this? Use powershell
I’m gonna take it a step further and say to use the new Terminal app from the winapp store which lets you integrate ALL command lines into one app and it looks snazzy to boot!
Check it out mother fuckers!
Yes I love it. It’s on w11 by default
I hate it, it takes too long to start up.
Maybe something is wrong with your pc. It takes me about 5 seconds. Or you are just very impatient.
5 seconds is way too long when all I need to do is run small utility in batch.
Agreed. Terminal is the shite. Makes working in WSL Ubuntu really rewarding.
I’ve found that powershell doesn’t play nice with many command line developer tools so cmd it is.
Yeah powershell is better 95% of the time. But that other 5% of the time you have to go back to CMD and redo what you were attempting. So the work done in powershell is a waste of time 5% of the time, and you still will need to know CMD to be able make everything work.
So Powershell is better in theory, but in actual practice I tend to do things in CMD because I know it will work.
I really like PowerShell’s object-oriented approach to pipelines. Unix pipes feel really dated in comparison.
My brain is still hardwired to do Win+R CMD Enter…
You can just press Win key and type whatever to search and enter to open. WIN Term Enter, and there’s your Windows Terminal.
My brain is hardwired to win+X -> A lol
Takes way too long to open, have weird issues all the time
It’ll always be “Bad command or file name” to me.
Yes but it can do “cd…”
God everytime!
sfc/scannow
Memories we all share.
https://duckduckgo.com/?q=gnu+utils+for+windows&t=fpas&ia=web
That’s what I used, back when I still had MS-Windows installed…
feels good to say “it’s been years”, tho…
( :
_ /\ _
I like that you actually can ls in power shell now
Yes, yes you can.
Also, WSL and windows terminal go a very long way in making windows actually usable…
Yeah but tbh i really despise powershells syntax. But i’m happy it is pretty powerful.
i’m often amazed at microsoft’s ability to take a useful product and make it agonizing to use
Unfortunately, bash syntax isnt amazing either
But Powershell is worse
Yeah. I’ve said this before and got grilled for it but I wish there was a shell scripting language that doesn’t have arcane syntax.
Fish? I like fish.
But what about Linux subsystem for windows tho
I think you mean the Windows Linux for Subsystem
Those words in that order!
What year is this from? You absolutely can use ls in a windows command prompt now.
As of Aug 26, 2023, Windows command prompt absolutely does not recognize “ls” as a command.
Powershell is a different story.
Source: I type “ls” 40 times a day into a command prompt on my up-to-date win10 PC at work.
I literally just typed it into cmd.exe on Windows 10, fully updated, and it absolutely did work. No idea why it doesn’t work for you.
edit: ???
edit: it’s been traced back to this:
https://github.com/devkitPro/installer/releases
which is an emulator toolset that I didn’t know existed on my system until today.
Lmao
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?
Mystery solved, ls works for me due to this:
https://github.com/devkitPro/installer/releases
which is a toolset that was installed by an emulator package somewhere along the line, I just didn’t know it was there.
Thanks for letting us know!
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.
Out of curiosity what do you do to frequently end up with cmd? I don’t think I’ve touched it in many years at this point.
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.
cmd and batch still has its uses.
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.
The year is 2023, if you’re still using CMD or batch files still that’s on you. It’s like riding a horse down a freeway and yelling at cars.
Sometimes you just need a quick ipconfig or nslookup, or a simple scheduled shutdown /s /f /t 00
You can still do those in PowerShell. Just saying.
Yeah, but it’s muscle memory at this point
Win+r
Cmd
Ipconfig
Gonna take some time to get my hands to type wt instead of cmd
Win+X i ipconfig
deleted by creator
That wasn’t the conversation.
‘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.
That is a fair statement, but also a different topic.
I am thankful to live in an age with WSL.
ok boomer?
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.
deleted by creator
Yes in Windows Server since, IIRC, 2012". No in Windows client versions.
I’m so used to Server commands I sometimes am surprised when commands like
logoff
don’t work.