1GIO(1)                           User Commands                          GIO(1)
2
3
4

NAME

6       gio - GIO commandline tool
7

SYNOPSIS

9       gio help [COMMAND]
10
11       gio version
12
13       gio cat LOCATION...
14
15       gio copy [OPTION...] SOURCE... DESTINATION
16
17       gio info [OPTION...] LOCATION...
18
19       gio list [OPTION...] [LOCATION...]
20
21       gio mime MIMETYPE [HANDLER]
22
23       gio mkdir [OPTION...] LOCATION...
24
25       gio monitor [OPTION...] [LOCATION...]
26
27       gio mount [OPTION...] [LOCATION...]
28
29       gio move [OPTION...] SOURCE... DESTINATION
30
31       gio open LOCATION...
32
33       gio rename LOCATION NAME
34
35       gio remove [OPTION...] LOCATION...
36
37       gio save [OPTION...] DESTINATION
38
39       gio set [OPTION...] LOCATION ATTRIBUTE VALUE...
40
41       gio trash [OPTION...] [LOCATION...]
42
43       gio tree [OPTION...] [LOCATION...]
44

DESCRIPTION

46       gio is a utility that makes many of the GIO features available from the
47       commandline. In doing so, it provides commands that are similar to
48       traditional utilities, but let you use GIO locations instead of local
49       files: for example you can use something like
50       smb://server/resource/file.txt as a location.
51
52       Plain filenames which contain a colon will be interpreted as URIs with
53       an unknown protocol. To avoid this, prefix them with a path such as ./,
54       or with the file: protocol.
55

COMMANDS

