LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-18-2008, 01:14 AM   #1
7ser23
LQ Newbie
 
Registered: Mar 2008
Posts: 27

Rep: Reputation: 15
Delete files from user recycle bin


Hi I have some files in my recycle bin that I want to erase permanently.

I tried the following command

sudo rm -r ~/.local/share/Trash/files/*

and nothing,

If it helps, its the recycle bin for my normal user called Sergio, I tried to find the location of my recycle bin logged as a root and I'm not able to find it, please help.

Thanks

Ser
 
Old 10-18-2008, 01:38 AM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 5, Linux Lite
Posts: 4,312

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by 7ser23 View Post
Hi I have some files in my recycle bin that I want to erase permanently.

I tried the following command

sudo rm -r ~/.local/share/Trash/files/*

and nothing,

If it helps, its the recycle bin for my normal user called Sergio, I tried to find the location of my recycle bin logged as a root and I'm not able to find it, please help.

Thanks

Ser
No need for sudo simply do while logged in as Sergio:
Code:
rm -rf ~/.local/share/Trash/files/*
 
Old 10-19-2008, 06:53 PM   #3
7ser23
LQ Newbie
 
Registered: Mar 2008
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by {BBI}Nexus{BBI} View Post
No need for sudo simply do while logged in as Sergio:
Code:
rm -rf ~/.local/share/Trash/files/*
Thank you for your reply, I tried the code u gave me as sergio (normal user) and it says the following:

rm: cannot remove `/home/sergio/.local/share/Trash/files/ser/recycler/S-1-5-21-1482476501-1644491937-682003330-1013/isi32.exe': Permission denied

so it does not remove my recycle . I tried that same code as a root and no errors but the recycle is still full, please help
 
Old 10-19-2008, 08:43 PM   #4
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 5, Linux Lite
Posts: 4,312

Rep: Reputation: 209Reputation: 209Reputation: 209
Check the file permissions and ownership of the contents in that folder. Do:
Code:
ls -ls .local/share/Trash/files/ser/recycler/S-1-5-21-1482476501-1644491937-682003330-1013/
or simply copy and paste the above to your terminal/console.
 
Old 10-19-2008, 10:14 PM   #5
7ser23
LQ Newbie
 
Registered: Mar 2008
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by {BBI}Nexus{BBI} View Post
Check the file permissions and ownership of the contents in that folder. Do:
Code:
ls -ls .local/share/Trash/files/ser/recycler/S-1-5-21-1482476501-1644491937-682003330-1013/
or simply copy and paste the above to your terminal/console.
Thank you once again, I used the code you gave me and this is what happens:

4 -rwxr-xr-x 1 sergio sergio 62 2008-10-07 11:37 Desktop.ini
24 -r-xr-xr-x 1 sergio sergio 21873 2008-04-23 12:34 isi32.exe
8 -r-xr-xr-x 1 sergio sergio 7200 2008-07-24 14:59 service.exe
36 -r-xr-xr-x 1 sergio sergio 35328 2008-08-05 16:30 win32.exe

mmm.... so I assume that it's just a list (for ls) hope this info can help you help me. Thanks
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recycle Bin scbops Linux - Newbie 6 03-24-2006 07:39 AM
fluxbox recycle bin pingvina Linux - Software 1 01-11-2006 06:25 AM
Emptying the recycle bin hongman Linux - Newbie 4 03-26-2005 05:05 PM
A Recycle Bin script. 95se Linux - Software 2 12-19-2003 12:12 PM
Recycle Bin? puzz_1 Linux - General 1 05-25-2003 04:08 PM


All times are GMT -5. The time now is 07:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration