Which two commands can you use to delete directories?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

You locate a command in the /bin directory but do not know what it does. What command can you use to determine its purpose

581


How do I remove a soft link in linux?

517


Which Command used to lock user password in Linux?

569


Explain difference between nfs soft and hard mouniting points?

515


What is the difference between locating and locate command?

531






Which command is used to uncompress gzip files?

595


How do I check my cpu cores?

534


What commands are used to see all jobs running in the hadoop cluster and kill a job in linux?

558


Write about an internal command.

603


How can I check the exit status of my previous command in Linux operating system?

553


Explain about sh?

592


How do you sort cpu in top command?

545


What is tty in linux process?

515


What does p mean linux?

536


Does linux cp command overwrite?

590