Blame docs/reference/gio/gio.1

Packit ae235b
'\" t
Packit ae235b
.\"     Title: gio
Packit ae235b
.\"    Author: Matthias Clasen <mclasen@redhat.com>
Packit ae235b
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
Packit ae235b
.\"      Date: 04/07/2018
Packit ae235b
.\"    Manual: User Commands
Packit ae235b
.\"    Source: GIO
Packit ae235b
.\"  Language: English
Packit ae235b
.\"
Packit ae235b
.TH "GIO" "1" "" "GIO" "User Commands"
Packit ae235b
.\" -----------------------------------------------------------------
Packit ae235b
.\" * Define some portability stuff
Packit ae235b
.\" -----------------------------------------------------------------
Packit ae235b
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Packit ae235b
.\" http://bugs.debian.org/507673
Packit ae235b
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
Packit ae235b
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Packit ae235b
.ie \n(.g .ds Aq \(aq
Packit ae235b
.el       .ds Aq '
Packit ae235b
.\" -----------------------------------------------------------------
Packit ae235b
.\" * set default formatting
Packit ae235b
.\" -----------------------------------------------------------------
Packit ae235b
.\" disable hyphenation
Packit ae235b
.nh
Packit ae235b
.\" disable justification (adjust text to left margin only)
Packit ae235b
.ad l
Packit ae235b
.\" -----------------------------------------------------------------
Packit ae235b
.\" * MAIN CONTENT STARTS HERE *
Packit ae235b
.\" -----------------------------------------------------------------
Packit ae235b
.SH "NAME"
Packit ae235b
gio \- GIO commandline tool
Packit ae235b
.SH "SYNOPSIS"
Packit ae235b
.HP \w'\fBgio\fR\ 'u
Packit ae235b
\fBgio\fR help [\fICOMMAND\fR]
Packit ae235b
.HP \w'\fBgio\fR\ 'u
Packit ae235b
\fBgio\fR version
Packit ae235b
.HP \w'\fBgio\fR\ 'u
Packit ae235b
\fBgio\fR cat \fILOCATION\fR...
Packit ae235b
.HP \w'\fBgio\fR\ 'u
Packit ae235b
\fBgio\fR copy [\fIOPTION\fR...] \fISOURCE\fR... \fIDESTINATION\fR
Packit ae235b
.HP \w'\fBgio\fR\ 'u
Packit ae235b
\fBgio\fR info [\fIOPTION\fR...] \fILOCATION\fR...
Packit ae235b
.HP \w'\fBgio\fR\ 'u
Packit ae235b
\fBgio\fR list [\fIOPTION\fR...] [\fILOCATION\fR...]
Packit ae235b
.HP \w'\fBgio\fR\ 'u
Packit ae235b
\fBgio\fR mime \fIMIMETYPE\fR [\fIHANDLER\fR]
Packit ae235b
.HP \w'\fBgio\fR\ 'u
Packit ae235b
\fBgio\fR mkdir [\fIOPTION\fR...] \fILOCATION\fR...
Packit ae235b
.HP \w'\fBgio\fR\ 'u
Packit ae235b
\fBgio\fR monitor [\fIOPTION\fR...] [\fILOCATION\fR...]
Packit ae235b
.HP \w'\fBgio\fR\ 'u
Packit ae235b
\fBgio\fR mount [\fIOPTION\fR...] [\fILOCATION\fR...]
Packit ae235b
.HP \w'\fBgio\fR\ 'u
Packit ae235b
\fBgio\fR move [\fIOPTION\fR...] \fISOURCE\fR... \fIDESTINATION\fR
Packit ae235b
.HP \w'\fBgio\fR\ 'u
Packit ae235b
\fBgio\fR open \fILOCATION\fR...
Packit ae235b
.HP \w'\fBgio\fR\ 'u
Packit ae235b
\fBgio\fR rename \fILOCATION\fR \fINAME\fR
Packit ae235b
.HP \w'\fBgio\fR\ 'u
Packit ae235b
\fBgio\fR remove [\fIOPTION\fR...] \fILOCATION\fR...
Packit ae235b
.HP \w'\fBgio\fR\ 'u
Packit ae235b
\fBgio\fR save [\fIOPTION\fR...] \fIDESTINATION\fR
Packit ae235b
.HP \w'\fBgio\fR\ 'u
Packit ae235b
\fBgio\fR set [\fIOPTION\fR...] \fILOCATION\fR \fIATTRIBUTE\fR \fIVALUE\fR...
Packit ae235b
.HP \w'\fBgio\fR\ 'u
Packit ae235b
\fBgio\fR trash [\fIOPTION\fR...] [\fILOCATION\fR...]
Packit ae235b
.HP \w'\fBgio\fR\ 'u
Packit ae235b
\fBgio\fR tree [\fIOPTION\fR...] [\fILOCATION\fR...]
Packit ae235b
.SH "DESCRIPTION"
Packit ae235b
.PP
Packit ae235b
\fBgio\fR
Packit ae235b
is a utility that makes many of the GIO features available from the commandline\&. In doing so, it provides commands that are similar to traditional utilities, but let you use GIO locations instead of local files: for example you can use something like
Packit ae235b
smb://server/resource/file\&.txt
Packit ae235b
as location\&.
Packit ae235b
.SH "COMMANDS"
Packit ae235b
.PP
Packit ae235b
\fBhelp\fR [\fICOMMAND\fR]
Packit ae235b
.RS 4
Packit ae235b
Displays a short synopsis of the available commands or provides detailed help on a specific command\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fBversion\fR
Packit ae235b
.RS 4
Packit ae235b
Prints the GLib version to which
Packit ae235b
\fBgio\fR
Packit ae235b
belongs\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fBcat\fR \fILOCATION\fR...
Packit ae235b
.RS 4
Packit ae235b
Concatenates the given files and prints them to the standard output\&.
Packit ae235b
.sp
Packit ae235b
The cat command works just like the traditional cat utility\&.
Packit ae235b
.sp
Packit ae235b
Note: just pipe through cat if you need its formatting options like \-n, \-T or other\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fBcopy\fR [\fIOPTION\fR...] \fISOURCE\fR... \fIDESTINATION\fR
Packit ae235b
.RS 4
Packit ae235b
Copies one or more files from
Packit ae235b
\fISOURCE\fR
Packit ae235b
to
Packit ae235b
\fIDESTINATION\fR\&. If more than one source is specified, the destination must be a directory\&.
Packit ae235b
.sp
Packit ae235b
The copy command is similar to the traditional cp utility\&.
Packit ae235b
.sp
Packit ae235b
.it 1 an-trap
Packit ae235b
.nr an-no-space-flag 1
Packit ae235b
.nr an-break-flag 1
Packit ae235b
.br
Packit ae235b
.ps +1
Packit ae235b
\fBOptions\fR
Packit ae235b
.RS 4
Packit ae235b
.PP
Packit ae235b
\fB\-T\fR, \fB\-\-no\-target\-directory\fR
Packit ae235b
.RS 4
Packit ae235b
Don\*(Aqt copy into
Packit ae235b
\fIDESTINATION\fR
Packit ae235b
even if it is a directory\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-p\fR, \fB\-\-progress\fR
Packit ae235b
.RS 4
Packit ae235b
Show progress\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-i\fR, \fB\-\-interactive\fR
Packit ae235b
.RS 4
Packit ae235b
Prompt for confirmation before overwriting files\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-\-preserve\fR
Packit ae235b
.RS 4
Packit ae235b
Preserve all attributes of copied files\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-b\fR, \fB\-\-backup\fR
Packit ae235b
.RS 4
Packit ae235b
Create backups of existing destination files\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-P\fR, \fB\-\-no\-dereference\fR
Packit ae235b
.RS 4
Packit ae235b
Never follow symbolic links\&.
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fBinfo\fR [\fIOPTION\fR...] \fILOCATION\fR...
Packit ae235b
.RS 4
Packit ae235b
Shows information about the given locations\&.
Packit ae235b
.sp
Packit ae235b
The info command is similar to the traditional ls utility\&.
Packit ae235b
.sp
Packit ae235b
.it 1 an-trap
Packit ae235b
.nr an-no-space-flag 1
Packit ae235b
.nr an-break-flag 1
Packit ae235b
.br
Packit ae235b
.ps +1
Packit ae235b
\fBOptions\fR
Packit ae235b
.RS 4
Packit ae235b
.PP
Packit ae235b
\fB\-w\fR, \fB\-\-query\-writable\fR
Packit ae235b
.RS 4
Packit ae235b
List writable attributes\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-f\fR, \fB\-\-filesystem\fR
Packit ae235b
.RS 4
Packit ae235b
Show information about the filesystem that the given locations reside on\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-a\fR \fB\-\-attributes=\fR\fB\fIATTRIBUTES\fR\fR
Packit ae235b
.RS 4
Packit ae235b
The attributes to get\&.
Packit ae235b
.sp
Packit ae235b
Attributes can be specified with their GIO name, e\&.g\&. standard::icon, or just by namespace, e\&.g\&. unix, or by \*(Aq*\*(Aq, which matches all attributes\&. Several attributes or groups of attributes can be specified, separated by comma\&.
Packit ae235b
.sp
Packit ae235b
By default, all attributes are listed\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-n\fR, \fB\-\-nofollow\-symlinks\fR
Packit ae235b
.RS 4
Packit ae235b
Don\*(Aqt follow symbolic links\&.
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fBlist\fR [\fIOPTION\fR...] [\fILOCATION\fR...]
Packit ae235b
.RS 4
Packit ae235b
Lists the contents of the given locations\&. If no location is given, the contents of the current directory are shown\&.
Packit ae235b
.sp
Packit ae235b
The list command is similar to the traditional ls utility\&.
Packit ae235b
.sp
Packit ae235b
.it 1 an-trap
Packit ae235b
.nr an-no-space-flag 1
Packit ae235b
.nr an-break-flag 1
Packit ae235b
.br
Packit ae235b
.ps +1
Packit ae235b
\fBOptions\fR
Packit ae235b
.RS 4
Packit ae235b
.PP
Packit ae235b
\fB\-a\fR \fB\-\-attributes=\fR\fB\fIATTRIBUTES\fR\fR
Packit ae235b
.RS 4
Packit ae235b
The attributes to get\&.
Packit ae235b
.sp
Packit ae235b
Attributes can be specified with their GIO name, e\&.g\&. standard::icon, or just by namespace, e\&.g\&. unix, or by \*(Aq*\*(Aq, which matches all attributes\&. Several attributes or groups of attributes can be specified, separated by comma\&.
Packit ae235b
.sp
Packit ae235b
By default, all attributes are listed\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-h\fR, \fB\-\-hidden\fR
Packit ae235b
.RS 4
Packit ae235b
Show hidden files\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-l\fR, \fB\-\-long\fR
Packit ae235b
.RS 4
Packit ae235b
Use a long listing format\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-n\fR, \fB\-\-nofollow\-symlinks\fR
Packit ae235b
.RS 4
Packit ae235b
Don\*(Aqt follow symbolic links\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-u\fR, \fB\-\-print\-uris\fR
Packit ae235b
.RS 4
Packit ae235b
Print full URIs\&.
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fBmime\fR \fIMIMETYPE\fR [\fIHANDLER\fR]
Packit ae235b
.RS 4
Packit ae235b
If no handler is given, the mime command lists the registered and recommended applications for the mimetype\&. If a handler is given, it is set as the default handler for the mimetype\&.
Packit ae235b
.sp
Packit ae235b
Handlers must be specified by their desktop file name, including the extension\&. Example: org\&.gnome\&.gedit\&.desktop\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fBmkdir\fR [\fIOPTION\fR...] \fILOCATION\fR...
Packit ae235b
.RS 4
Packit ae235b
Creates directories\&.
Packit ae235b
.sp
Packit ae235b
The mkdir command is similar to the traditional mkdir utility\&.
Packit ae235b
.sp
Packit ae235b
.it 1 an-trap
Packit ae235b
.nr an-no-space-flag 1
Packit ae235b
.nr an-break-flag 1
Packit ae235b
.br
Packit ae235b
.ps +1
Packit ae235b
\fBOptions\fR
Packit ae235b
.RS 4
Packit ae235b
.PP
Packit ae235b
\fB\-p\fR, \fB\-\-parent\fR
Packit ae235b
.RS 4
Packit ae235b
Create parent directories when necessary\&.
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fBmonitor\fR [\fIOPTION\fR...] [\fILOCATION\fR...]
Packit ae235b
.RS 4
Packit ae235b
Monitors files or directories for changes, such as creation deletion, content and attribute changes, and mount and unmount operations affecting the monitored locations\&.
Packit ae235b
.sp
Packit ae235b
The monitor command uses the GIO file monitoring APIs to do its job\&. GIO has different implementations for different platforms\&. The most common implementation on Linux uses inotify\&.
Packit ae235b
.sp
Packit ae235b
.it 1 an-trap
Packit ae235b
.nr an-no-space-flag 1
Packit ae235b
.nr an-break-flag 1
Packit ae235b
.br
Packit ae235b
.ps +1
Packit ae235b
\fBOptions\fR
Packit ae235b
.RS 4
Packit ae235b
.PP
Packit ae235b
\fB\-d\fR, \fB\-\-dir=\fR\fB\fILOCATION\fR\fR
Packit ae235b
.RS 4
Packit ae235b
Monitor the given location as a directory\&. Normally, the file type is used to determine whether to monitor a file or directory\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-f\fR, \fB\-\-file=\fR\fB\fILOCATION\fR\fR
Packit ae235b
.RS 4
Packit ae235b
Monitor the given location as a file\&. Normally, the file type is used to determine whether to monitor a file or directory\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-D\fR, \fB\-\-direct=\fR\fB\fILOCATION\fR\fR
Packit ae235b
.RS 4
Packit ae235b
Monitor the file directly\&. This allows to capture changes made via hardlinks\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-s\fR, \fB\-\-silent=\fR\fB\fILOCATION\fR\fR
Packit ae235b
.RS 4
Packit ae235b
Monitor the file directly, but don\*(Aqt report changes\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-n\fR, \fB\-\-no\-moves\fR
Packit ae235b
.RS 4
Packit ae235b
Report moves and renames as simple deleted/created events\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-m\fR, \fB\-\-mounts\fR
Packit ae235b
.RS 4
Packit ae235b
Watch for mount events\&.
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fBmount\fR [\fIOPTION\fR...] [\fILOCATION\fR...]
Packit ae235b
.RS 4
Packit ae235b
Provides commandline access to various aspects of GIOs mounting functionality\&.
Packit ae235b
.sp
Packit ae235b
Mounting refers to the traditional concept of arranging multiple file systems and devices in a single tree, rooted at /\&. Classical mounting happens in the kernel and is controlle by the mount utility\&. GIO expands this concept by introducing mount daemons that can make file systems available to GIO applications without kernel involvement\&.
Packit ae235b
.sp
Packit ae235b
GIO mounts can require authentication, and the mount command may ask for user IDs, passwords, and so on, when required\&.
Packit ae235b
.sp
Packit ae235b
.it 1 an-trap
Packit ae235b
.nr an-no-space-flag 1
Packit ae235b
.nr an-break-flag 1
Packit ae235b
.br
Packit ae235b
.ps +1
Packit ae235b
\fBOptions\fR
Packit ae235b
.RS 4
Packit ae235b
.PP
Packit ae235b
\fB\-m\fR, \fB\-\-mountable\fR
Packit ae235b
.RS 4
Packit ae235b
Mount as mountable\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-d\fR, \fB\-\-device=\fR\fB\fIDEVICE\fR\fR
Packit ae235b
.RS 4
Packit ae235b
Mount volume with device file\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-u\fR, \fB\-\-unmount\fR
Packit ae235b
.RS 4
Packit ae235b
Unmount the location\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-e\fR, \fB\-\-eject\fR
Packit ae235b
.RS 4
Packit ae235b
Eject the location\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-s\fR, \fB\-\-unmount\-scheme=\fR\fB\fISCHEME\fR\fR
Packit ae235b
.RS 4
Packit ae235b
Unmount all mounts with the given scheme\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-f\fR, \fB\-\-force\fR
Packit ae235b
.RS 4
Packit ae235b
Ignore outstanding file operations when unmounting or ejecting\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-a\fR, \fB\-\-anonymous\fR
Packit ae235b
.RS 4
Packit ae235b
Use an anonymous user when authenticating\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-l\fR, \fB\-\-list\fR
Packit ae235b
.RS 4
Packit ae235b
List all GIO mounts\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-o\fR, \fB\-\-monitor\fR
Packit ae235b
.RS 4
Packit ae235b
Monitor mount\-related events\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-i\fR, \fB\-\-detail\fR
Packit ae235b
.RS 4
Packit ae235b
Show extra information\&.
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fBmove\fR [\fIOPTION\fR...] \fISOURCE\fR... \fIDESTINATION\fR
Packit ae235b
.RS 4
Packit ae235b
Moves one or more files from
Packit ae235b
\fISOURCE\fR
Packit ae235b
to
Packit ae235b
\fIDESTINATION\fR\&. If more than one source is specified, the destination must be a directory\&.
Packit ae235b
.sp
Packit ae235b
The move command is similar to the traditional mv utility\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fBopen\fR \fILOCATION\fR...
Packit ae235b
.RS 4
Packit ae235b
Opens files with the default application that is registered to handle files of this type\&.
Packit ae235b
.sp
Packit ae235b
GIO obtains this information from the shared\-mime\-info database, with per\-user overrides stored in
Packit ae235b
\fB$XDG_DATA_HOME\fR/applications/mimeapps\&.list\&.
Packit ae235b
.sp
Packit ae235b
The mime command can be used to change the default handler for a mimetype\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fBrename\fR \fILOCATION\fR \fINAME\fR
Packit ae235b
.RS 4
Packit ae235b
Renames a file\&.
Packit ae235b
.sp
Packit ae235b
The rename command is similar to the traditional rename utility\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fBremove\fR [\fIOPTION\fR...] \fILOCATION\fR...
Packit ae235b
.RS 4
Packit ae235b
Deletes each given file\&.
Packit ae235b
.sp
Packit ae235b
This command removes files irreversibly\&. If you want a reversible way to remove files, see the trash command\&.
Packit ae235b
.sp
Packit ae235b
Note that not all URI schemes that are supported by GIO may allow deletion of files\&.
Packit ae235b
.sp
Packit ae235b
The remove command is similar to the traditional rm utility\&.
Packit ae235b
.sp
Packit ae235b
.it 1 an-trap
Packit ae235b
.nr an-no-space-flag 1
Packit ae235b
.nr an-break-flag 1
Packit ae235b
.br
Packit ae235b
.ps +1
Packit ae235b
\fBOptions\fR
Packit ae235b
.RS 4
Packit ae235b
.PP
Packit ae235b
\fB\-f\fR, \fB\-\-force\fR
Packit ae235b
.RS 4
Packit ae235b
Ignore non\-existent and non\-deletable files\&.
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fBsave\fR [\fIOPTION\fR...] \fIDESTINATION\fR
Packit ae235b
.RS 4
Packit ae235b
Reads from standard input and saves the data to the given location\&.
Packit ae235b
.sp
Packit ae235b
This is similar to just redirecting output to a file using traditional shell syntax, but the save command allows saving to location that GIO can write to\&.
Packit ae235b
.sp
Packit ae235b
.it 1 an-trap
Packit ae235b
.nr an-no-space-flag 1
Packit ae235b
.nr an-break-flag 1
Packit ae235b
.br
Packit ae235b
.ps +1
Packit ae235b
\fBOptions\fR
Packit ae235b
.RS 4
Packit ae235b
.PP
Packit ae235b
\fB\-b\fR, \fB\-\-backup\fR
Packit ae235b
.RS 4
Packit ae235b
Backup existing destination files\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-c\fR, \fB\-\-create\fR
Packit ae235b
.RS 4
Packit ae235b
Only create the destination if it doesn\*(Aqt exist yet\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-a\fR, \fB\-\-append\fR
Packit ae235b
.RS 4
Packit ae235b
Append to the end of the file\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-p\fR, \fB\-\-private\fR
Packit ae235b
.RS 4
Packit ae235b
When creating, restrict access to the current user\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-u\fR, \fB\-\-unlink\fR
Packit ae235b
.RS 4
Packit ae235b
When replacing, replace as if the destination did not exist\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-v\fR, \fB\-\-print\-etag\fR
Packit ae235b
.RS 4
Packit ae235b
Print the new etag in the end\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-e\fR, \fB\-\-etag=\fR\fB\fIETAG\fR\fR
Packit ae235b
.RS 4
Packit ae235b
The etag of the file that is overwritten\&.
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fBset\fR \fILOCATION\fR \fIATTRIBUTE\fR \fIVALUE\fR...
Packit ae235b
.RS 4
Packit ae235b
Allows to set a file attribute on a file\&.
Packit ae235b
.sp
Packit ae235b
File attributes can be specified with their GIO name, e\&.g standard::icon\&. Note that not all GIO file attributes are writable\&. Use the \-\-query\-writable option of the info command to list writable file attributes\&.
Packit ae235b
.sp
Packit ae235b
If the
Packit ae235b
\fITYPE\fR
Packit ae235b
is unset,
Packit ae235b
\fIVALUE\fR
Packit ae235b
does not have to be specified\&. If the type is stringv, multiple values can be given\&.
Packit ae235b
.sp
Packit ae235b
.it 1 an-trap
Packit ae235b
.nr an-no-space-flag 1
Packit ae235b
.nr an-break-flag 1
Packit ae235b
.br
Packit ae235b
.ps +1
Packit ae235b
\fBOptions\fR
Packit ae235b
.RS 4
Packit ae235b
.PP
Packit ae235b
\fB\-t\fR, \fB\-\-type=\fR\fB\fITYPE\fR\fR
Packit ae235b
.RS 4
Packit ae235b
Specifies the type of the attribute\&. Supported types are string, stringv, bytestring, boolean, uint32, int32, uint64, int64 and unset\&.
Packit ae235b
.sp
Packit ae235b
If the type is not specified, string is assumed\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-n\fR, \fB\-\-nofollow\-symlinks\fR
Packit ae235b
.RS 4
Packit ae235b
Don\*(Aqt follow symbolic links\&.
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fBtrash\fR [\fIOPTION\fR...] [\fILOCATION\fR...]
Packit ae235b
.RS 4
Packit ae235b
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
Packit ae235b
\fB$XDG_DATA_HOME\fR/Trash\&.
Packit ae235b
.sp
Packit ae235b
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 the remove command\&.
Packit ae235b
.sp
Packit ae235b
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: gio list trash://\&.
Packit ae235b
.sp
Packit ae235b
.it 1 an-trap
Packit ae235b
.nr an-no-space-flag 1
Packit ae235b
.nr an-break-flag 1
Packit ae235b
.br
Packit ae235b
.ps +1
Packit ae235b
\fBOptions\fR
Packit ae235b
.RS 4
Packit ae235b
.PP
Packit ae235b
\fB\-f\fR, \fB\-\-force\fR
Packit ae235b
.RS 4
Packit ae235b
Ignore non\-existent and non\-deletable files\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-\-empty\fR
Packit ae235b
.RS 4
Packit ae235b
Empty the trash\&.
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fBtree\fR [\fIOPTION\fR...] [\fILOCATION\fR...]
Packit ae235b
.RS 4
Packit ae235b
Lists the contents of the given locations recursively, in a tree\-like format\&. If no location is given, it defaults to the current directory\&.
Packit ae235b
.sp
Packit ae235b
The tree command is similar to the traditional tree utility\&.
Packit ae235b
.sp
Packit ae235b
.it 1 an-trap
Packit ae235b
.nr an-no-space-flag 1
Packit ae235b
.nr an-break-flag 1
Packit ae235b
.br
Packit ae235b
.ps +1
Packit ae235b
\fBOptions\fR
Packit ae235b
.RS 4
Packit ae235b
.PP
Packit ae235b
\fB\-h\fR, \fB\-\-hidden\fR
Packit ae235b
.RS 4
Packit ae235b
Show hidden files\&.
Packit ae235b
.RE
Packit ae235b
.PP
Packit ae235b
\fB\-l\fR, \fB\-\-follow\-symlinks\fR
Packit ae235b
.RS 4
Packit ae235b
Follow symbolic links\&.
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.RE
Packit ae235b
.SH "EXIT STATUS"
Packit ae235b
.PP
Packit ae235b
On success 0 is returned, a non\-zero failure code otherwise\&.
Packit ae235b
.SH "SEE ALSO"
Packit ae235b
.PP
Packit ae235b
\fBcat\fR(1),
Packit ae235b
\fBcp\fR(1),
Packit ae235b
\fBls\fR(1),
Packit ae235b
\fBmkdir\fR(1),
Packit ae235b
\fBmv\fR(1),
Packit ae235b
\fBrm\fR(1),
Packit ae235b
\fBtree\fR(1)\&.