Bash shortcuts

This post contains three shortcuts of bash.

Tip1

Tip 147:
To place the NUM-th argument from the most recent command do <Alt>+<NUM>+<.>:

   $ echo a b c
   $ cat <Alt>+2+<.>

Becomes:

   $ cat b

Tip2

To search and using history command do <Ctrl>+<r>, then type the keywords to find the command used before.

Tip3

To quickly jump to the begin of the command do <Ctrl>+<a>.
To quickly jump to the end of the command do <Ctrl>+<e>.

Credits

  • TACC - Texas Advanced Computing Center