It gets better. PowerShell 5, which is still the default installation on Windows 11, aliases curl and wget to Invoke-WebRequest. The fucked-up part is that Win11 includes the real curl too, but the alias shadows it, and you have to use curl.exe. The even more fucked-up part is that Invoke-WebRequeststill uses Internet Explorer to parse the result, and will panic if -UseBasicParsing is not passed every time, or IE isn’t installed and initialized.
I used to develop applications in PowerShell. I still wear the mental scars.
The even more fucked-up part is that Invoke-WebRequeststill uses Internet Explorer to parse the result, and will panic if -UseBasicParsing is not passed every time, or IE isn’t installed and initialized.
CTRL+L and clear command do two different things (at least when using Bash on Debian):
CTRL+L scrolls the terminal output one screen so you don’t see your previous output, unless you scroll up;
clear does indeed clear terminal output completely, and your previous command history is available only through the history command.
If you want CTRL+L to clear your screen completely you can add following to the .bashrc (or other file that is sourced when starting Bash, e.g. .bash_bindings):
bind -x '"\C-l":clear'
Note that it might not work if you use Vi mode inside Bash, but who does that.
Mint comes with dir aliased for ls, and the only other one I regularly use is cls for clear.
Yes I grew up on DOS, how can you tell?
Powershell does the opposite, having an alias from
ls
to whatever the powershell equivalent ofdir
is.It gets better. PowerShell 5, which is still the default installation on Windows 11, aliases
curl
andwget
toInvoke-WebRequest
. The fucked-up part is that Win11 includes the realcurl
too, but the alias shadows it, and you have to usecurl.exe
. The even more fucked-up part is thatInvoke-WebRequest
still uses Internet Explorer to parse the result, and will panic if-UseBasicParsing
is not passed every time, or IE isn’t installed and initialized.I used to develop applications in PowerShell. I still wear the mental scars.
That is absolutely horrifying.
I got used to all the other Linux commands, but I had to make an alias for md=mkdir. Why that already isn’t a thing is beyond me.
I have a simple way of getting around that - I only make directories in the GUI.
People type
clear
instead ofCTRL+L
?I’ve never had a terminal that that didn’t work in. Or at the very least have a shortcut be able to be set for.
CTRL+L
andclear
command do two different things (at least when using Bash on Debian):CTRL+L
scrolls the terminal output one screen so you don’t see your previous output, unless you scroll up;clear
does indeed clear terminal output completely, and your previous command history is available only through thehistory
command.If you want
CTRL+L
to clear your screen completely you can add following to the.bashrc
(or other file that is sourced when starting Bash, e.g..bash_bindings
):bind -x '"\C-l":clear'
Note that it might not work if you use Vi mode inside Bash, but who does that.