LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-14-2004, 03:53 PM   #1
timelord726
Member
 
Registered: Jul 2004
Distribution: Ubuntu 4.10 Warty
Posts: 54

Rep: Reputation: 15
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!
 
Old 08-14-2004, 04:17 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Assuming that you're using gnome since you're
on FC ...

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


Cheers,
Tink
 
Old 08-14-2004, 04:19 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"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
 
Old 08-17-2004, 11:15 PM   #4
timelord726
Member
 
Registered: Jul 2004
Distribution: Ubuntu 4.10 Warty
Posts: 54

Original Poster
Rep: Reputation: 15
Sorry, it says the file or directory does not exist.
 
Old 08-18-2004, 01:26 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Emptying the recycle bin hongman Linux - Newbie 4 03-26-2005 04:05 PM
What is .Trash-root? srns Red Hat 4 01-19-2005 12:19 PM
I changed the trash can icons but now the full trash can icon doesn't show? Why? Ausar Linux - Newbie 6 08-04-2004 01:59 PM
Having trouble emptying the Trash in Redhat 9, Gnome cgoerner Linux - Newbie 2 05-28-2004 04:40 AM
Emptying trash kinkybullet Linux - Newbie 1 05-12-2004 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:23 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