Can I use wildcards with rm -i?

QuestionsQuestions8 SkillsProBasic Files OperationsOct, 27 2025
076

Yes, you can use wildcards with rm -i. This allows you to interactively delete multiple files that match a specific pattern.

For example, if you want to delete all .txt files in a directory with confirmation, you can use:

rm -i *.txt

This command will prompt you for confirmation before deleting each .txt file in the current directory.

0 Comments

no data
Be the first to share your comment!