Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Run last command as root. Parent comment
man bash, and search for "^HISTORY EXPANSION" for all the details.
I often find myself running commands like
cp !:2 !:1 # reverses the order of the last two args
cd /somedir && !! # run the last command in a better directory
There are no comments on this comment yet.
man bash, and search for "^HISTORY EXPANSION" for all the details.
I often find myself running commands like
cp !:2 !:1 # reverses the order of the last two args
cd /somedir && !! # run the last command in a better directory