News for hackers. Stuff that matters.
Re:Ask HN: Teach me something new by sbergjohansen on Saturday April 30, 2022 @05:31AM (#31214597)
!! substitutes the last command:

  sudo !!
and

  cd -
takes you to the previous directory.
Re:Ask HN: Teach me something new by Beldin on Saturday April 30, 2022 @07:08PM (#31220366)
!$ substitutes the last command's arguments, if memory serves.