LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 11-28-2004, 08:03 PM   #1
ungua
Member
 
Registered: Oct 2004
Location: bergen, norway
Distribution: OpenSuSe (SuSe 10.1), Win XP Pro
Posts: 539

Rep: Reputation: 30
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
 
Old 11-28-2004, 09:00 PM   #2
monroetech
Member
 
Registered: Nov 2004
Location: Toledo, OH
Distribution: SuSE 9.2 Pro
Posts: 53

Rep: Reputation: 15
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..
 
Old 11-29-2004, 03:30 AM   #3
ungua
Member
 
Registered: Oct 2004
Location: bergen, norway
Distribution: OpenSuSe (SuSe 10.1), Win XP Pro
Posts: 539

Original Poster
Rep: Reputation: 30
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?

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

regards
ungua
 
Old 11-29-2004, 03:44 AM   #4
monroetech
Member
 
Registered: Nov 2004
Location: Toledo, OH
Distribution: SuSE 9.2 Pro
Posts: 53

Rep: Reputation: 15
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
 
Old 12-04-2004, 01:03 PM   #5
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
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.)
 
Old 12-04-2004, 01:20 PM   #6
ungua
Member
 
Registered: Oct 2004
Location: bergen, norway
Distribution: OpenSuSe (SuSe 10.1), Win XP Pro
Posts: 539

Original Poster
Rep: Reputation: 30
thank you very much for your reply, i'm giong to try it one more time!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
delete file karunesh Linux - General 3 11-15-2005 01:49 AM
How do you delete a file?? The Pentium Guy Debian 7 11-01-2004 09:30 AM
How to delete a file Meatball1337 Linux - Software 1 10-04-2004 09:05 PM
Tried to delete file as root but it says I don't have permission to delete it! beejayzed Mandriva 23 03-12-2004 02:46 AM
Delete contents of the file, but not file? mikeshn Linux - General 9 05-28-2003 06:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 01:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration