gio
Handle local and virtual files (GVfs). tldr-pages
On Linux
Linux
Handle local and virtual files (GVfs). Part of GLib used in GNOME-based systems.
Open a file with the default application (e.g. PDF, image)
gio open path/to/fileIdentifyList files in a directory
gio list path/to/directoryIdentifyShow information about a file
gio info path/to/fileIdentifyCopy a file
gio copy path/to/source path/to/destinationIdentifySend a file to the trash (reversible)
gio trash path/to/fileIdentifyEmpty the trash
gio trash --emptyIdentifyLaunch an application from a .desktop file
gio launch path/to/file.desktopIdentifyMark a .desktop file as trusted, allowing it to be executed
gio set path/to/file.desktop metadata::trusted trueIdentify