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 use of awk command in unix?
When the shell is reading the command line what is the difference between text enclosed between double quotes ( ” ) and text enclosed between signal quotes ( ’ )?
What are filter commands in unix?
What are bash commands?
Hi All, Can you please let me know how to grep for a particular pattern in unix. I want to print the dates from the file exp.txt. the date pattern is DD:MM:YYYY, I just want to print all the dates from the file exp.txt.
8 Answers Concentrix, IBM, Symantec, TCS,
what is the meaning of this command rm -rf / what will it do ?
What is the command to compare two files in unix?
How do you stop a running process?
What is grep r?
What do know about tee command?
How will you know who are the users logged in to the system before 15 minutes?
distinguish between paging and swapping?