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 use of egrep command in unix?
in UNIX,what is the command to remove directory with files?
What does find command return in unix?
What is grep r?
What does 'mkdir' command do in UNIX?
what do you understand by 'unix is a portable os'?
what are the different commands used to create files?
How do you move or rename a file or directory?
What does #!/ Bin sh do?
Who wrote grep?
How are UNIX file permissions represented?
How do you remove a crontab file?