23.4k views
3 votes
Which option can be used with the rm command to prompt before deleting?

a) l
b) A
c) -P
d) -i

User Phelhe
by
8.5k points

1 Answer

1 vote

Final answer:

The '-i' option with the rm command prompts the user for confirmation before deleting files.

Step-by-step explanation:

The option that can be used with the rm command to prompt before deleting is -i. When this option is used, rm will ask for confirmation before removing each file, giving you a chance to avoid accidentally deleting important files. To use it, type rm -i filename, where filename is the name of the file you want to delete.

User Vakas
by
9.1k points