3 ms·
A notable thing about unix commands is that they're usually very short: "cd", "ls", "grep", "sed", "cat", etc. This is obviously a remnant of earlier times, but
by OskarS 7y ago
A notable thing about unix commands is that they're usually very short: "cd", "ls", "grep", "sed", "cat", etc. This is obviously a remnant of earlier times, but I actually think that it serves the unix command quite well even today. These are commands you want to type quickly and many right after another. Powershell's "Get-ChildItem" and "Select-String" are annoyingly verbose in comparison.
- shyn3 7y agoGet-ChildItem is gci. For Select-String I don't think there is a shorter version. Many of the commands have shorter aliases they are just not as intuitive. /r/PowerShell is really helpful if you are stuck also there is a Slack POSH group that is really helpful.
- vips7L 7y agoOn my W10 machine select-string was aliased to grep. Almost every command was already aliased. get-content -> cat set-location -> cd get-childitem -> ls etc
- jodrellblank 7y ago"sls" is select-string. Get-Alias to see them all. "get-alias -Definition Select-String" to look for one for a specific command.