Home Download Ubuntu

What is "sudo bang bang”?


"sudo bang bang" is a very usefull command when working in CLI.
Some Linux distros have you login as a user instead of an administrator.
So, to do something admin-wise, you have to proceed the command with “sudo” (Super-User DO), which tells the system “you will do this, because I’m God and I said so.” The !! / bang-bang (! = bang) is basically a shortcut you can use to repeat the previous command. So, typical scenario is that you try a command, and it kicks back a message saying you have to be an admin to do that. So, you can either type “sudo ” to run that command as super-user/admin, or you can type “sudo !!” where !! tells the system to use the previous command that was attempted.

Related posts: http://justinsomnia.org/, Original comic from xkcd by Randall Munroe

0 comments:

Post a Comment