Good shell sense…
Some good tips to be found for easy command-line editing in your shell.
alias gps='ps aux | grep $1'
alias gls='ls -la $1 | grep $2' Surely more as time goes on, but I often grep ps for a pid (or three) and grep ls to avoid scrolling/get rid of the noise.
To clarify his #10, you only type the substitution and it’s applied on the last command and then run. The bash manpage says:Equivalent to !!:s/string1/string2/ Happy shing.