← Useful Tips
Linux / WSLLinux

!$: Reuse the previous command's last argument

Use !$ to reuse the previous command's last argument. It is especially handy when you live in terminals and repeat long commands.

!$

Why it helps

Use !$ to reuse the previous command's last argument. It is especially handy when you live in terminals and repeat long commands.

How to use it

  1. Open the relevant app or terminal.
  2. Use the shortcut or command above in the relevant context.
  3. Check the result; for commands that change data, test on a small example first.
People also search for
!$: Reuse the previous command's last argument!$reuse the previous command's last argumenthow to reuse the previous command's last argumentLinux / WSL reuse the previous command's last argument

Related tips