ExamVeda
Login
Home
This question belongs to Computer Science Unix
Unix
?

Which command is used to remove a directory?

Answer & Solution
Correct Answer: Option B
In Unix, the rmdir command is used to remove or delete a directory. It is specifically designed to remove directories and will only work if the directory is empty. If the directory contains any files or subdirectories, rmdir will not remove it and will generate an error message.
So, rmdir is the correct command to remove a directory.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.