3 ms·
All these article links should just end up here: http://www.commandlinefu.com/commands/browse http://www.commandlinefu.com/commands/browse you can sort by dat
by rdtsc 15y ago
All these article links should just end up here:
http://www.commandlinefu.com/commands/browse http://www.commandlinefu.com/commands/browse
you can sort by date, #(votes) and also search
The top all-time popular one is:
* run last command as root: $ sudo !!
- nuclear_eclipse 15y agoTo be fair, that's not even a command; that's a shell expansion that automatically substitutes your previous command in place of the !! before executing it.
- lanstein 15y agoThank you for another '...and this is why I love HN' moment.
- Nick_C 15y agoJust be aware it may not execute the command you think. man bash for HISTIGNORE. Personally I never use it with sudo; it's too dangerous.
- nuclear_eclipse 15y agoThis is also why I disabled HISTIGNORE in both bash and zshell. zshell also allows me to press TAB to expand the command in-place before I press enter, so I can still use the shortcut without the danger.
- pkrumins 15y agoCheck this out -- CommandLineFu One-Liners Explained: http://www.catonmat.net/blog/top-ten-one-liners-from-commandlinefu-explained/ http://www.catonmat.net/blog/top-ten-one-liners-from-command...