8 ms·
Or make history work for you: shopt -s histverify histreedit Bash will let you then confirm the actual command it's going to run: sudo !!
by ben509 9y ago
Or make history work for you:
shopt -s histverify histreedit
Bash will let you then confirm the actual command it's going to run:
sudo !!
- mulmen 9y agoI use zsh and I don't know what shopt is. That's two commands and !! doesn't work in aliases.