I tried opening Trash by running the command nautilus, but it gives me an error.


The trash folder should be located under:


So you should be able to access it via:

cd ~/.local/share/Trash

The folder might not exist unless you delete something from the filesystem. In this case you would run into an error (saying that the folder does not exist).


If you want to open Trash using Nautilus run the following:

nautilus trash://
  • Or if you want to open the default app: "gvfs-open trash://". If Nautilus is your default, it will open the trash. – Jo-Erlend Schinstad Oct 3 '17 at 11:19

For Ubuntu 18.04 and newer, use gio. For older versions, use gvfs-ls and gvfs-trash.

To read the trash:

gio list trash://
gvfs-ls trash://

To send files or directories to the trash:

gio trash [FILE or DIR]
gvfs-trash [FILE or DIR]

To empty it:

gio trash --empty
gvfs-trash --empty
  • 1
    man gvfs-trash tells me that it is deprecated in favour of gio trash $FILE; listing trash is done by gio list trash://. – pbhj Sep 1 '18 at 21:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.