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

Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

642


What's a command word?

591


What is difference between grep and find command in unix?

579


How do I run a bash script?

584


Differentiate cmp command from diff command.

586






What is the significance of the 'tee' command?

596


What does find command return in unix?

594


What is sed awk grep?

609


What do chmod command do?

604


What command is used to switching between users in unix?

564


What are filter commands in unix?

555


What is the difference between awk and grep?

561


what is the advaantage of each user having its own copy of the shell?

2036


Is grep faster than awk?

559


What does sed command do in unix?

566