Blame docs/reference/gio/gio.xml

Packit ae235b
Packit ae235b
Packit ae235b
<refentry id="gio">
Packit ae235b
  <refentryinfo>
Packit ae235b
    <title>gio</title>
Packit ae235b
    <productname>GIO</productname>
Packit ae235b
    <authorgroup>
Packit ae235b
      <author>
Packit ae235b
        <contrib>Developer</contrib>
Packit ae235b
        <firstname>Matthias</firstname>
Packit ae235b
        <surname>Clasen</surname>
Packit ae235b
        <email>mclasen@redhat.com</email>
Packit ae235b
      </author>
Packit ae235b
    </authorgroup>
Packit ae235b
  </refentryinfo>
Packit ae235b
Packit ae235b
  <refmeta>
Packit ae235b
    <refentrytitle>gio</refentrytitle>
Packit ae235b
    <manvolnum>1</manvolnum>
Packit ae235b
    <refmiscinfo class="manual">User Commands</refmiscinfo>
Packit ae235b
  </refmeta>
Packit ae235b
Packit ae235b
  <refnamediv>
Packit ae235b
    <refname>gio</refname>
Packit ae235b
    <refpurpose>GIO commandline tool</refpurpose>
Packit ae235b
  </refnamediv>
Packit ae235b
Packit ae235b
  <refsynopsisdiv>
Packit ae235b
    <cmdsynopsis>
Packit ae235b
      <command>gio</command>
Packit ae235b
      <arg choice="plain">help</arg>
Packit ae235b
      <arg choice="opt"><replaceable>COMMAND</replaceable></arg>
Packit ae235b
    </cmdsynopsis>
Packit ae235b
    <cmdsynopsis>
Packit ae235b
      <command>gio</command>
Packit ae235b
      <arg choice="plain">version</arg>
Packit ae235b
    </cmdsynopsis>
Packit ae235b
    <cmdsynopsis>
Packit ae235b
      <command>gio</command>
Packit ae235b
      <arg choice="plain">cat</arg>
Packit ae235b
      <arg choice="plain" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
    </cmdsynopsis>
Packit ae235b
    <cmdsynopsis>
Packit ae235b
      <command>gio</command>
Packit ae235b
      <arg choice="plain">copy</arg>
Packit ae235b
      <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
      <arg choice="plain" rep="repeat"><replaceable>SOURCE</replaceable></arg>
Packit ae235b
      <arg choice="plain"><replaceable>DESTINATION</replaceable></arg>
Packit ae235b
    </cmdsynopsis>
Packit ae235b
    <cmdsynopsis>
Packit ae235b
      <command>gio</command>
Packit ae235b
      <arg choice="plain">info</arg>
Packit ae235b
      <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
      <arg choice="plain" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
    </cmdsynopsis>
Packit ae235b
    <cmdsynopsis>
Packit ae235b
      <command>gio</command>
Packit ae235b
      <arg choice="plain">list</arg>
Packit ae235b
      <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
      <arg choice="opt" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
    </cmdsynopsis>
Packit ae235b
    <cmdsynopsis>
Packit ae235b
      <command>gio</command>
Packit ae235b
      <arg choice="plain">mime</arg>
Packit ae235b
      <arg choice="plain"><replaceable>MIMETYPE</replaceable></arg>
Packit ae235b
      <arg choice="opt"><replaceable>HANDLER</replaceable></arg>
Packit ae235b
    </cmdsynopsis>
Packit ae235b
    <cmdsynopsis>
Packit ae235b
      <command>gio</command>
Packit ae235b
      <arg choice="plain">mkdir</arg>
Packit ae235b
      <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
      <arg choice="plain" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
    </cmdsynopsis>
Packit ae235b
    <cmdsynopsis>
Packit ae235b
      <command>gio</command>
Packit ae235b
      <arg choice="plain">monitor</arg>
Packit ae235b
      <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
      <arg choice="opt" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
    </cmdsynopsis>
Packit ae235b
    <cmdsynopsis>
Packit ae235b
      <command>gio</command>
