Computer Science - Unix - Discussion

Discussion :: Unix - Section 1 (Q.No.6)


Which command is used to remove a directory?

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

Answer: Option B


No answer description available for this question.

Amit Upadhyay said: (Dec 9, 2011)  
"mv" command will also serve the purpose.

Mayur Verma said: (Feb 18, 2012)  
"rmdir" removes only empty directories while rm removes directories along with its contents.

Bishu Moharana said: (May 15, 2012)  
'rm' is used to remove dir/file. But if the file is empty then we can use 'rm' or 'rmdir'

Hemanth said: (Nov 27, 2014)  
rm dir means remove directory.

Lavanya said: (Apr 14, 2016)  
rmdir and rm-r also for removing the directory.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.