answersLogoWhite

0

The easiest way is to use the 'rm' command recursively. For example, the command:

rm -rf /data/test/docs/fall

would remove the directory 'fall' from /data/test/docs, even if it isn't empty.

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
ReneRene
Change my mind. I dare you.
Chat with Rene
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan

Add your answer:

Earn +20 pts
Q: In Unix how to remove a directory that is not empty?
Write your answer...
Submit
Still have questions?
magnify glass
imp