commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
There are 2 alternatives - vote for the best!
Useful when you forget to use sudo for a command. "!!" grabs the last run command.
\$ which python
\$ ll `!!`
lrwxrwxrwx 1 root root 9 2010-11-08 22:01 /usr/bin/python -> python2.6
If you do not have permission to be root with sudo or sudo program did not install on system, sudo is useless. But this is always work :)
I often forget to type sudo before a command that needs it. This is the quickest way to rerun the command prefixed by sudo.
If you can do better, submit your command here.
You must be signed in to comment.