Can I use rm -i with multiple files?

QuestionsQuestions8 SkillsProBasic Files OperationsOct, 27 2025
087

Yes, you can use rm -i with multiple files. When you do this, the command will prompt you for confirmation before deleting each file specified.

For example:

rm -i file1 file2 file3

You will be prompted for each file:

remove file1? y/n
remove file2? y/n
remove file3? y/n

This allows you to confirm or deny the deletion for each individual file.

0 Comments

no data
Be the first to share your comment!