57       help [COMMAND]
58           Displays a short synopsis of the available commands or provides
59           detailed help on a specific command.
60
61       version
62           Prints the GLib version to which gio belongs.
63
64       cat LOCATION...
65           Concatenates the given files and prints them to the standard
66           output.
67
68           The cat command works just like the traditional cat utility.
69
70           Note: just pipe through cat if you need its formatting options like
71           -n, -T or other.
72
73       copy [OPTION...] SOURCE... DESTINATION
74           Copies one or more files from SOURCE to DESTINATION. If more than
75           one source is specified, the destination must be a directory.
76
77           The copy command is similar to the traditional cp utility.
78
79           Options
80               -T, --no-target-directory
81                   Don’t copy into DESTINATION even if it is a directory.
82
83               -p, --progress
84                   Show progress.
85
86               -i, --interactive
87                   Prompt for confirmation before overwriting files.
88
89               --preserve
90                   Preserve all attributes of copied files.
91
92               -b, --backup
93                   Create backups of existing destination files.
94
95               -P, --no-dereference
96                   Never follow symbolic links.
97
98       info [OPTION...] LOCATION...
99           Shows information about the given locations.
100
101           The info command is similar to the traditional ls utility.
102
103           Options
104               -w, --query-writable
105                   List writable attributes.
106
107               -f, --filesystem
108                   Show information about the filesystem that the given
109                   locations reside on.
110
111               -a --attributes=ATTRIBUTES
112                   The attributes to get.
113
114                   Attributes can be specified with their GIO name, e.g.
115                   standard::icon, or just by namespace, e.g.  unix, or by *,
116                   which matches all attributes. Several attributes or groups
117                   of attributes can be specified, separated by comma.
118
119                   By default, all attributes are listed.
120
121               -n, --nofollow-symlinks
122                   Don’t follow symbolic links.
123
124       list [OPTION...] [LOCATION...]
125           Lists the contents of the given locations. If no location is given,
126           the contents of the current directory are shown.
127
128           The list command is similar to the traditional ls utility.
129
130           Options
131               -a --attributes=ATTRIBUTES
132                   The attributes to get.
133
134                   Attributes can be specified with their GIO name, e.g.
135                   standard::icon, or just by namespace, e.g.  unix, or by *,
136                   which matches all attributes. Several attributes or groups
137                   of attributes can be specified, separated by comma.
138
139                   By default, all attributes are listed.
140
141               -h, --hidden
142                   Show hidden files.
143
144               -l, --long
145                   Use a long listing format.
146
147               -n, --nofollow-symlinks
148                   Don’t follow symbolic links.
149
150               -u, --print-uris
151                   Print full URIs.
152
153       mime MIMETYPE [HANDLER]
154           If no handler is given, the mime command lists the registered and
155           recommended applications for the mimetype. If a handler is given,
156           it is set as the default handler for the mimetype.
157
158           Handlers must be specified by their desktop file name, including
159           the extension. Example: org.gnome.gedit.desktop.
160
161       mkdir [OPTION...] LOCATION...
162           Creates directories.
163
164           The mkdir command is similar to the traditional mkdir utility.
165
166           Options
167               -p, --parent
168                   Create parent directories when necessary.
169
170       monitor [OPTION...] [LOCATION...]
171           Monitors files or directories for changes, such as creation
172           deletion, content and attribute changes, and mount and unmount
173           operations affecting the monitored locations.
174
175           The monitor command uses the GIO file monitoring APIs to do its
176           job. GIO has different implementations for different platforms. The
177           most common implementation on Linux uses inotify.
178
179           Options
180               -d, --dir=LOCATION
181                   Monitor the given location as a directory. Normally, the
182                   file type is used to determine whether to monitor a file or
183                   directory.
184
185               -f, --file=LOCATION
186                   Monitor the given location as a file. Normally, the file
187                   type is used to determine whether to monitor a file or
188                   directory.
189
190               -D, --direct=LOCATION
191                   Monitor the file directly. This allows changes made via
192                   hardlinks to be captured.
193
194               -s, --silent=LOCATION
195                   Monitor the file directly, but don’t report changes.
196
197               -n, --no-moves
198                   Report moves and renames as simple deleted/created events.
199
200               -m, --mounts
201                   Watch for mount events.
202
203       mount [OPTION...] [LOCATION...]
204           Provides commandline access to various aspects of GIO’s mounting
205           functionality.
206
207           Mounting refers to the traditional concept of arranging multiple
208           file systems and devices in a single tree, rooted at /. Classical
209           mounting happens in the kernel and is controlle by the mount
210           utility. GIO expands this concept by introducing mount daemons that
211           can make file systems available to GIO applications without kernel
212           involvement.
213
214           GIO mounts can require authentication, and the mount command may
215           ask for user IDs, passwords, and so on, when required.
216
217           Options
218               -m, --mountable
219                   Mount as mountable.
220
221               -d, --device=DEVICE
222                   Mount volume with device file.
223
224               -u, --unmount
225                   Unmount the location.
226
227               -e, --eject
228                   Eject the location.
229
230               -s, --unmount-scheme=SCHEME
231                   Unmount all mounts with the given scheme.
232
233               -f, --force
234                   Ignore outstanding file operations when unmounting or
235                   ejecting.
236
237               -a, --anonymous
238                   Use an anonymous user when authenticating.
239
240               -l, --list
241                   List all GIO mounts.
242
243               -o, --monitor
244                   Monitor mount-related events.
245
246               -i, --detail
247                   Show extra information.
248
249               --tcrypt-pim
250                   The numeric PIM when unlocking a VeraCrypt volume.
251
252               --tcrypt-hidden
253                   Mount a TCRYPT hidden volume.
254
255               --tcrypt-system
256                   Mount a TCRYPT system volume.
257
258       move [OPTION...] SOURCE... DESTINATION
259           Moves one or more files from SOURCE to DESTINATION. If more than
260           one source is specified, the destination must be a directory.
261
262           The move command is similar to the traditional mv utility.
263
264       open LOCATION...
265           Opens files with the default application that is registered to
266           handle files of this type.
267
268           GIO obtains this information from the shared-mime-info database,
269           with per-user overrides stored in
270           $XDG_DATA_HOME/applications/mimeapps.list.
271
272           The mime command can be used to change the default handler for a
273           mimetype.
274
275       rename LOCATION NAME
276           Renames a file.
277
278           The rename command is similar to the traditional rename utility.
279
280       remove [OPTION...] LOCATION...
281           Deletes each given file.
282
283           This command removes files irreversibly. If you want a reversible
284           way to remove files, see the trash command.
285
286           Note that not all URI schemes that are supported by GIO may allow
287           deletion of files.
288
289           The remove command is similar to the traditional rm utility.
290
291           Options
292               -f, --force
293                   Ignore non-existent and non-deletable files.
294
295       save [OPTION...] DESTINATION
296           Reads from standard input and saves the data to the given location.
297
298           This is similar to just redirecting output to a file using
299           traditional shell syntax, but the save command allows saving to
300           location that GIO can write to.
301
302           Options
303               -b, --backup
304                   Back up existing destination files.
305
306               -c, --create
307                   Only create the destination if it doesn’t exist yet.
308
309               -a, --append
310                   Append to the end of the file.
311
312               -p, --private
313                   When creating, restrict access to the current user.
314
315               -u, --unlink
316                   When replacing, replace as if the destination did not
317                   exist.
318
319               -v, --print-etag
320                   Print the new ETag in the end.
321
322               -e, --etag=ETAG
323                   The ETag of the file that is overwritten.
324
325       set LOCATION ATTRIBUTE VALUE...
326           Sets a file attribute on a file.
327
328           File attributes can be specified with their GIO name, e.g
329           standard::icon. Note that not all GIO file attributes are writable.
330           Use the --query-writable option of the info command to list
331           writable file attributes.
332
333           If the TYPE is unset, VALUE does not have to be specified. If the
334           TYPE is stringv, multiple values can be given.
335
336           Options
337               -t, --type=TYPE
338                   Specifies the type of the attribute. Supported types are
339                   string, stringv, bytestring, boolean, uint32, int32,
340                   uint64, int64 and unset.
341
342                   If the type is not specified, string is assumed.
343
344               -n, --nofollow-symlinks
345                   Don’t follow symbolic links.
346
347       trash [OPTION...] [LOCATION...]
348           Sends files or directories to the ‘Trashcan’. This can be a
349           different folder depending on where the file is located, and not
350           all file systems support this concept. In the common case that the
351           file lives inside a user’s home directory, the trash folder is
352           $XDG_DATA_HOME/Trash.
353
354           Note that moving files to the trash does not free up space on the
355           file system until the ‘Trashcan’ is emptied. If you are interested
356           in deleting a file irreversibly, see the remove command.
357
358           Inspecting and emptying the ‘Trashcan’ is normally supported by
359           graphical file managers such as Nautilus, but you can also see the
360           trash with the command: gio list trash://.
361
362           Options
363               -f, --force
364                   Ignore non-existent and non-deletable files.
365
366               --empty
367                   Empty the trash.
368
369       tree [OPTION...] [LOCATION...]
370           Lists the contents of the given locations recursively, in a
371           tree-like format. If no location is given, it defaults to the
372           current directory.
373
374           The tree command is similar to the traditional tree utility.
375
376           Options
377               -h, --hidden
378                   Show hidden files.
379
380               -l, --follow-symlinks
381                   Follow symbolic links.
382

EXIT STATUS

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

SEE ALSO

387       cat(1), cp(1), ls(1), mkdir(1), mv(1), rm(1), tree(1).
388
389
390
391GIO                                                                     GIO(1)
Impressum