What Command will remove a Directory in UNIX?

Answer Posted / swathi

$rm -r dir1
-r removes all contents of dir1 and also dir1 itself.

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are you in or at the office?

822


What does this command do,"$more readme.txt“?

850


Which unix command lists files/folders in alphabetical order?

998


Which command is used to restrict incoming messages?

772


What's a command word?

789






Explain command to show the space allocation of files?

822


How do I use nslookup?

747


How do I use grep to find a file?

799


What is the difference between grep and grep?

784


How do I run a bash script?

797


What is the difference between awk and grep?

780


How do I clear my terminal history?

788


What is the use of egrep command in unix?

804


Is grep faster than awk?

728


Explain mount and unmount command.

826