LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 09:57 PM   #1
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Rep: Reputation: 32
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, 01:42 PM   #2
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
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 01:45 PM.
 
Old 04-17-2011, 01:46 PM   #3
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

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

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
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, 12:53 AM   #5
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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