Packit ae235b
      <arg choice="plain">mount</arg>
Packit ae235b
      <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
      <arg choice="opt" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
    </cmdsynopsis>
Packit ae235b
    <cmdsynopsis>
Packit ae235b
      <command>gio</command>
Packit ae235b
      <arg choice="plain">move</arg>
Packit ae235b
      <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
      <arg choice="plain" rep="repeat"><replaceable>SOURCE</replaceable></arg>
Packit ae235b
      <arg choice="plain"><replaceable>DESTINATION</replaceable></arg>
Packit ae235b
    </cmdsynopsis>
Packit ae235b
    <cmdsynopsis>
Packit ae235b
      <command>gio</command>
Packit ae235b
      <arg choice="plain">open</arg>
Packit ae235b
      <arg choice="plain" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
    </cmdsynopsis>
Packit ae235b
    <cmdsynopsis>
Packit ae235b
      <command>gio</command>
Packit ae235b
      <arg choice="plain">rename</arg>
Packit ae235b
      <arg choice="plain"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
      <arg choice="plain"><replaceable>NAME</replaceable></arg>
Packit ae235b
    </cmdsynopsis>
Packit ae235b
    <cmdsynopsis>
Packit ae235b
      <command>gio</command>
Packit ae235b
      <arg choice="plain">remove</arg>
Packit ae235b
      <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
      <arg choice="plain" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
    </cmdsynopsis>
Packit ae235b
    <cmdsynopsis>
Packit ae235b
      <command>gio</command>
Packit ae235b
      <arg choice="plain">save</arg>
Packit ae235b
      <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
      <arg choice="plain"><replaceable>DESTINATION</replaceable></arg>
Packit ae235b
    </cmdsynopsis>
Packit ae235b
    <cmdsynopsis>
Packit ae235b
      <command>gio</command>
Packit ae235b
      <arg choice="plain">set</arg>
Packit ae235b
      <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
      <arg choice="plain"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
      <arg choice="plain"><replaceable>ATTRIBUTE</replaceable></arg>
Packit ae235b
      <arg choice="plain" rep="repeat"><replaceable>VALUE</replaceable></arg>
Packit ae235b
    </cmdsynopsis>
Packit ae235b
    <cmdsynopsis>
Packit ae235b
      <command>gio</command>
Packit ae235b
      <arg choice="plain">trash</arg>
Packit ae235b
      <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
      <arg choice="opt" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
    </cmdsynopsis>
Packit ae235b
    <cmdsynopsis>
Packit ae235b
      <command>gio</command>
Packit ae235b
      <arg choice="plain">tree</arg>
Packit ae235b
      <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
      <arg choice="opt" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
    </cmdsynopsis>
Packit ae235b
  </refsynopsisdiv>
Packit ae235b
Packit ae235b
  <refsect1>
Packit ae235b
    <title>Description</title>
Packit ae235b
    <para><command>gio</command> is a utility that makes many of the GIO
Packit ae235b
      features available from the commandline. In doing so, it provides
Packit ae235b
      commands that are similar to traditional utilities, but let you
Packit ae235b
      use GIO locations instead of local files: for example you can use
Packit ae235b
      something like <filename>smb://server/resource/file.txt</filename>
Packit ae235b
      as location.</para>
Packit ae235b
  </refsect1>
Packit ae235b
Packit ae235b
  <refsect1>
Packit ae235b
    <title>Commands</title>
Packit ae235b
Packit ae235b
    <variablelist>
Packit ae235b
      <varlistentry>
Packit ae235b
        <term>
Packit ae235b
          <command>help</command>
Packit ae235b
          <arg choice="opt"><replaceable>COMMAND</replaceable></arg>
Packit ae235b
        </term>
Packit ae235b
        <listitem>
Packit ae235b
          <para>Displays a short synopsis of the available commands or provides
Packit ae235b
            detailed help on a specific command.</para>
Packit ae235b
        </listitem>
Packit ae235b
      </varlistentry>
Packit ae235b
Packit ae235b
      <varlistentry>
Packit ae235b
        <term>
