LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-31-2016, 06:42 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
What will be the use of .Trash-1000 folder?


Hi all,

Ubuntu 14.04

I have 2 HD installed on this PC

1) 1TB SSD for operating system
2) 1.8TB WD HD for storage, as backup

There is a .Trash-1000 (additional to .Trash-0) on the storage disc having 3 folders on it ;
-expunged
-files
-info

Whenever I delete a folder and/or files they will be saved on .Trash-1000/files/ . But I couldn't delete them. I have tried deleting them. They will be recreated a .trashinfo file.

I'm prepared to delete .Trash-1000 by running;
Code:
sudo rm -rf /path/to/folder/.Trash-1000
Can I delete it without influencing other folder and/or file and/or the PC?

What will be the function of .Trash-1000 /expunged /files and /info ?

Please help. Thanks advance.

Regards
satimis
 
Old 08-31-2016, 08:14 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
This should help: http://unix.stackexchange.com/questi...00-directories
 
Old 08-31-2016, 11:34 PM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by frankbell View Post
Hi,

Thanks for your links

I have read following threads;

1)
What are the .Trash-500 and .Trash-1000 directories?
http://unix.stackexchange.com/questi...00-directories

2)
The FreeDesktop.org Trash specification
http://www.ramendik.ru/docs/trashspec.html

But still can't resolution why when I delete a folder/file on this HD they are removed to .Trash-1000/files/ not .Trash-0/ I can't delete them from this HD with "Move to Trash". It takes up space. I suppose I have to remove them with either;

Code:
sudo rm -rf /path/to/folder/.Trash-1000
or

Code:
sudo rm -fvR /path/to/folder/.Trash-1000
Besides .Trash-1000 is not symlinked to .local/share/Trash

satimis
 
Old 09-01-2016, 01:01 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by satimis View Post
I'm prepared to delete .Trash-1000 by running;
Code:
sudo rm -rf /path/to/folder/.Trash-1000
Can I delete it without influencing other folder and/or file and/or the PC?
yes, you can permanently delete any .Trash* folders, but they will be recreated again when you "just" delete something aka "Move to Trash".
there's variations of where exactly these trash folders are made, but deleting them has never been a problem for me.
 
Old 09-06-2016, 11:01 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by ondoho View Post
yes, you can permanently delete any .Trash* folders, but they will be recreated again when you "just" delete something aka "Move to Trash".
there's variations of where exactly these trash folders are made, but deleting them has never been a problem for me.
Hi,

Thanks for your advice.

Ran
Code:
sudo rm -fv /media/satimis/data/.Trash-1000
In future I would run "Move To Trash" to delete files/folders

Regards
satimis
 
Old 09-06-2016, 12:02 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by satimis View Post
In future I would run "Move To Trash" to delete files/folders

Regards
satimis
I think that's what started this mess.
 
Old 09-06-2016, 08:45 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
As I understand it, if you "move to Trash" as user and your user ID is 1000, it goes into Trash-1000. If your user number is 500, it goes into Trash-500. And so on.

Me, I disable "move to trash." If I want to delete something, I make it go away.

You can find out your user number like this:

Code:
cat /etc/passwd | grep [username]
 
Old 09-06-2016, 10:46 PM   #8
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by frankbell View Post
As I understand it, if you "move to Trash" as user and your user ID is 1000, it goes into Trash-1000. If your user number is 500, it goes into Trash-500. And so on.

Me, I disable "move to trash." If I want to delete something, I make it go away.

You can find out your user number like this:

Code:
cat /etc/passwd | grep [username]
⟫ cat /etc/passwd | grep satimis
Code:
satimis:x:1000:1000:Stephen Liu,,,:/home/satimis:/bin/bash
If I hit "Del" key to delete a file Trash-1000 will be created autometically;

.Trash-1000
/files/deleted_file
/info/deleted_file~.trashinfo

Besides there is another .Trash-0 folder on this storage HD

Last edited by satimis; 09-06-2016 at 10:51 PM.
 
Old 09-06-2016, 10:55 PM   #9
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
I use Konqueror for a file manager because, as far as I am concerned, nothing, nada, zilch, not even Dolphin, equals it for that purpose.

In the preferences, Konqueror gives you the option to delete a file directly, without sending it to trash. When you enable that option, Konqueror includes "Delete" as well as "Send to Trash" in the right-click dialog. Check your file manager's preferences to see whether it offers a similar option.
 
  


Reply



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
Xfce trash doesn't empty because of .Trash-1000 in some partitions ahc_fan Slackware 3 04-13-2016 05:21 PM
sudo rm -rfv ~.Trash-1000 can't delete andrew.comly Linux - Newbie 14 09-29-2013 12:04 PM
Missing documents in .Trash-1000 QueenyLv Linux - Software 3 03-12-2011 11:19 AM
.Trash and .Trash-1000 sethusubbiah Linux - Newbie 6 07-31-2010 06:46 AM
How to open the trash folder and empty the trash in command line cmx08 Linux - Newbie 5 08-29-2008 09:15 AM

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

All times are GMT -5. The time now is 10:01 PM.

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