LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-22-2008, 08:35 AM   #1
nlavon
LQ Newbie
 
Registered: May 2008
Location: Washington, D.C.
Distribution: Ubuntu 8.10
Posts: 12

Rep: Reputation: 0
Getting Rid of src folder in Trash


I installed some items recently in Ubuntu 8.10 and ended up putting a folder called "src" (not the one that has all the files in in it) in the trash.

I don't have permission to delete it or can I empty the trash. I can't change anything in the permissions tab of the folder.

I would like to empty the Trash icon; I am considering deleting the trash incon and starting again through gconf-editor.

Any suggestions on how to do this?

New Linux user but not computer newbie...

Neal Lavon
Takoma Park, MD
USA
 
Old 05-22-2008, 09:11 AM   #2
Dudydoo
Member
 
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
Open up a terminal and type this:

Code:
sudo rm --force --recursive -v ~/.Trash/*
You will be prompted for your login password.
 
Old 05-22-2008, 11:09 AM   #3
nlavon
LQ Newbie
 
Registered: May 2008
Location: Washington, D.C.
Distribution: Ubuntu 8.10
Posts: 12

Original Poster
Rep: Reputation: 0
Getting Rid of src folder in Trash

Thanks! I'll give it a try tonight when I get home.
Much appreciated.

Neal Lavon
Takoma Park, MD
USA
 
Old 05-22-2008, 09:47 PM   #4
nlavon
LQ Newbie
 
Registered: May 2008
Location: Washington, D.C.
Distribution: Ubuntu 8.10
Posts: 12

Original Poster
Rep: Reputation: 0
That didn't do it; but I did find something in the forums that did:

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

This had been posted in the Ubuntu Forums on this topic, and it did work.

Thanks for the reply, though, it led to the solution.

Neal Lavon
Takoma Park, MD
USA
 
Old 05-23-2008, 04:20 AM   #5
Dudydoo
Member
 
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
Maybe the location is different on Ubuntu. I use fedora and it's ~/.Trash with Gnome.

Glad you got the desired result in the end though, anyway. ;-)
 
Old 05-28-2008, 06:50 PM   #6
seraphim172
Member
 
Registered: May 2008
Posts: 101

Rep: Reputation: 15
Another possibility would have been to recover the files from the Trash. Konqueror's trash has an option to restore data by moving it back to it's previous location. From there permissions can be changed or the whole data removed with 'rm' on the command-line.

Linux Archive

Last edited by seraphim172; 06-25-2008 at 05:39 AM.
 
  


Reply

Tags
ubuntu


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
Trashing the Trash Folder? Xios Linux - General 1 02-11-2005 12:16 AM
how do i get rid of the 'home and 'trash' icons? surfbass Linux - Newbie 5 12-16-2004 09:57 PM
How to unzip all the src files in linux src folder? raj_ice Linux - Newbie 1 10-15-2004 10:46 AM
How to get rid of the trash can of the desktop Bad_Bob Linux - General 1 06-28-2004 12:46 AM
gnome home folder and trash folder ambelos Linux - Software 2 02-24-2004 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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