in UNIX,what is the command to remove directory with files?

Answer Posted / rejaul

at first delete the file in that directory with
rm *

then comeout of that directory and then
type rmdir (directory name)

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I use grep to search for a file?

590


What does this command do? Cat food 1 > kitty

986


What is the command to compare two files in unix?

630


How can we use grep command in unix?

625


What does 'mkdir' command do in UNIX?

671






Which command is used to delete all files in the current directory and all its sub-directories?

682


What are bash commands?

610


Describe the usage and functionality of the command rm –r * in unix?

837


What is the pipe command?

596


What are the commands in UNIX to list the files in a Directory?

630


What is unix command line?

627


how to sort the content of the file based on numeric values

1266


Explain how to use grep command to list find the records of a file containing 10 different strings?

607


Can you enlist some commonly used network commands?

610


Can you explain a little bit about command substitution?

626