The Art of Command Line (2015)

The Art of Command Line (2015)

In Bash, use Tab to complete arguments or list all available commands and ctrl-r to search through command history (after pressing, type to search, press ctrl-r repeatedly to cycle through more matches, press Enter to execute the found command, or hit the right arrow to put the result in the current line to allow editing). A useful habit is to start a script like this, which will make it detect and abort on common errors and print a message:

In Bash, note there are lots of kinds of variable expansion. It can be useful to make a few optimizations to your ssh configuration; for example, this contains settings to avoid dropped connections in certain network environments, uses compression (which is helpful with scp over low-bandwidth connections), and multiplex channels to the same server with a local control file:

For interactive selection of values from the output of another command, use or .

Source: github.com