Hacker News new | ask | show | jobs
by hackbinary 2438 days ago
up arrow

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.

2 comments

        $ foo bar baz<cr>
        ^P^A<esc>u
        $ FOO bar baz<cr>
That's three keystrokes less - even for the history (!!) version. :-)
sudo !!