Do not press the up arrow 50 times. Press Ctrl+R , then type part of a previous command. Press Ctrl+R again to cycle through matches.
To help you master Bash, we have created a comprehensive PDF guide that covers all 101 hacks. The guide includes:
The complete PDF version (usually 200+ pages) is organized into 11 logical sections or "discs." Bash 101 Hacks Pdf 11
Start a long process, suspend it with Ctrl+Z , then type bg to keep it running in the background. Use jobs to see background tasks.
$ sl -l # Oops, meant 'ls -l' $ ^sl^ls^
The original online series was released in parts. The final installment (Part 11) often covered "Debugging Shell Scripts" —using set -x , trap , and shellchecking.
$ cat servers.txt | while read line; do ssh $line 'uptime'; done Do not press the up arrow 50 times
The book is structured into categories like: