11.6 Using !$ for Safety with Wildcards
We all know about using ls
before a wildcarded rm
to make sure
that we're only deleting what we want. But that doesn't really solve
you can type
Using the history mechanism to grab the previous command's arguments is a good way to prevent mistakes.