What is rmdir command used for in Linux?
Experience Level: Junior
Tags: Linux
Answer
The rmdir command is used to remove empty directories from the filesystem in Linux. The rmdir command removes each and every directory specified in the command line only if these directories are empty. So if the specified directory has some directories or files in it then this cannot be removed by rmdir command.
Related Linux job interview questions
What is touch command used for in Linux?
Linux JuniorWhat is rm command used for in Linux?
Linux JuniorWhat is mkdir command used for in Linux?
Linux JuniorWhat is mv command used for in Linux?
Linux JuniorWhat is cp command used for in Linux?
Linux Junior