O'Reilly logo
  • Henry Huang thinks this is interesting:

Here is a useful tip: Whenever you use wildcards with rm (besides carefully checking your typing!), test the wildcard first with ls. This will let you see the files that will be deleted. Then press the up arrow key to recall the command and replace the ls with rm.

From

Cover of The Linux Command Line

Note

A little tip for using rm. First use "ls"command to see the files u r about to del.