← Useful Tips
!$: 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
- Open the relevant app or terminal.
- Use the shortcut or command above in the relevant context.
- 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