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 |
how will you convert a general file to a hidden file?
What does the metacharacter mean?
How do I use grep to find a file?
Differentiate cat command from more command.
What is the size of time_t?
What is the command to compare two files in unix?
how will you login one server's shell prompt to an another server?
5 Answers Cosmic Infotech, Perot Systems,
how unix kernel distinguishes between a normal file and device file ?
7 Answers Google, IBM, McAfee, Vodafone,
what is the command to find out the difference between files and folders?
what is the use of wild cards?
What is the use of finger command?
Give command that will make the file "run.sh" executable?