Packit ae235b
          <command>version</command>
Packit ae235b
        </term>
Packit ae235b
        <listitem>
Packit ae235b
          <para>Prints the GLib version to which <command>gio</command>
Packit ae235b
            belongs.</para>
Packit ae235b
        </listitem>
Packit ae235b
      </varlistentry>
Packit ae235b
Packit ae235b
      <varlistentry>
Packit ae235b
        <term>
Packit ae235b
          <command>cat</command>
Packit ae235b
          <arg choice="plain" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
        </term>
Packit ae235b
        <listitem>
Packit ae235b
          <para>Concatenates the given files and prints them to the standard
Packit ae235b
            output.</para>
Packit ae235b
          <para>The cat command works just like the traditional cat utility.</para>
Packit ae235b
          <para>Note: just pipe through cat if you need its formatting options
Packit ae235b
            like -n, -T or other.</para>
Packit ae235b
        </listitem>
Packit ae235b
      </varlistentry>
Packit ae235b
Packit ae235b
      <varlistentry>
Packit ae235b
        <term>
Packit ae235b
          <command>copy</command>
Packit ae235b
          <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
          <arg choice="plain" rep="repeat"><replaceable>SOURCE</replaceable></arg>
Packit ae235b
          <arg choice="plain"><replaceable>DESTINATION</replaceable></arg>
Packit ae235b
        </term>
Packit ae235b
        <listitem>
Packit ae235b
          <para>Copies one or more files from <replaceable>SOURCE</replaceable>
Packit ae235b
            to <replaceable>DESTINATION</replaceable>. If more than one source
Packit ae235b
            is specified, the destination must be a directory.</para>
Packit ae235b
          <para>The copy command is similar to the traditional cp utility.</para>
Packit ae235b
          <refsect3>
Packit ae235b
            <title>Options</title>
Packit ae235b
            <variablelist>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-T</option>, <option>--no-target-directory</option></term>
Packit ae235b
                <listitem><para>Don't copy into <replaceable>DESTINATION</replaceable> even if it is a directory.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-p</option>, <option>--progress</option></term>
Packit ae235b
                <listitem><para>Show progress.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-i</option>, <option>--interactive</option></term>
Packit ae235b
                <listitem><para>Prompt for confirmation before overwriting files.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>--preserve</option></term>
Packit ae235b
                <listitem><para>Preserve all attributes of copied files.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-b</option>, <option>--backup</option></term>
Packit ae235b
                <listitem><para>Create backups of existing destination files.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-P</option>, <option>--no-dereference</option></term>
Packit ae235b
                <listitem><para>Never follow symbolic links.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
            </variablelist>
Packit ae235b
          </refsect3>
Packit ae235b
        </listitem>
Packit ae235b
      </varlistentry>
Packit ae235b
      <varlistentry>
Packit ae235b
        <term>
Packit ae235b
          <command>info</command>
Packit ae235b
          <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
          <arg choice="plain" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
        </term>
Packit ae235b
        <listitem>
Packit ae235b
          <para>Shows information about the given locations.</para>
Packit ae235b
          <para>The info command is similar to the traditional ls utility.</para>
Packit ae235b
          <refsect3>
Packit ae235b
            <title>Options</title>
Packit ae235b
            <variablelist>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-w</option>, <option>--query-writable</option></term>
Packit ae235b
                <listitem><para>List writable attributes.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-f</option>, <option>--filesystem</option></term>
Packit ae235b
                <listitem><para>Show information about the filesystem that the given
Packit ae235b
                locations reside on.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-a</option> <option>--attributes=<replaceable>ATTRIBUTES</replaceable></option></term>
Packit ae235b
                <listitem><para>The attributes to get.</para>
Packit ae235b
                  <para>Attributes can be specified with their GIO name, e.g.
Packit ae235b
                    standard::icon, or just by namespace, e.g. unix, or by '*',
Packit ae235b
                    which matches all attributes. Several attributes or groups
Packit ae235b
                    of attributes can be specified, separated by comma.</para>
