How do I delete a file without confirmation in Linux?

How do I delete a file without confirmation in Linux?
Answer
Remove a file without being prompted
While you can simply unalias the rm alias, a simpler and generally used method to remove files without being prompted is to add the force -f flag to the rm command. It is advisable that you only add the force -f flag if you really know what you are removing.
 

Tìm kiếm

Back
Top