UNIX-WIZARDS Digest V12#120

James_W_Wood.wash_mtc at xerox.com James_W_Wood.wash_mtc at xerox.com
Mon Jun 3 22:38:46 AEST 1991


>----------------------------

>From: psyxsgp at otago.ac.nz
>Subject: should I be asking this question here?
>Date: 31 May 91 06:20:44 GMT
>To:       unix-wizards at sem.brl.mil

>How do I delete a non empty directory ..

-----------------------------

Wow! A question I know the answer to! While I am certainly not a UNIX wizard, I
feel confident that the command:
		rm -r <directory name>
will do the trick. The -r option tells the rm command to delete everything in
the directory, including the directory, recursively. (Start deleting the files
at the bottom, and work backwards until the entire directory is deleted.)

		James



More information about the Comp.unix.wizards mailing list