Actions

 Language:
 RSS flow:


Some Bash tips


Search inside historic:

    Ctrl-R: Lets do a history search.
    Example:
    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: !$.
      Example:
      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
    Then,
    !ls
    Display the contents of the last ls command. You just have to validate it to launch it.

 

Go back