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 difference between pipe(|) and tee command..
what do you understand by 'building block primitive'?
Is it inbetween or in between?
What is mtime in find command?
How do you create a directory in UNIX?
What is grep and sed command?
Who wrote grep?
How i'll delete a particular line from the file? Please give answer as soon as possible. Thanks in advance.
How do I use grep to find a file?
What is clustering in HP and how it's work?
Write a command that will display files in the current directory, in a colored, long format.
what is the command to get help on a UNIX terminal?