Have you ever deleted a file in linux using the shell, but was never asked or confirm to delete it. If you are deleting files and want to get a confirmation prompt, do this command:

This will remove the file junk_file.txt with a confirmation. The -i is there to tell the rm utility you want to display a confirmation before deleting the file.

CODE:
rm -i junk_file.txt