Can you explain why this works?
$(history -p !!) runs the last command you run. For example if you run less /etc/shadow, then sudo $(history -p !!) would be sudo less /etc/shadow
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.