A time-saver for those that forget to sudo, bash substitutes !! for the last command entered, for example
<br /> charles@lucifer$ make sandwich<br /> Permission Denied!<br /> charles@lucifer$ sudo !!<br /> sudo make sandwich<br /> echo "You seriously think I would write a sandwich recipe just to demonstrate bash shortcut?"<br /> You seriously think I would write a sandwich recipe just to demonstrate a bash shortcut?<br />





Comments
Thank you. No longer do I
Thank you. No longer do I have to press Up Arrow, then Home, then write sudo when I forget to put sudo on the start. Not that this is much shorter...
key location time
you have to move your right hand waaay out of position to get home and up, this is much less of a stretch.
Have you seen the size of my
Have you seen the size of my laptop keyboard?
I don't say this often
Mine might well be smaller.
But then I guess it's all to do with key location times. I like to stick to the home keys, especially in the dark.
Add new comment