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 clustering in HP and how it's work?
what will this do $cat > file.c ?(file.c is a file in current directory)
What is file system in unix??
In UNIX, what is the command to kill a process?
What does mkdir up2date; touch outdated up2date do?
How do you list the files in an UNIX directory while also showing hidden files?
What are the unix commands?
how to sort the content of the file based on numeric values
How do you create a directory in UNIX?
Can you explain a little bit about command substitution?
What is used to type command?
Does cp command overwrite files?