Ultimo comando

  • !!$ - last argument from previous command
  • !!^ - first argument (after the program/built-in/script) from previous command
  • !!* - all arguments from previous command
  • !! - previous command (often pronounced “bang bang”)
  • !n - command number n from history
  • !-n - last n command, counting from last executed command (!! == !-1)
  • !pattern - most recent command matching pattern
  • !!:s/find/replace - last command, substitute find with replace

Para más info Unix History