Linux Commands Examples

A great documentation place for Linux commands

gvfs-trash

Move files or directories to the trash


see also : ls - gvfs-rm

Synopsis

gvfs-trash [OPTION...] [LOCATION...]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !

description

gvfs-trash sends files or directories to the "Trashcan". This can be a different folder depending on where the file is located, and not all file systems support this concept. In the common case that the file lives inside a users home directory, the trash folder is $XDG_DATA_HOME/Trash.

Note that moving files to the trash does not free up space on the file system until the "Trashcan" is emptied. If you are interested in deleting a file irreversibly, see gvfs-rm.

Inspecting and emptying the "Trashcan" is normally supported by graphical file managers such as nautilus, but you can also see the trash with the command gvfs-ls trash://.

options

The following options are understood:

-h, --help

Prints a short help text and exits.

-f, --force

Ignore nonexistent and non-deletable files.

--empty

Empty the trash.

exit status

On success 0 is returned, a non-zero failure code otherwise.

notes

1.

Desktop Trash Can specification

http://freedesktop.org/wiki/Specifications/trash-spec

gvfs trash [option ]

[LOCATION...]
see also

ls , gvfs-rm , Desktop Trash Can specification [1]

How can this site be more helpful to YOU ?


give  feedback