Re: what does rm // delete?
On Tue, Nov 30, 2004 at 04:58:16AM +0100, Oliver Fuchs wrote: rm -rf /path/to/dir/with/rogue/file Tried it but had no chance. In any case I had to formate that drive new so I finally made it to disappear. You did not try fsck before this radical method? /GM ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: what does rm // delete?
On Sun, 28 Nov 2004, Mark Ovens wrote: Oliver Fuchs wrote: Hi, I had a directory which contained the following: ls showed me simple this: ? with 0 bytes ls -axl showed me nothing So I tried to delete the directory but could not succeed with rm -R because the directory is not empty. I changed to the directory and tried to delete everything inside with rm * but also did not succeed. It seemed that the file had no name. So than I did a mistake and wanted to delete the file with no name with the operation: rm -R // This was a big mistake which I noticed soon enough (some files in /bin were deleted). I could repair the damage but what I want to know is what exactly is rm -R // deleting. It seems that it is deleting everything? It is, you're recursively deleting / - multiple '/' are treated as one; try cd //usr//bin Yes, it was a hurtful expirience but now I know that rm // is the same as rm / To delete the rogue file try rm -i * in the directory the file is in, answering 'n' for all other files. If that fails, try copying everything you need in the directory it is in to somewhere else then recursively deleting the directory rm -rf /path/to/dir/with/rogue/file Tried it but had no chance. In any case I had to formate that drive new so I finally made it to disappear. This was a confisung day in the life of my FreeBSD system. So thank you again for helping and answering. Oliver HTH Mark Thanx in advance Oliver --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 0448-1, 26/11/2004 Tested on: 28/11/2004 12:58:15 avast! - copyright (c) 2000-2004 ALWIL Software. http://www.avast.com -- ... don't touch the bang bang fruit ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: what does rm // delete?
On Sun, 28 Nov 2004, Parv wrote: in message [EMAIL PROTECTED], wrote Parv thusly... for shell in sh csh tcsh bash ksh93 blah ^ ^ ^ ^ Sorry, that blah shell was there only to test for existence of a shell which i forgot to remove. Of course. do shell=$(which $shell) [ -z $shell ] continue ... done That looks great and goes to my knowledge folder. Thank you for responding efforts and spending time. Oliver - Parv -- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- ... don't touch the bang bang fruit ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
what does rm // delete?
Hi, I had a directory which contained the following: ls showed me simple this: ? with 0 bytes ls -axl showed me nothing So I tried to delete the directory but could not succeed with rm -R because the directory is not empty. I changed to the directory and tried to delete everything inside with rm * but also did not succeed. It seemed that the file had no name. So than I did a mistake and wanted to delete the file with no name with the operation: rm -R // This was a big mistake which I noticed soon enough (some files in /bin were deleted). I could repair the damage but what I want to know is what exactly is rm -R // deleting. It seems that it is deleting everything? Thanx in advance Oliver -- ... don't touch the bang bang fruit ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: what does rm // delete?
Oliver Fuchs wrote: Hi, I had a directory which contained the following: ls showed me simple this: ? with 0 bytes ls -axl showed me nothing So I tried to delete the directory but could not succeed with rm -R because the directory is not empty. I changed to the directory and tried to delete everything inside with rm * but also did not succeed. It seemed that the file had no name. So than I did a mistake and wanted to delete the file with no name with the operation: rm -R // This was a big mistake which I noticed soon enough (some files in /bin were deleted). I could repair the damage but what I want to know is what exactly is rm -R // deleting. It seems that it is deleting everything? It is, you're recursively deleting / - multiple '/' are treated as one; try cd //usr//bin To delete the rogue file try rm -i * in the directory the file is in, answering 'n' for all other files. If that fails, try copying everything you need in the directory it is in to somewhere else then recursively deleting the directory rm -rf /path/to/dir/with/rogue/file HTH Mark Thanx in advance Oliver --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 0448-1, 26/11/2004 Tested on: 28/11/2004 12:58:15 avast! - copyright (c) 2000-2004 ALWIL Software. http://www.avast.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: what does rm // delete?
in message [EMAIL PROTECTED], wrote Oliver Fuchs thusly... I had a directory which contained the following: ls showed me simple this: ? with 0 bytes ls -axl showed me nothing Try ... ls -lia ... and then, note the inode number in left, your left that is, most column which will be used in ... find . -inum noted inode number -type d -print0 \ | xargs -0 rm -riv rm -R // This was a big mistake which I noticed soon enough (some files in /bin were deleted) ... what I want to know is what exactly is rm -R // deleting. It seems that it is deleting everything? Yes, using '//' is same as '/' in some shells. Try this in a sh-like shell (sh, bash [23], ksh93) ... for shell in sh csh tcsh bash ksh93 blah do shell=$(which $shell) [ -z $shell ] continue echo checking shell $shell $shell -c 'cd //usr///local/bin echo $PWD pwd' echo done ... here is what i get in some shells (bash is bash 3) ... checking shell /bin/bash //usr/local/bin //usr/local/bin checking shell /usr/local/bin/ksh93 /usr/local/bin /usr/local/bin - Parv -- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: what does rm // delete?
Oliver Fuchs wrote: Hi, I had a directory which contained the following: ls showed me simple this: ? with 0 bytes ls -axl showed me nothing So I tried to delete the directory but could not succeed with rm -R because the directory is not empty. I changed to the directory and tried to delete everything inside with rm * but also did not succeed. It seemed that the file had no name. So than I did a mistake and wanted to delete the file with no name with the operation: rm -R // This was a big mistake which I noticed soon enough (some files in /bin were deleted). I could repair the damage but what I want to know is what exactly is rm -R // deleting. It seems that it is deleting everything? Thanx in advance Oliver When you have a filename that is odd, I use the syntax: rm whatever the file name is Enclosing it in works well for me. -- Best regards, Chris Forgive and remember. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: what does rm // delete?
in message [EMAIL PROTECTED], wrote Parv thusly... for shell in sh csh tcsh bash ksh93 blah ^ ^ ^ ^ Sorry, that blah shell was there only to test for existence of a shell which i forgot to remove. Of course. do shell=$(which $shell) [ -z $shell ] continue ... done - Parv -- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]