LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-20-2008, 02:12 AM   #1
Tribulation
Member
 
Registered: Jun 2008
Distribution: Slackware
Posts: 129

Rep: Reputation: 27
Random question about the file hierarchy, specifically where trash is located


I know that every directory starts with / because everything in the system is below root. That's why I type /before I go to my pictures or desktop or what have you. Trash has been bugging me though, it doesn't start out with /. It is trash:/// Why is that?
 
Old 07-20-2008, 02:33 AM   #2
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
Because thats how kde accesses stuff in the file system. trash is actually ~/.local/share/Trash
 
Old 07-20-2008, 09:49 AM   #3
Sjonnie48
Member
 
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308

Rep: Reputation: 43
If you use Konqueror click View > Show Hidden Files, which enables you to see directories that begin with ./
 
Old 07-20-2008, 10:26 AM   #4
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32
Quote:
Originally Posted by Tribulation View Post
It is trash:/// Why is that?
That's a URL for KIO, not a directory path. KIO is KDE's infrastructure for providing a uniform interface to resources of various types. Basically, there's a KIO slave that knows how to read and write things using each of the different protocols, so an individual KDE application just has to do its file access through KIO and it will automatically support all the protocols KIO understands, which includes local files, SSH, FTP, SMB, etc.

The trash:/ protocol is one of several KIO slaves that just provides a specialized view of the local file system. There are several others, such as applications:/, system:/, and media:/. The actual location of the trashed files is defined by the FreeDestkop.org trash specification, which, as AceofSpades19 said, puts the files in ~/.local/share/Trash by default.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying File Hierarchy with Specific Filetype Inner City Blues Linux - Newbie 2 09-11-2007 04:24 PM
using /dev/random to output random numbers on a text file guguma Programming 4 04-02-2007 01:42 PM
help on linux file system hierarchy revoked Linux - Newbie 6 07-22-2006 10:06 AM
where to store mp3 in file hierarchy leopardb Linux - Newbie 6 07-05-2005 09:40 AM
Filesystem Hierarchy Question - You probably get these alot. Sorry :( JoeLinux Linux - Newbie 4 04-23-2002 09:33 AM

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

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