mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-02 05:42:50 +00:00
Update cheatsheets
This commit is contained in:
30
tldr/linux/gio
Normal file
30
tldr/linux/gio
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gio
|
||||
|
||||
> Handle local and virtual files (GVfs).
|
||||
> Part of GLib used in GNOME-based systems.
|
||||
> More information: <https://manpages.ubuntu.com/manpages/focal/man1/gio.1.html>.
|
||||
|
||||
- Open a file with the default application (e.g. PDF, image):
|
||||
|
||||
`gio open {{path/to/file}}`
|
||||
|
||||
- List files in a directory:
|
||||
|
||||
`gio list {{path/to/directory}}`
|
||||
|
||||
- Show information about a file:
|
||||
|
||||
`gio info {{path/to/file}}`
|
||||
|
||||
- Copy a file:
|
||||
|
||||
`gio copy {{path/to/source}} {{path/to/destination}}`
|
||||
|
||||
- Send a file to the trash (reversible):
|
||||
|
||||
`gio trash {{path/to/file}}`
|
||||
Reference in New Issue
Block a user