How To Delete a File On 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.
• Use the rm command:
rm <filename>
The rm command, when used without any options, will delete a file from the filesystem.
To delete a file on Linux, use the rm command. For example, to delete a file named “filename.txt”, run the following command:
rm filename.txt