LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-16-2003, 09:39 PM   #1
today53
Member
 
Registered: Oct 2003
Location: sydney
Posts: 70

Rep: Reputation: 15
delete from trash


hi all,

can anyone tell me how to delete the files i moved to the trash recently.
i understand that i could just click on the 'empty trash' to get rid of some, but some files seem to need permissions in order to get rid of, i seem to have problem there.
i have tried to log in as root, but then there is no files in the trash, how come?
is there any command i could use to clear up the trash?

thanks
 
Old 10-16-2003, 09:43 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
because roots trash is different from a regular users trash , anyways, you can always fire up a terminal and try removing the files manually....i think the location is /home/USER/Desktop/Trash, but i maybe wrong, but in any case i know its in the home folder, and i am almost positive its a subfolder in Desktop....i am not on my box right now, so this is a pure guess, but i think rather accurate ;-)
 
Old 10-16-2003, 09:56 PM   #3
today53
Member
 
Registered: Oct 2003
Location: sydney
Posts: 70

Original Poster
Rep: Reputation: 15
i tried with the location you give me and it didnt seem right.
 
Old 10-16-2003, 11:27 PM   #4
tearinox
Member
 
Registered: Aug 2003
Location: you dont want to know
Distribution: Gentoo 2004.2, Slackware 10, Windows XP, Windows 2003 Server
Posts: 348

Rep: Reputation: 30
i dunno where redhat puts it but you can go in console and use the
"find -name <filename>" to find out
 
Old 10-17-2003, 12:06 AM   #5
rakriege
Member
 
Registered: Oct 2003
Location: San Deigo, CA
Distribution: FC3, Win2k Server, XP Pro & 2003 Server
Posts: 198

Rep: Reputation: 30
at the shell promt type


for a file rm filename

for a empty directory rmdir dirname

for a occupied directory rm -r dirname
 
Old 11-05-2003, 10:26 AM   #6
lel800
Member
 
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228

Rep: Reputation: 30
Once I move the file "del.txt" to the Trash, if I use the Find command the result is "No such file or directory".

Does anyone know the answer to the original question? I'm interested to know the answer too....

How do you delete files from the trash using the terminal window?
 
Old 11-05-2003, 10:32 AM   #7
lel800
Member
 
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228

Rep: Reputation: 30
I got it. Messing around with an older version of a different distro of Linux for a bit..

I went into the home directory of user,

cd .Trash

then..
su root - Change to root user to overcome permission issues...then

rm -r * --force

And that emptied my trash.
 
  


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
Can't figure out how to delete something from my trash can. Help please KezzerDrix Mandriva 4 04-01-2005 08:45 AM
How do I delete stuff from the trash? usernameddr Mandriva 4 01-23-2005 10:44 AM
Delete without moving to trash? Nigh Unstoppabl Linux - Newbie 1 11-15-2004 01:55 AM
Unable to delete trash entropyv Mandriva 1 09-26-2004 11:29 AM
How to delete the trash bin? BajaNick Linux - Software 4 08-20-2003 12:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:05 PM.

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