Packit ae235b
                  <para>By default, all attributes are listed.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-n</option>, <option>--nofollow-symlinks</option></term>
Packit ae235b
                <listitem><para>Don't follow symbolic links.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
            </variablelist>
Packit ae235b
          </refsect3>
Packit ae235b
        </listitem>
Packit ae235b
      </varlistentry>
Packit ae235b
Packit ae235b
      <varlistentry>
Packit ae235b
        <term>
Packit ae235b
          <command>list</command>
Packit ae235b
          <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
          <arg choice="opt" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
        </term>
Packit ae235b
        <listitem>
Packit ae235b
          <para>Lists the contents of the given locations. If no location is
Packit ae235b
            given, the contents of the current directory are shown.</para>
Packit ae235b
          <para>The list command is similar to the traditional ls utility.</para>
Packit ae235b
          <refsect3>
Packit ae235b
            <title>Options</title>
Packit ae235b
            <variablelist>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-a</option> <option>--attributes=<replaceable>ATTRIBUTES</replaceable></option></term>
Packit ae235b
                <listitem><para>The attributes to get.</para>
Packit ae235b
                  <para>Attributes can be specified with their GIO name, e.g.
Packit ae235b
                    standard::icon, or just by namespace, e.g. unix, or by '*',
Packit ae235b
                    which matches all attributes. Several attributes or groups
Packit ae235b
                    of attributes can be specified, separated by comma.</para>
Packit ae235b
                  <para>By default, all attributes are listed.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-h</option>, <option>--hidden</option></term>
Packit ae235b
                <listitem><para>Show hidden files.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-l</option>, <option>--long</option></term>
Packit ae235b
                <listitem><para>Use a long listing format.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-n</option>, <option>--nofollow-symlinks</option></term>
Packit ae235b
                <listitem><para>Don't follow symbolic links.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-u</option>, <option>--print-uris</option></term>
Packit ae235b
                <listitem><para>Print full URIs.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
            </variablelist>
Packit ae235b
          </refsect3>
Packit ae235b
        </listitem>
Packit ae235b
      </varlistentry>
Packit ae235b
Packit ae235b
      <varlistentry>
Packit ae235b
        <term>
Packit ae235b
          <command>mime</command>
Packit ae235b
          <arg choice="plain"><replaceable>MIMETYPE</replaceable></arg>
Packit ae235b
          <arg choice="opt"><replaceable>HANDLER</replaceable></arg>
Packit ae235b
        </term>
Packit ae235b
        <listitem>
Packit ae235b
          <para>If no handler is given, the mime command lists the
Packit ae235b
            registered and recommended applications for the mimetype.
Packit ae235b
            If a handler is given, it is set as the default handler for
Packit ae235b
            the mimetype.</para>
Packit ae235b
          <para>Handlers must be specified by their desktop file name,
Packit ae235b
            including the extension. Example: org.gnome.gedit.desktop.</para>
Packit ae235b
        </listitem>
Packit ae235b
      </varlistentry>
Packit ae235b
Packit ae235b
      <varlistentry>
Packit ae235b
        <term>
Packit ae235b
          <command>mkdir</command>
Packit ae235b
          <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
          <arg choice="plain" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
        </term>
Packit ae235b
        <listitem>
Packit ae235b
          <para>Creates directories.</para>
Packit ae235b
          <para>The mkdir command is similar to the traditional mkdir utility.</para>
Packit ae235b
          <refsect3>
Packit ae235b
            <title>Options</title>
Packit ae235b
            <variablelist>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-p</option>, <option>--parent</option></term>
Packit ae235b
                <listitem><para>Create parent directories when necessary.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
            </variablelist>
Packit ae235b
          </refsect3>
Packit ae235b
        </listitem>
Packit ae235b
      </varlistentry>
Packit ae235b
Packit ae235b
      <varlistentry>
Packit ae235b
        <term>
Packit ae235b
          <command>monitor</command>
Packit ae235b
          <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
          <arg choice="opt" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
        </term>
Packit ae235b
        <listitem>
Packit ae235b
          <para>Monitors files or directories for changes, such as creation
