What Command will remove a Directory in UNIX?
Answer Posted / sambasivarao
This has two options
1) If directory is an empty directory
$rmdir <directory name>
2) If it is non-empty directory
$rm -rf <directory name>
-r means delete recursively
-f means delete forcibly.
It deletes your mentioned directory without informing
you that it is going to delete the whole directory (sub
directories and files in that directory)
J. Sambasivarao
91+ 9948280248
| Is This Answer Correct ? | 24 Yes | 0 No |
Post New Answer View All Answers
Name the unix command to find how many days the server has been up.
What difference between cmp and diff commands?
What does 'mkdir' command do in UNIX?
What is the difference between grep and grep?
Describe the zip/unzip command using gzip.
How do I use nslookup?
What is the command to find hidden files in the current directory?
Does cp command overwrite files?
What do know about tee command?
What is rmdir command?
Which command is used to restrict incoming messages?
What does touch command do in unix?
What is grep in bash?
What is the command to compare two files in unix?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?