Do manual do bash :
9.3.1 Event Designators
!!
- Refer to the previous command. This is a synonym for ‘!-1’.
E na sudo
man page :
sudo
allows a permitted user to execute a command as the superuser or another user, as specified in the sudoers file.
Portanto, sudo !!
significa executar o comando anterior como superusuário.