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?
August 28, 2020 at 1:06 PM
#3697
Santhosh Kumar D
Keymaster
@santhoshIf 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