Hacker News new | ask | show | jobs
by sbergjohansen 1517 days ago
!! substitutes the last command:

  sudo !!
and

  cd -
takes you to the previous directory.
1 comments

!$ substitutes the last command's arguments, if memory serves.