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 are processor execution levels and priorities?
How can we "forked" process in UNIX? How then recognize in any of the branches we?
what is the default signal kill in unix?
What are reported commands?
in a growing log file how will you see the 1st 99 lines?
what is the difference between commmands cmp and diff?
How would you find the size of a file or directory?
What is the general format of unix command syntax?
What is the command to find hidden files in the current directory?
What is the command to find maximum memory taking process on the server?
what are processor execution levels and priorities?
What is the size of time_t?