Reply To: How to delete a file in the Linux terminal?

LearnTips LearnTips How to delete a file in the Linux terminal? Reply To: How to delete a file in the Linux terminal?

#3697
Santhosh Kumar D
Keymaster
@santhosh

If a file is write-protected, you will be prompted to confirm the deletion. To force delete a file without being prompted, you need to use the rm -f command followed by the file name.

rm -f filename