How do I delete a directory in Linux terminal?

Nguyễn Pháp

New member
How do I delete a directory in Linux terminal?
Answer
To delete (i.e. remove) a directory and all the sub-directories and files that it contains,
navigate to its parent directory, and then use the command rm -r followed by the name of the directory you want to delete (e.g. rm -r directory-name ).
 

Tìm kiếm

Back
Top