RSS flow:

Some Bash tips

Search inside historic:

    Ctrl-R: Lets do a history search.
    Ctrl-R, then enter mkd
    This will display the last mkdir commands launched.

Remind the last argument of previous command:

    For that, you have to use: !$.
      ls Scripts
      cd !$

      Will let you enter in the scripts directory.

Remind the last command:

    Enter: !!

Specify to ask for confirmation before launching the Bash command:

    shopt -s histverify
    Display the contents of the last ls command. You just have to validate it to launch it.


Go back