Computer Science - Linux - Discussion

Discussion :: Linux - Section 1 (Q.No.3)


What command is used to remove the directory?

[A]. rdir
[B]. remove
[C]. rd
[D]. rmdir
[E]. None of the above

Answer: Option D


No answer description available for this question.

Sandeep said: (Mar 6, 2013)  
What is command rmdir?

Jagannath said: (Jun 19, 2013)  
It also used rm -rf command.

So we can use both.

-rf option is use to del permanently.

Bibhuti said: (Jul 24, 2013)  

It delete only empty directory.

Venkat said: (Nov 1, 2013)  
It will remove only empty directory's only, if you want to remove content directory's.

Then go for rm -rfv filename.

Buganda said: (Oct 11, 2017)  
Absolutely correct.

rmdir removes the directory, also rmdir-rf removes directory's contents.

Venkatesh said: (Dec 7, 2017)  
rmdir is a remove directory command.

Santanu Panda said: (Aug 21, 2018)  
rm -rf will delete permanently.

So, it will delete an Empty directory.

Soham said: (Sep 21, 2018)  
rm -r *

To delete all directories.

Sumanth said: (Jan 7, 2022)  
It's rm -rf.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.