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 command to find out the difference between files and folders?
What does grep v grep do?
Which unix command lists files/folders in alphabetical order?
how to change a normal file into hidden file
What command a user use to view a long text file one page at a time in UNIX?
What UNIX command will control the default file permissions when files are created?
What command will change your prompt to myprompt?
How do you move a process which is running background to foreground?
What is the syntax of grep command and what is its use?
What is rmdir command?
Suppose 1000 processes are running on the system out of those if you have to show only certain process ids which command will you use?
How does a user get the current date, time in UNIX?