Saturday, 15 January 2011

bash - Repeat last command with "sudo" -


I often forget to run commands with sudo I get the last code to sudo I am looking for a way to create a bass function (or nickname) repeated with .

Any ideas?

  s () {sudo $ (history 1)}   

Div class = "post-text" itemprop = "Text">

You can type:

  pseudo !!   

(see.)

No comments:

Post a Comment