Examveda
Examveda

What command is used to remove the directory?

A. rdir

B. remove

C. rd

D. rmdir

E. None of the above

Answer: Option D

Solution(By Examveda Team)

The rmdir command is used to remove directories in Linux.
When you want to delete an empty directory from your system, you use the rmdir command followed by the directory name.
It stands for "remove directory".
It's important to note that this command only works for empty directories. If the directory contains any files or other directories, you need to use the rm command with appropriate options to remove them.
So, in summary, to remove directories in Linux, you'd use the rmdir command.

This Question Belongs to Computer Science >> Linux

Join The Discussion

Comments ( 2 )

  1. Rohit Mohite
    Rohit Mohite :
    4 years ago

    Option d is correct.

    if a directory containing a files then we can use "rm" command.
    and "rmdir" command used only to delete an empty directory.

  2. VIKASH BHAGAT
    VIKASH BHAGAT :
    5 years ago

    To delete the user with its home directory is used?

Related Questions on Linux