Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
schoen
· 4y ago · 0 comments
There is also "!!" for the entire prior command line. Someone elsewhere in this thread mentioned the usefulness of
sudo !!
for "run the entire previous command under sudo".
Another example could be
echo "!!" > myscript
for "save the previous command into the file myscript".
Comments
[–]
senjin
4y ago
I also use cat `which !!` every once in a while