Useful BASH-command: !!

When ever you use the terminal in Linux or OS X, and forget to add sudo in front of a command that needs the privileges, you can simply type sudo !! to run the same command with sudo. awesome. “!!” Will repeat the last issued command, and can probably be used for other useful things, too.

Thanks, Peder 2.

No related posts.

This entry was posted in Programming and tagged , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

2 Comments

  1. Posted December 15, 2009 at 17:28 | Permalink

    This is simply amazing! Will save me a lot of time! Thank you very much!!!

  2. Posted December 15, 2009 at 17:34 | Permalink

    This is simply fantastic! I will save a lot of time! Thanks dude!!!!!

    That is cool
    !!

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>