What is the command to remove a directory in Linux?

What is the command to remove a directory in Linux?
Answer
How to Remove Directories (Folders)
  1. To remove an empty directory, use either rmdir or rm -d followed by the directory name: rm -d dirname rmdir dirname.
  2. To remove non-empty directories and all the files within them, use the rm command with the -r (recursive) option: rm -r dirname.
1 сент. 2019 г.
 

Tìm kiếm

Back
Top