LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 04-16-2011, 10:57 PM   #1
unclejed613
Member
 
Registered: Mar 2009
Posts: 326

Rep: Reputation: 26
why does /home/.Trash-0 contain duplicates of all of the user's files?


i've been trying to get rid of unnecessary files on my kids' computer and just noticed that /home/.Trash-0 contains a duplicate of the file tree of the /home directory, including all of the current users' files and subdirectories. is this something i should leave alone? the machine is running slack 13.0 with KDE, and this is something i never noticed before.
 
Old 04-17-2011, 02:42 PM   #2
samac
Senior Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Linux Mint 17.1
Posts: 1,424

Rep: Reputation: 137Reputation: 137
I deleted it and have not noticed any adverse side effects. It was owned by root, I wonder if it is created when you delete something when using su?

No, that doesn't seem to be it, just tried deleting as root and no new folder created.

samac

Last edited by samac; 04-17-2011 at 02:45 PM.
 
Old 04-17-2011, 02:46 PM   #3
unclejed613
Member
 
Registered: Mar 2009
Posts: 326

Original Poster
Rep: Reputation: 26
but it doesn't contain anything that has been deleted, only stuff that is currently there????? wierd...
 
Old 04-17-2011, 06:26 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
These .Trash-0 directories appear when root deletes non-root user files from a file manager. The 0 is the system $UID, which is zero for root. The directories are created any time a user deletes files belonging to another user account.

As fas I know, the .Trash-XX directories do not appear when deleting files from the command line, only from a file manager. I only use KDE therefore I can't say whether this is a KDE behavior or all compliant file managers. I'll take a wild guess that any file manager compliant with using the Trash can for storing deleted files will create these directories.
 
1 members found this post helpful.
Old 04-18-2011, 01:53 AM   #5
samac
Senior Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Linux Mint 17.1
Posts: 1,424

Rep: Reputation: 137Reputation: 137
Thanks Woodsman. I deleted from the command line during my test, but I didn't consider the difference that using a file manager would make.

samac
 
  


Reply

Tags
trash


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
Lost disk space after deleting files, trash, hidden trash, etc. themacguy Ubuntu 7 06-06-2012 03:51 AM
Merging files and removing near-duplicates TheBigH Linux - Newbie 3 12-02-2009 05:24 PM
To delete root permission files in user trash Ramyashree Linux - General 2 07-09-2008 01:00 AM
How to change the user home & other paths like trash can Four Linux - Newbie 6 05-13-2006 01:09 PM
Comparing 2 Files for Duplicates Mr_H Linux - Newbie 5 11-09-2005 01:43 PM


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