How do I delete a file in a directory in Linux?

How do I delete a file in a directory in Linux?
Answer
To remove a directory that contains other files or directories, use the following command. In the example above, you would replace “mydir” with the name of the directory you want to delete. For example, if the directory was named files, you would type rm -r files at the prompt.
 

Tìm kiếm

Back
Top