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
What is unix command?
What are some command words?
How do I search for a file in unix command?
How do I delete files from command prompt?
Name the various commands that are used for the user information in unix.
What is the difference between cat command and more command?
What does #!/ Bin sh do?
What is the size of time_t?
What is the command to view process running?
Does cp command overwrite files?
What is the use of finger command?
What does the command ' $who | sort –logfile > newfile' do?
Who command in unix?
What is the significance of the 'tee' command?
Which unix command to make a new directory?