How to delete a directory containing files and folders?
Answers were Sorted based on User's Feedback
Answer / subbareddy kake
rm <file name>: For deleting the file
rm -i:It will ask conformation
rmdir:For removing the directory
rm -r:It remove recursively all files and directory itself
rm -rf: for deleting the all files and subdirectories in
current directory
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / padmanaban
"find -type d -iname 'directoryname' | xargs rm -rf" this is
also a way to remove the folder and files.
| Is This Answer Correct ? | 4 Yes | 0 No |
what is the command to find out which shell you are running?
What is the use of finger command?
what is Online(STM) and offline diagnostics in HP-UX?
What is the difference between awk and grep?
What is grep and how do you use it?
What does the md command do?
Will rm -r* removes hidden files?
How would you find the size of a file or directory?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
how to sort the content of the file based on numeric values
What is the size of time_t?
What is use of sed command?
12 Answers BitWise, Infosys, Reliance,