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 virtual machine?
A file has 1000 lines and i want to display only 1st line how to do it? pls ..tel me
How can you see the command line history?
What are the commands in UNIX to list the files in a Directory?
What is the difference between awk and grep?
Write a command to kill the last background job?
What are the differences among a system call, a library function, and a unix command?
What is awk command used for?
What is nr in awk command?
How do I run a bash script?
In UNIX, what is the command to kill a process?
How do you change your account's password?