nixCraft, 23 days ago Want to run the same command again? In many shells (e.g., tcsh, zsh, bash) you can type "!!" to recall last command and run it. Example: apt install nginx # missed sudo sudo !! # this will run sudo apt install nginx #linux #unix #macos #freebsd
Want to run the same command again? In many shells (e.g., tcsh, zsh, bash) you can type "!!" to recall last command and run it. Example:
apt install nginx # missed sudo sudo !! # this will run sudo apt install nginx
#linux #unix #macos #freebsd