What Command will remove a Directory in UNIX?

Answer Posted / swathi

$rm -r dir1
-r removes all contents of dir1 and also dir1 itself.

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate cat command from more command.

566


Who command in unix?

562


What is grep command in unix with examples?

600


What is pipe command in unix?

659


What is the use of finger command?

585






What does touch command do in unix?

711


What is the command to view process running?

564


What happens when we execute a unix command?

587


What is the use of the command 'ls -x chapter[1-5]' ?

650


Which command is used to find whether the system is 32 bit or 64 bit?

618


What is the command to compare two files in unix?

610


What is grep short for?

542


What command is used to switching between users in unix?

556


What is the use of the tee command?

583


What are the differences among a system call, a library function, and a unix command?

558