==>> What are the most useful Unix shell "one-liners" that you use? <<==
Here are a couple of mine to get the conversation started:
1. Repeat the previous command with a substring replacement:
Syntax:
^before^after^
Example:
You entered:
git clonr https://unbelievablylongurl.org/projectdirectory/evenmoreprojects/project.git
Use this:
^clonr^clone^
And your command will be re-run with the replaced substring:
git clone http://unbelievablylongurl.org/projectdirectory/evenmoreprojects/project.git
2. Repeat the previous command with an additional string/character
Shell Idiom:
!!
Example:
You ran a command that requires superuser privileges on your box. Re-run the command without retyping it like this:
sudo !!