HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

gio trash — Move files to the trash bin. Used by GNOME to handle trash. More information: <https://manned.org/gi

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thegio trashcommandfilesclimovebintrash
linux

Problem

How to use the gio trash command: Move files to the trash bin. Used by GNOME to handle trash. More information: <https://manned.org/gio>.

Solution

gio trash — Move files to the trash bin. Used by GNOME to handle trash. More information: <https://manned.org/gio>.

Move specific files to the trash bin:
gio trash {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}


List trash bin items:
gio trash --list


Empty the trash:
gio trash --empty


Restore a specific item from trash using its ID:
gio trash trash://{{id}}

Code Snippets

Move specific files to the trash bin

gio trash {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}

List trash bin items

gio trash --list

Empty the trash

gio trash --empty

Restore a specific item from trash using its ID

gio trash trash://{{id}}

Context

tldr-pages: linux/gio trash

Revisions (0)

No revisions yet.