Re: how do I delete not empty directories
I have been trying to delete directories that are not empty. I try doing a rm -d * but I get a response that the operation is not allowed. I am logged in as root. What am I doing wrong. I am looking something that works like deltree in dos. rm -rf dirname In general, refer to man rm, or man whatever. They have ALL the answers. Alex Y. -- _ _( )_ ( (o___ +---+ | _ 7 |Alexander Yukhimets| \()| http://pages.nyu.edu/~aqy6633/ | / \ \ +---+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how do I delete not empty directories
On Sun, May 10, 1998 at 01:23:20PM -0800, Britton wrote: Good point. It's actually a dangerous thing to do period. It's not a question of if you will one day trash crucial stuff, it's when. I reccoment you make up a ~/recycle directory or something like it and then use mv -R whatever ~/tmp. Possibly a dangerous suggestion. If you get used to having a system where files are not really deleted, then one day you'll use another system, rm -rf something and it's really gone. Hamish -- Hamish Moffatt, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Latest Debian packages at ftp://ftp.rising.com.au/pub/hamish. PGP#EFA6B9D5 CCs of replies from mailing lists are welcome. http://hamish.home.ml.org -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how do I delete not empty directories
On Mon, 11 May 1998, Hamish Moffatt wrote: Possibly a dangerous suggestion. If you get used to having a system where files are not really deleted, then one day you'll use another system, rm -rf something and it's really gone. That's why I stopped doing that. I just learned not to use rm -rf unless I really, really meant it. Will -- | [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] | | http://www.cis.udel.edu/~lowe/ | |PGP Public Key: http://www.cis.udel.edu/~lowe/index.html#pgpkey| -- | You think you're so smart, but I've seen you naked | | and I'll prob'ly see you naked again ... | | --The Barenaked Ladies, Blame It On Me | -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how do I delete not empty directories
On Sun, May 10, 1998 at 11:10:45AM -0400, Keith wrote: I have been trying to delete directories that are not empty. I try doing a rm -d * but I get a response that the operation is not allowed. I am logged in as root. What am I doing wrong. I am looking something that works like deltree in dos. rm -R but watch out especially when using it as root. As a dos user I was advised to do a dir dirname/*.* before I did a del dirname/*.*. Would doing a ls -R show the directories and files such that one could reliably predict what rm -R will do? The command line could be edited to substitute the rm for the ls. Perhaps this would help avoid disasters to some extent -- unless one fouls up the command line editing. -- [EMAIL PROTECTED] Jack Kern Yarmouth, Nova Scotia Debian GNU/Linux i386 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how do I delete not empty directories
rm -rf directory_name try `man rm' for more info. On Sun, 10 May 1998, Keith wrote: I have been trying to delete directories that are not empty. I try doing a rm -d * but I get a response that the operation is not allowed. I am logged in as root. What am I doing wrong. I am looking something that works like deltree in dos. Keith [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
how do I delete not empty directories
I have been trying to delete directories that are not empty. I try doing a rm -d * but I get a response that the operation is not allowed. I am logged in as root. What am I doing wrong. I am looking something that works like deltree in dos. Keith [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how do I delete not empty directories
On Sun, May 10, 1998 at 11:10:45AM -0400, Keith wrote: I have been trying to delete directories that are not empty. I try doing a rm -d * but I get a response that the operation is not allowed. I am logged in as root. What am I doing wrong. I am looking something that works like deltree in dos. You want rm -r And it's a dangerous command that can wipe your disk if you are not careful. Nils -- *-* | Quotes from the net: L Linus Torvalds, W Winfried Truemper | | Lthis is the special easter release of linux, more mundanely called 1.3.84 | | WUmh, oh. What do you mean by special easter release?. Will it quit | * Wworking today and rise on easter? * pgpW6oAyWSh1O.pgp Description: PGP signature
Re: how do I delete not empty directories
On Sun, 10 May 1998, Nils Rennebarth wrote: On Sun, May 10, 1998 at 11:10:45AM -0400, Keith wrote: I have been trying to delete directories that are not empty. I try doing a rm -d * but I get a response that the operation is not allowed. I am logged in as root. What am I doing wrong. I am looking something that works like deltree in dos. You want rm -r And it's a dangerous command that can wipe your disk if you are not careful. A not so dangerous command would be: cd dir rm * cd .. rm dir -Egon -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how do I delete not empty directories
Keith wrote: I have been trying to delete directories that are not empty. I try doing a rm -d * but I get a response that the operation is not allowed. I am logged in as root. What am I doing wrong. I am looking something that works like deltree in dos. I have no idea how deltree works, but to remove a directory, it's files, and subdirectory(s) and their files sub-directory(s): rm -rf /path/to/the/directory_you_want_to_be_rid_of will do the job. man rm will tell you about this and other rm capabiliies it detail. Keith [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- - Ralph Winslow [EMAIL PROTECTED] Insert sardonic phrase here -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how do I delete not empty directories
On Sun, 10 May 1998, Keith wrote: I have been trying to delete directories that are not empty. I try doing a rm -d * but I get a response that the operation is not allowed. I am logged in as root. What am I doing wrong. I am looking something that works like deltree in dos. rm -rf Bob Nielsen Internet: [EMAIL PROTECTED] Tucson, AZ AMPRnet: [EMAIL PROTECTED] http://www.primenet.com/~nielsen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how do I delete not empty directories
On Sun, 10 May 1998, Keith wrote: I have been trying to delete directories that are not empty. I try doing a rm -d * but I get a response that the operation is not allowed. I am logged in as root. What am I doing wrong. I am looking something that works like deltree in dos. rm -r directoryname will recursively remove directoryname and any files or directories in it. WARNING WARNING WARNING This is a dangerous command to run as root, because you can destroy your system and make it unbootable (like doing deltree c:\ in dos) ... make absolutely sure you want to get rid of whatever's in that tree, and that your system doesn't need any of that stuff to run... Will -- | [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] | | http://www.cis.udel.edu/~lowe/ | |PGP Public Key: http://www.cis.udel.edu/~lowe/index.html#pgpkey| -- | You think you're so smart, but I've seen you naked | | and I'll prob'ly see you naked again ... | | --The Barenaked Ladies, Blame It On Me | -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how do I delete not empty directories
On Sun, 10 May 1998, Will Lowe wrote: On Sun, 10 May 1998, Keith wrote: I have been trying to delete directories that are not empty. I try doing a rm -d * but I get a response that the operation is not allowed. I am logged in as root. What am I doing wrong. I am looking something that works like deltree in dos. rm -r directoryname will recursively remove directoryname and any files or directories in it. WARNING WARNING WARNING This is a dangerous command to run as root, because you can destroy your system and make it unbootable (like doing deltree c:\ in dos) ... make absolutely sure you want to get rid of whatever's in that tree, and that your system doesn't need any of that stuff to run... Will Good point. It's actually a dangerous thing to do period. It's not a question of if you will one day trash crucial stuff, it's when. I reccoment you make up a ~/recycle directory or something like it and then use mv -R whatever ~/tmp. -- | [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] | | http://www.cis.udel.edu/~lowe/ | |PGP Public Key: http://www.cis.udel.edu/~lowe/index.html#pgpkey| -- | You think you're so smart, but I've seen you naked | | and I'll prob'ly see you naked again ... | | --The Barenaked Ladies, Blame It On Me | -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how do I delete not empty directories
On Sun, 10 May 1998, Britton wrote: Good point. It's actually a dangerous thing to do period. It's not a question of if you will one day trash crucial stuff, it's when. I Yes, I've done this a few times, so I was speaking from experience. Always manage to do it when a project's on my drive, to ... Will -- | [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] | | http://www.cis.udel.edu/~lowe/ | |PGP Public Key: http://www.cis.udel.edu/~lowe/index.html#pgpkey| -- | You think you're so smart, but I've seen you naked | | and I'll prob'ly see you naked again ... | | --The Barenaked Ladies, Blame It On Me | -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how do I delete not empty directories
Dear all, Is it essential to send pgp sigs with everything? I can't remove them with pine before I save the message, and they eat into my space on cus... Thanks :) Matthew -- Elen sila lumenn' omentielvo Steward-elect of the Cambridge Tolkien Society Selwyn College Computer Support http://www.geocities.com/Area51/Chamber/8841/ http://www.cam.ac.uk/CambUniv/Societies/tolkien/ http://pick.sel.cam.ac.uk/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]