Enter a command. For example: popeye, dirs, deluge console.

history expansion

Reuse and expand the shell history in sh, bash, zsh, rbash and ksh. More information:
  • Run the previous command as root (!! is replaced by the previous command):
    sudo !!
  • Run a command with the last argument of the previous command:
    {{command}} !$
  • Run a command with the first argument of the previous command:
    {{command}} !^
  • Run the Nth command of the history:
  • Run the command n lines back in the history:
  • Run the most recent command containing string:
  • Run the previous command, replacing string1 with string2:
  • Perform a history expansion, but print the command that would be run instead of actually running it:

This is a tldr pages (source, CC BY 4.0) web wrapper for All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.