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
How does shebang work?
Is it inbetween or in between?
What is the significance of the 'tee' command?
Which unix command lists files/folders in alphabetical order?
How do I clear my terminal history?
Does cp command overwrite files?
Who wrote grep?
What are the commands in UNIX to list the files in a Directory?
How do you grep a case insensitive?
What is command statement?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system.
How can i findthe right soluion???
My pgm:
#include
Which command is used to restrict incoming messages?
What does #!/ Bin sh do?
What command is used to check the current users?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.