How to delete a directory containing files and folders?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command can you use to find the currently running process in unix server?

582


What is the behavioural difference between cmp and diff commands?

670


What does sed command do in unix?

556


What is s and g in sed command?

554


How do I find previous commands in unix?

592






What command is used to check the current users?

590


What is a bash command?

622


Write a command that will display files in the current directory, in a colored, long format.

675


Using unix command how to display no of records in oracle?

602


What is command statement?

539


What does grep v grep do?

546


What is awk good for?

578


How to find $ai_serual resolved path by using unix

1020


Are you in or at the office?

609


How do I use nslookup?

568