Which two commands can you use to delete directories?

Answers were Sorted based on User's Feedback



Which two commands can you use to delete directories?..

Answer / sandeep kumar

1. rmdir <directory Name>

2. rm -rf <directory name>

Is This Answer Correct ?    39 Yes 0 No

Which two commands can you use to delete directories?..

Answer / amit rana

1. rmdir <directory name> : use to delete only blank
directories .

2. rm -rf <directory name> : use to delete directory & its
all contents.

Is This Answer Correct ?    28 Yes 0 No

Post New Answer

More Linux Commands Interview Questions

How to hide the partition in grub booting?

0 Answers  


You wish to print a file ‘draft’ with 60 lines on a page. What command would you use?

0 Answers  


What does grep command do?

0 Answers  


Write a cron entry for the following scenario:- At 10:30 AM for every Sunday of every 1st month of a quarter.

7 Answers   HP, IBM,


Which commands are used to set a processor-intensive job to use less cpu time?

0 Answers  






How do you ask politely?

0 Answers  


How do you read ext2/3 file system in windows?

8 Answers   HP,


What language is a makefile written in?

0 Answers  


Which command is used to compare the files?

0 Answers  


What is ulimit in linux?

0 Answers  


What is 9 in kill?

0 Answers  


What is the difference between command ‘ping’ and ‘ping6’?

0 Answers  


Categories