LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   delete from trash (https://www.linuxquestions.org/questions/linux-newbie-8/delete-from-trash-104937/)

today53 10-16-2003 09:39 PM

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

DrOzz 10-16-2003 09:43 PM

because roots trash is different from a regular users trash :D, 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 ;-)

today53 10-16-2003 09:56 PM

i tried with the location you give me and it didnt seem right.

tearinox 10-16-2003 11:27 PM

i dunno where redhat puts it but you can go in console and use the
"find -name <filename>" to find out

rakriege 10-17-2003 12:06 AM

at the shell promt type


for a file rm filename

for a empty directory rmdir dirname

for a occupied directory rm -r dirname

lel800 11-05-2003 10:26 AM

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?

lel800 11-05-2003 10:32 AM

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.


All times are GMT -5. The time now is 04:53 AM.