How To Delete a File Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Use the rm command. Open a terminal window, navigate to the directory containing the file you want to delete, and then type the following command:
$ rm filename
2. Use the unlink command. Open a terminal window and type the following command:
$ unlink filename
3. Use the shred command. Open a terminal window and type the following command:
$ shred -u filename
4. Use the find command. Open a terminal window and type the following command:
$ find . -name “filename” -exec rm {} \;