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 does the md command do?
How do I run a bash script?
What is the basic difference between unix and windows operating systems?
43 Answers Bopro, College School Exams Tests, CTS, IBM, IT-Kids, Priyadarshini, Sybian Technologies, Tolani Maritime,
how to make IGNITE-BACKUP in HP-UX?
What is the function of grep command in unix?
distinguish between interrupts and exceptions?
Can you explain a little bit about command substitution?
why metadb requires a seperate slice to create Solaris volume manager
distinguish between multi-tasking,multi-user,multi- processing and time sharing?
7 Answers Alcatel, Cisco, Infosys, University Exams,
What is a command and examples?
What is the syntax of grep command and what is its use?
What are the differences among a system call, a library function, and a unix command?