Every now and then I need to delete a bunch of files. I don’t do this very often so sometimes I wonder whether my deletion will accidentally delete more files than I’d like. One way to preview which files will get deleted is by echoing your command, e.g.
echo rm -rf *.txt
echo rm -rf *