Re:Really Friendly Command Line Intro
by corebo on Sunday July 08, 2018 @02:00PM
(#17485162)
fyi : The vast majority of these commands are aliased within Powershell with the exception of touch
[ Parent
| on HN ]
Re:Really Friendly Command Line Intro
by AnIdiotOnTheNet on Sunday July 08, 2018 @07:36PM
(#17486922)
As a fan and user of Powershell, I'm going to recommend not using the aliases for the unix commands.
For one, they won't act the same. For two, Powershell has a much more consistent and well-named set of commands, which also have their own short alias names by default, and of course you can make your own aliases.
I'm not a fan of the aliasing because the actual CLI for these aliased commands can be very different from the originals.
I was pleasantly surprised when teaching the CLI to discover that PowerShell (and cmd it seems) has similar conventions to bash when it comes to `|` and `>`. But it annoyed the hell out of me that PowerShell aliases `curl` to something that is most definitely not a drop-in replacement for *nix curl. I ended up having to teach people on Windows how to download the proper curl, and then to refer to it as `curl.exe`.
Related: There was a RFC to get the aliases removed, but it ended up being rejected.
Blog Post: https://daniel.haxx.se/blog/2016/08/19/removing-the-powershe...
PR: https://github.com/PowerShell/PowerShell/pull/1901
RFC: https://github.com/PowerShell/PowerShell-RFC/issues/16
Decision: https://github.com/PowerShell/PowerShell-RFC/blob/master/X-R...
Re:Really Friendly Command Line Intro
by AnIdiotOnTheNet on Sunday July 08, 2018 @07:34PM
(#17486911)
Why didn't you teach them how to use Invoke-WebRequest instead?