0

The trash in Linux is shown under the path of trash:/// What does :/// mean?

I don't seem to be able to find the explanation of three slashes "///" anywhere online.

2
  • Possibly related: Nautilus special URIs Commented Feb 10, 2020 at 13:52
  • That's actually nothing to do with Linux. The operating system kernel does not know about this GVFS stuff.
    – JdeBP
    Commented Feb 10, 2020 at 13:53

1 Answer 1

5

This is a Uniform Resource Identifier (URI), just as https://stackexchange.com is. A URI begins with the the scheme followed by :// literally and the authority. Since trash is the scheme of a virtual directory tree, its authority has a root directory called /. Here you are, the syntax is: scheme://authority, so it is trash:///.

For more information about URIs, see Wikipedia.

2
  • 1
    The // is part of the authority, not part of the separation between the scheme and the authority. Many file-like URLs, though, allow a "null" authority to represent the local host. Theoretically, one could write trash://localhost/... to differentiate between a file in the local trash can and a file in the trashcan of some other machine, or possibly even trash://bob@/... to represent some other user's trash can. Most likely, though, whichever window manager is processing the trash URLs is making up its own semantics without regard to how URIs are defined in general.
    – chepner
    Commented Feb 10, 2020 at 15:28
  • 1
    See, for example, the description of the file scheme.
    – chepner
    Commented Feb 10, 2020 at 15:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .