Home >Topic List >How to delete a directory in LINUX

How to delete a directory in LINUX

LINUX can use rm and find to delete directories. Detailed introduction: 1. rm command, to delete a directory, you need to use the -r option, which means recursively deleting the directory and its contents; 2. -r option, the rmdir command can only delete empty directories if there are files or subdirectories in the directory. , the rmdir command will not be able to delete it.