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.
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.
Can anyone name any living language, scripting or otherwise, without arcane syntax?
Bash came out decades ago and powershell is brand new. It doesn’t really have an excuse to suck.
I hope I didn’t come across as defending ps. PS sucks and whoever decided to have functions use capital case with dashes in between needs to have their brain scanned
i’m often amazed at microsoft’s ability to take a useful product and make it agonizing to use
As long as you don’t have
ls
aliased tols -la
in your brain…PowerShell 7 is pretty sweet ngl
If you can suppress 30 years of " -al" from following his buddy.
That’s actually “-la”, pal.
Updating pacman is always
pacman -yuS
Dir?
what did you say? say that again to my face, I dare you.
I apologize. I didnt mean to offend anyone!
Too many letters
Mir?
Well that’s rude…
Why are DOS commands always so verbose?
deleted by creator
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…
( :
_ /\ _
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
.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.
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.
God everytime!
Cmd? What century is this? Use powershell
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.
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
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.
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.