LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Emptying trash as root (https://www.linuxquestions.org/questions/linux-general-1/emptying-trash-as-root-217619/)

timelord726 08-14-2004 03:53 PM

Emptying trash as root
 
Is there a quick solution or command to empty the trash while root? I deleted some stuff but it won't let me empty it from the trash due to my permissions.

Thanks!

Tinkster 08-14-2004 04:17 PM

Assuming that you're using gnome since you're
on FC ...

rm /home/<username>/Desktop/Trash/*


Cheers,
Tink

jailbait 08-14-2004 04:19 PM

"Is there a quick solution or command to empty the trash while root? I deleted some stuff but it won't let me empty it from the trash due to my permissions."

rm /home/user/Desktop/Trash/* -R
rm /root/Desktop/Trash/* -R

I put these commands in a cron job which runs once a week.

------------------------
Steve Stites

timelord726 08-17-2004 11:15 PM

Sorry, it says the file or directory does not exist.

Tinkster 08-18-2004 01:26 AM

Quote:

Originally posted by timelord726
Sorry, it says the file or directory does not exist.
What's the invocation line?

And if you
locate Trash
, where does it live?


Cheers,
Tink


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