LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   file became unvulnerable... how to delete it? (https://www.linuxquestions.org/questions/suse-opensuse-60/file-became-unvulnerable-how-to-delete-it-260321/)

ungua 11-28-2004 08:03 PM

file became unvulnerable... how to delete it?
 
i was just finished with a paper. i saved it several places on the internet so that i can download it tomorrow for sure, not caring about if one or two servers break down. i have my own forum and wanted to save a copy there, too. it only allows .txt files, no .doc - i need to use this format since we only use microschrott at the university. so i changed it like i was used to at windows: giving it a new file-ending, planning to eventually undo this change again after downloading and having a fully functional file then.

but i could simply not delete it afterwards. it said that the file is not there anymore and even if i try to rename it it won't disappear. this is how it looks like now.

i'll be grateful for any hint!

best regards
ungua

monroetech 11-28-2004 09:00 PM

I wonder if this is the same problem i'm going though....

I installed mldonkey - then Trashed it... went to delete it and got permission denied....

So I su to root in cli, cd /home/***/Desktop/.Trash and did a rm -rf *
got a bunch of permission Denied
then got a Seg Fault....

I havent been able to figure this one out either..

ungua 11-29-2004 03:30 AM

that is really strange... the root command to delete would so be "rm -rf [textfile]"? i don't really have an idea what's it proper name now, since it did never display the fileending .txt - so trying this might get me in trouble, too. but i could try to delete the whole folder, no problem that. how to? :newbie:

thank you very much for posting - hoping for a solution for both of us... :)

regards
ungua

monroetech 11-29-2004 03:44 AM

that is how you delete the entire folder - basically the switches tell it to force delete and dont report back... just do it....

rm <filename> works for just files
I use
rm -rf to delete entire directories ie; folders

sigsegv 12-04-2004 01:03 PM

rm -rf <directory> will kill off a directory and everything under it.

-r = recursive, or move into subdirectories and delete their contents
-f = force, do not ask for confirmation, or the opposite of -i

man rm for more details

A linux system is not like a windows system in that it doesn't matter if something has the file open ... If you can find the file on disk, and you have sufficient priveledges, you can delete it.

(You can mark a file undeletable with chattr though I doubt that's the case here. man chattr for more info.)

ungua 12-04-2004 01:20 PM

thank you very much for your reply, i'm giong to try it one more time! :)


All times are GMT -5. The time now is 03:06 PM.