Packit ae235b
            deletion, content and attribute changes, and mount and unmount
Packit ae235b
            operations affecting the monitored locations.</para>
Packit ae235b
          <para>The monitor command uses the GIO file monitoring APIs to do
Packit ae235b
            its job. GIO has different implementations for different platforms.
Packit ae235b
            The most common implementation on Linux uses inotify.</para>
Packit ae235b
          <refsect3>
Packit ae235b
            <title>Options</title>
Packit ae235b
            <variablelist>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-d</option>, <option>--dir=<replaceable>LOCATION</replaceable></option></term>
Packit ae235b
                <listitem><para>Monitor the given location as a directory. Normally,
Packit ae235b
                  the file type is used to determine whether to monitor a file or directory.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-f</option>, <option>--file=<replaceable>LOCATION</replaceable></option></term>
Packit ae235b
                <listitem><para>Monitor the given location as a file. Normally,
Packit ae235b
                  the file type is used to determine whether to monitor a file or directory.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-D</option>, <option>--direct=<replaceable>LOCATION</replaceable></option></term>
Packit ae235b
                <listitem><para>Monitor the file directly. This allows to capture changes made via hardlinks.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-s</option>, <option>--silent=<replaceable>LOCATION</replaceable></option></term>
Packit ae235b
                <listitem><para>Monitor the file directly, but don't report changes.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-n</option>, <option>--no-moves</option></term>
Packit ae235b
                <listitem><para>Report moves and renames as simple deleted/created events.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-m</option>, <option>--mounts</option></term>
Packit ae235b
                <listitem><para>Watch for mount events.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
            </variablelist>
Packit ae235b
          </refsect3>
Packit ae235b
        </listitem>
Packit ae235b
      </varlistentry>
Packit ae235b
Packit ae235b
      <varlistentry>
Packit ae235b
        <term>
Packit ae235b
          <command>mount</command>
Packit ae235b
          <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
          <arg choice="opt" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
        </term>
Packit ae235b
        <listitem>
Packit ae235b
          <para>Provides commandline access to various aspects of GIOs mounting
Packit ae235b
            functionality.</para>
Packit ae235b
          <para>Mounting refers to the traditional concept of arranging multiple
Packit ae235b
            file systems and devices in a single tree, rooted at /. Classical
Packit ae235b
            mounting happens in the kernel and is controlle by the mount utility.
Packit ae235b
            GIO expands this concept by introducing mount daemons that can make
Packit ae235b
            file systems available to GIO applications without kernel
Packit ae235b
            involvement.</para>
Packit ae235b
          <para>GIO mounts can require authentication, and the mount command
Packit ae235b
            may ask for user IDs, passwords, and so on, when required.</para>
Packit ae235b
          <refsect3>
Packit ae235b
            <title>Options</title>
Packit ae235b
            <variablelist>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-m</option>, <option>--mountable</option></term>
Packit ae235b
                <listitem><para>Mount as mountable.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-d</option>, <option>--device=<replaceable>DEVICE</replaceable></option></term>
Packit ae235b
                <listitem><para>Mount volume with device file.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-u</option>, <option>--unmount</option></term>
Packit ae235b
                <listitem><para>Unmount the location.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-e</option>, <option>--eject</option></term>
Packit ae235b
                <listitem><para>Eject the location.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-s</option>, <option>--unmount-scheme=<replaceable>SCHEME</replaceable></option></term>
Packit ae235b
                <listitem><para>Unmount all mounts with the given scheme.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-f</option>, <option>--force</option></term>
Packit ae235b
                <listitem><para>Ignore outstanding file operations when unmounting or ejecting.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-a</option>, <option>--anonymous</option></term>
Packit ae235b
                <listitem><para>Use an anonymous user when authenticating.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-l</option>, <option>--list</option></term>
Packit ae235b
                <listitem><para>List all GIO mounts.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-o</option>, <option>--monitor</option></term>
Packit ae235b
                <listitem><para>Monitor mount-related events.</para>
Packit ae235b
                </listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-i</option>, <option>--detail</option></term>
