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

You want to copy the user’s home directories to a new location. Which of the following commands will accomplish this?

0 Answers  


What does umask 077 mean?

0 Answers  


what r the different command to check ram,process and hdd of linux machine

4 Answers  


How will you suspend a running process and put it in the background?

0 Answers  


What is df -i command?

0 Answers  


How will retrieves incoming mails from different web sites

4 Answers   HP, Wipro,


When u comment the ctrl+alt+del trap in the /etc/inittab save the file. Tell the command to save the changes without rebooting the machine?

1 Answers   HCL,


What can you type at a command line to determine which shell you are using?

6 Answers   Tech Mahindra,


What is nslookup command?

0 Answers  


What is df command in linux?

0 Answers  


How to reset root password via command Redhat 5.2

13 Answers  


How do you check which file consuming more space in linux?

0 Answers  


Categories