How do you force delete a folder in Linux?

Thu Ha

New member
How do you force delete a folder in Linux?
Answer
How to force delete a directory in Linux
  1. Open the terminal application on Linux.
  2. The rmdir command removes empty directories only. Hence you need to use the rm command to remove files on Linux.
  3. Type the command rm -rf dirname to delete a directory forcefully.
  4. Verify it with the help of ls command on Linux.
 

Tìm kiếm

Back
Top