Packit ae235b
                <listitem><para>Show extra information.</para>
Packit ae235b
                </listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
            </variablelist>
Packit ae235b
          </refsect3>
Packit ae235b
        </listitem>
Packit ae235b
      </varlistentry>
Packit ae235b
Packit ae235b
      <varlistentry>
Packit ae235b
        <term>
Packit ae235b
          <command>move</command>
Packit ae235b
          <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
          <arg choice="plain" rep="repeat"><replaceable>SOURCE</replaceable></arg>
Packit ae235b
          <arg choice="plain"><replaceable>DESTINATION</replaceable></arg>
Packit ae235b
        </term>
Packit ae235b
        <listitem>
Packit ae235b
          <para>Moves one or more files from <replaceable>SOURCE</replaceable>
Packit ae235b
            to <replaceable>DESTINATION</replaceable>. If more than one source
Packit ae235b
            is specified, the destination must be a directory.</para>
Packit ae235b
          <para>The move command is similar to the traditional mv utility.</para>
Packit ae235b
        </listitem>
Packit ae235b
      </varlistentry>
Packit ae235b
Packit ae235b
      <varlistentry>
Packit ae235b
        <term>
Packit ae235b
          <command>open</command>
Packit ae235b
          <arg choice="plain" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
        </term>
Packit ae235b
        <listitem>
Packit ae235b
          <para>Opens files with the default application that is registered
Packit ae235b
            to handle files of this type.</para>
Packit ae235b
          <para>GIO obtains this information from the shared-mime-info
Packit ae235b
            database, with per-user overrides stored in
Packit ae235b
            <filename><envar>$XDG_DATA_HOME</envar>/applications/mimeapps.list</filename>.</para>
Packit ae235b
          <para>The mime command can be used to change the default handler for
Packit ae235b
            a mimetype.</para>
Packit ae235b
        </listitem>
Packit ae235b
      </varlistentry>
Packit ae235b
Packit ae235b
      <varlistentry>
Packit ae235b
        <term>
Packit ae235b
          <command>rename</command>
Packit ae235b
          <arg choice="plain"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
          <arg choice="plain"><replaceable>NAME</replaceable></arg>
Packit ae235b
        </term>
Packit ae235b
        <listitem>
Packit ae235b
          <para>Renames a file.</para>
Packit ae235b
          <para>The rename command is similar to the traditional rename utility.</para>
Packit ae235b
        </listitem>
Packit ae235b
      </varlistentry>
Packit ae235b
Packit ae235b
      <varlistentry>
Packit ae235b
        <term>
Packit ae235b
          <command>remove</command>
Packit ae235b
          <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
          <arg choice="plain" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
        </term>
Packit ae235b
        <listitem>
Packit ae235b
          <para>Deletes each given file.</para>
Packit ae235b
          <para>This command removes files irreversibly. If you want a reversible
Packit ae235b
            way to remove files, see the trash command.</para>
Packit ae235b
          <para>Note that not all URI schemes that are supported by GIO may
Packit ae235b
            allow deletion of files.</para>
Packit ae235b
          <para> The remove command is similar to the traditional rm utility.</para>
Packit ae235b
          <refsect3>
Packit ae235b
            <title>Options</title>
Packit ae235b
            <variablelist>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-f</option>, <option>--force</option></term>
Packit ae235b
                <listitem><para>Ignore non-existent and non-deletable files.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
            </variablelist>
Packit ae235b
          </refsect3>
Packit ae235b
        </listitem>
Packit ae235b
      </varlistentry>
Packit ae235b
Packit ae235b
      <varlistentry>
Packit ae235b
        <term>
Packit ae235b
          <command>save</command>
Packit ae235b
          <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
          <arg choice="plain"><replaceable>DESTINATION</replaceable></arg>
Packit ae235b
        </term>
Packit ae235b
        <listitem>
Packit ae235b
          <para>Reads from standard input and saves the data to the given
Packit ae235b
            location.</para>
Packit ae235b
          <para>This is similar to just redirecting output to a file using
Packit ae235b
            traditional shell syntax, but the save command allows saving to
