3 ms·
There is also "!!" for the entire prior command line. Someone elsewhere in this thread mentioned the usefulness of sudo !! for "run the entire previous comm
by schoen 5y ago
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".
- senjin 5y agoI also use cat `which !!` every once in a while