News for hackers. Stuff that matters.
Re:Ask HN: Teach me something new by schoen on Saturday April 30, 2022 @02:45PM (#31218198)
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".
Re:Ask HN: Teach me something new by senjin on Sunday May 01, 2022 @09:50AM (#31224999)
I also use cat `which !!` every once in a while