by al_form2000 on 10/21/19, 8:48 AM with 25 comments
by nfriedly on 10/21/19, 1:33 PM
by philshem on 10/21/19, 7:00 PM
by hackbinary on 10/21/19, 2:36 PM
ctrl-a (readline command for beginning of line)
type "sudo"
Also, ctrl-w is really useful. Heck, learning the readline editing keyboard in general is really useful.
by rudiv on 10/21/19, 3:28 PM
by timeattack on 10/21/19, 10:54 AM
More efficient approach is to use keybinding like Ctrl+T to prepend sudo to the current command (or to the previous command if current is empty).
by sonofgod on 10/21/19, 3:53 PM
by gnulinux on 10/21/19, 2:29 PM
by taejo on 10/21/19, 1:53 PM