Packit ae235b
            location that GIO can write to.</para>
Packit ae235b
          <refsect3>
Packit ae235b
            <title>Options</title>
Packit ae235b
            <variablelist>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-b</option>, <option>--backup</option></term>
Packit ae235b
                <listitem><para>Backup existing destination files.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-c</option>, <option>--create</option></term>
Packit ae235b
                <listitem><para>Only create the destination if it doesn't exist yet.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-a</option>, <option>--append</option></term>
Packit ae235b
                <listitem><para>Append to the end of the file.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-p</option>, <option>--private</option></term>
Packit ae235b
                <listitem><para>When creating, restrict access to the current user.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-u</option>, <option>--unlink</option></term>
Packit ae235b
                <listitem><para>When replacing, replace as if the destination did not exist.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-v</option>, <option>--print-etag</option></term>
Packit ae235b
                <listitem><para>Print the new etag in the end.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-e</option>, <option>--etag=<replaceable>ETAG</replaceable></option></term>
Packit ae235b
                <listitem><para>The etag of the file that is overwritten.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
            </variablelist>
Packit ae235b
          </refsect3>
Packit ae235b
        </listitem>
Packit ae235b
      </varlistentry>
Packit ae235b
Packit ae235b
      <varlistentry>
Packit ae235b
        <term>
Packit ae235b
          <command>set</command>
Packit ae235b
          <arg choice="plain"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
          <arg choice="plain"><replaceable>ATTRIBUTE</replaceable></arg>
Packit ae235b
          <arg choice="plain" rep="repeat"><replaceable>VALUE</replaceable></arg>
Packit ae235b
        </term>
Packit ae235b
        <listitem>
Packit ae235b
          <para>Allows to set a file attribute on a file.</para>
Packit ae235b
          <para>File attributes can be specified with their GIO name, e.g
Packit ae235b
            standard::icon. Note that not all GIO file attributes are writable.
Packit ae235b
            Use the --query-writable option of the info command to list
Packit ae235b
            writable file attributes.</para>
Packit ae235b
          <para>If the <replaceable>TYPE</replaceable> is unset,
Packit ae235b
            <replaceable>VALUE</replaceable> does not have to be specified.
Packit ae235b
            If the type is stringv, multiple values can be given.</para>
Packit ae235b
          <refsect3>
Packit ae235b
            <title>Options</title>
Packit ae235b
            <variablelist>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-t</option>, <option>--type=<replaceable>TYPE</replaceable></option></term>
Packit ae235b
                <listitem><para>Specifies the type of the attribute. Supported
Packit ae235b
                  types are string, stringv, bytestring, boolean, uint32, int32,
Packit ae235b
                  uint64, int64 and unset.</para>
Packit ae235b
                  <para>If the type is not specified, string is assumed.</para>
Packit ae235b
                </listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-n</option>, <option>--nofollow-symlinks</option></term>
Packit ae235b
                <listitem><para>Don't follow symbolic links.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
            </variablelist>
Packit ae235b
          </refsect3>
Packit ae235b
        </listitem>
Packit ae235b
      </varlistentry>
Packit ae235b
Packit ae235b
      <varlistentry>
Packit ae235b
        <term>
Packit ae235b
          <command>trash</command>
Packit ae235b
          <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
          <arg choice="opt" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
        </term>
Packit ae235b
        <listitem>
Packit ae235b
          <para>Sends files or directories to the "Trashcan". This can be a
Packit ae235b
            different folder depending on where the file is located, and not
Packit ae235b
            all file systems support this concept. In the common case that the
Packit ae235b
            file lives inside a users home directory, the trash folder is
Packit ae235b
            <filename><envar>$XDG_DATA_HOME</envar>/Trash</filename>.</para>
Packit ae235b
          <para>Note that moving files to the trash does not free up space on
Packit ae235b
            the file system until the "Trashcan" is emptied. If you are interested
Packit ae235b
            in deleting a file irreversibly, see the remove command.</para>
Packit ae235b
          <para>Inspecting and emptying the "Trashcan" is normally supported by
