Posted November 16, 2008 at 10:11pm in
Sys Admin
No I’m not excited about sudo, well I sorta am. I have run into situations where I typed a long command and forgot to type sudo. This is a huge problem when you can’t hit the home key and go to the start of the command, which happens in a lot of SSH tools.
The Fix!!!
sudo !!
Typing that will execute the last command, but it will execute it as if you had typed sudo at the beginning. This is a huge time saver.
Posted November 16, 2008 at 10:11pm in
Sys Admin
Similar to the double bang trick is bang+asterisk. This combinations takes just the parameters from the previous command.
[user@host ~]$ ls /home
user
[user@host ~]$ cd !*
cd /home
[user@host home]$
Enjoy!
Posted November 16, 2008 at 01:11pm in
Site News
It seems my previous post, Work Environment developed a little problem where it would keep redirecting so the post was not viewable. I have changed the name from Development Environment to Work Environment.
I will be moving technology posts from my other blog to this one.