How do I force delete a file in Linux?

Tiên Hương

New member
How do I force delete a file in Linux?
Answer
To remove file or directory forcefully, you can use
the option -f force a deletion operation without
rm prompting you for confirmation. For example if a file is unwritable, rm will prompt you whether to remove that file or not, to avoid this and simply execute the operation.
 

Tìm kiếm

Back
Top