Packit ae235b
            graphical file managers such as nautilus, but you can also see the
Packit ae235b
            trash with the command: gio list trash://.</para>
Packit ae235b
          <refsect3>
Packit ae235b
            <title>Options</title>
Packit ae235b
            <variablelist>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-f</option>, <option>--force</option></term>
Packit ae235b
                <listitem><para>Ignore non-existent and non-deletable files.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>--empty</option></term>
Packit ae235b
                <listitem><para>Empty the trash.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
            </variablelist>
Packit ae235b
          </refsect3>
Packit ae235b
        </listitem>
Packit ae235b
      </varlistentry>
Packit ae235b
Packit ae235b
      <varlistentry>
Packit ae235b
        <term>
Packit ae235b
          <command>tree</command>
Packit ae235b
          <arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
Packit ae235b
          <arg choice="opt" rep="repeat"><replaceable>LOCATION</replaceable></arg>
Packit ae235b
        </term>
Packit ae235b
        <listitem>
Packit ae235b
          <para>Lists the contents of the given locations recursively, in a
Packit ae235b
            tree-like format. If no location is given, it defaults to the current
Packit ae235b
            directory.</para>
Packit ae235b
          <para>The tree command is similar to the traditional tree utility.</para>
Packit ae235b
          <refsect3>
Packit ae235b
            <title>Options</title>
Packit ae235b
            <variablelist>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-h</option>, <option>--hidden</option></term>
Packit ae235b
                <listitem><para>Show hidden files.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
              <varlistentry>
Packit ae235b
                <term><option>-l</option>, <option>--follow-symlinks</option></term>
Packit ae235b
                <listitem><para>Follow symbolic links.</para></listitem>
Packit ae235b
              </varlistentry>
Packit ae235b
            </variablelist>
Packit ae235b
          </refsect3>
Packit ae235b
        </listitem>
Packit ae235b
      </varlistentry>
Packit ae235b
    </variablelist>
Packit ae235b
  </refsect1>
Packit ae235b
Packit ae235b
  <refsect1>
Packit ae235b
    <title>Exit status</title>
Packit ae235b
    <para>On success 0 is returned, a non-zero failure code otherwise.</para>
Packit ae235b
  </refsect1>
Packit ae235b
Packit ae235b
  <refsect1>
Packit ae235b
    <title>See Also</title>
Packit ae235b
    <para>
Packit ae235b
      <citerefentry>
Packit ae235b
        <refentrytitle>cat</refentrytitle>
Packit ae235b
        <manvolnum>1</manvolnum>
Packit ae235b
      </citerefentry>,
Packit ae235b
      <citerefentry>
Packit ae235b
        <refentrytitle>cp</refentrytitle>
Packit ae235b
        <manvolnum>1</manvolnum>
Packit ae235b
      </citerefentry>,
Packit ae235b
      <citerefentry>
Packit ae235b
        <refentrytitle>ls</refentrytitle>
Packit ae235b
        <manvolnum>1</manvolnum>
Packit ae235b
      </citerefentry>,
Packit ae235b
      <citerefentry>
Packit ae235b
        <refentrytitle>mkdir</refentrytitle>
Packit ae235b
        <manvolnum>1</manvolnum>
Packit ae235b
      </citerefentry>,
Packit ae235b
      <citerefentry>
Packit ae235b
        <refentrytitle>mv</refentrytitle>
Packit ae235b
        <manvolnum>1</manvolnum>
Packit ae235b
      </citerefentry>,
Packit ae235b
      <citerefentry>
Packit ae235b
        <refentrytitle>rm</refentrytitle>
Packit ae235b
        <manvolnum>1</manvolnum>
Packit ae235b
      </citerefentry>,
Packit ae235b
      <citerefentry>
Packit ae235b
        <refentrytitle>tree</refentrytitle>
Packit ae235b
        <manvolnum>1</manvolnum>
Packit ae235b
      </citerefentry>.
Packit ae235b
    </para>
Packit ae235b
  </refsect1>
Packit ae235b
</refentry>