rmdir when directory is not empty

Daniel B. Thurman dant at cdkkt.com
Tue Dec 20 18:13:56 UTC 2005


>From: fedora-list-bounces at redhat.com
>[mailto:fedora-list-bounces at redhat.com]On Behalf Of Chasecreek
>Systemhouse
>Sent: Tuesday, December 20, 2005 10:06 AM
>To: For users of Fedora Core releases
>Subject: Re: rmdir when directory is not empty
>
>
>On 12/20/05, kebbelj at scripting-solutions.com
><kebbelj at scripting-solutions.com> wrote:
>> In the GUI, I can trash a non-empty directory with a 
>right-click and Move to Trash. What command line option would 
>I use with rmdir to remove a non-empty directory?
>
>
>The best way to nuke a directory is -
>
># Delete the files.
>su - -c "find /path/to/dirName -type f -exec rm -f {} \;"
>
># Delete the directory paths.
>su - -c "rmdir -p /path/to/dirName"

OR rm -fr /dir/dir-delete-me

>
>HTH/Bill
>--
>WC -Sx- Jones | http://ccsh.us/ | Open Source Consulting
>
>-- 
>fedora-list mailing list
>fedora-list at redhat.com
>To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>
>-- 
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.1.371 / Virus Database: 267.14.1/207 - Release 
>Date: 12/19/2005
> 
>

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.1/207 - Release Date: 12/19/2005
 




More information about the fedora-list mailing list