<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>D4Blog - debian</title>
    <subtitle>Introduction page</subtitle>
    <link rel="self" type="application/atom+xml" href="https://d4blog.codeberg.page/tags/debian/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://d4blog.codeberg.page"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2026-07-07T00:00:00+00:00</updated>
    <id>https://d4blog.codeberg.page/tags/debian/atom.xml</id>
    <entry xml:lang="en">
        <title>Mansnip - The worst-named, most complementary man-page tool I use</title>
        <published>2026-07-07T00:00:00+00:00</published>
        <updated>2026-07-07T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              macallik
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://d4blog.codeberg.page/blog/mansnip/"/>
        <id>https://d4blog.codeberg.page/blog/mansnip/</id>
        
        <content type="html" xml:base="https://d4blog.codeberg.page/blog/mansnip/">&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;day50-dev&#x2F;llm-manpage-tool?tab=readme-ov-file&quot;&gt;Mansnip&lt;&#x2F;a&gt; sounds painful, but is a frictionless tool for those &quot;I know that I need to use &lt;code&gt;tar xzvf&lt;&#x2F;code&gt; but can&#x27;t remember what most of those flags mean&quot; situations. It basically greps man pages and returns only the flag-related info. It also has LLM-related functionality but I&#x27;ve sidestepped that since it is good enough for me as is. Here it is in action:&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #F8F8F2; background-color: #282A36;&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt; mansnip tar&lt;&#x2F;span&gt;&lt;span style=&quot;color: #BD93F9;&quot;&gt; -x -z -v -f&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;142&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt;  Operation mode&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;       -x,&lt;&#x2F;span&gt;&lt;span style=&quot;color: #BD93F9;&quot;&gt; --extract, --get&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;              Extract&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt; files from an archive.  Arguments are optional.  When given, they specify names of the archive members to be extracted.&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;443&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt;  Device selection and switching&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;       -f,&lt;&#x2F;span&gt;&lt;span style=&quot;color: #BD93F9;&quot;&gt; --file=ARCHIVE&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;              Use&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt; archive file or device ARCHIVE.  If this option is not given, tar will first examine the environment variable `&lt;&#x2F;span&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;TAPE&amp;#39;.  If it is set, its value will be&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;              used  as  the  archive name.  Otherwise, tar will assume the compiled-in default.  The default value can be inspected either using the --show-defaults op‐&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;              tion, or at the end of the tar --help output.&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;              An archive name that has a colon in it specifies a file or device on a remote machine.  The part before the colon is taken as the machine name or  IP  ad‐&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;              dress, and the part after it as the file or device pathname, e.g.:&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;              --file=remotehost:&#x2F;dev&#x2F;sr0&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;              An optional username can be prefixed to the hostname, placing a @ sign between them.&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;              By  default, the remote host is accessed via the rsh(1) command.  Nowadays it is common to use ssh(1) instead.  You can do so by giving the following com‐&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;              mand line option:&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;              --rsh-command=&#x2F;usr&#x2F;bin&#x2F;ssh&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;              The remote machine should have the rmt(8) command installed.  If its pathname does not match tar&amp;#39;s&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt; default, you can inform tar about the correct  pathname&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;              using&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt; the&lt;&#x2F;span&gt;&lt;span style=&quot;color: #BD93F9;&quot;&gt; --rmt-command&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt; option.&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;574&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt;  Compression options&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;       -z,&lt;&#x2F;span&gt;&lt;span style=&quot;color: #BD93F9;&quot;&gt; --gzip, --gunzip, --ungzip&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;              Filter&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt; the archive through gzip(&lt;&#x2F;span&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;1&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt;).&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;798&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt;  Informative output&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;       -v,&lt;&#x2F;span&gt;&lt;span style=&quot;color: #BD93F9;&quot;&gt; --verbose&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;              Verbosely&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt; list files processed.  Each instance of this option on the command line increases the verbosity level by one.  The maximum verbosity level is 3.&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;              For&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt; a detailed discussion of how various verbosity levels affect tar&lt;&#x2F;span&gt;&lt;span style=&quot;color: #E9F284;&quot;&gt;&amp;#39;&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt;s output, please refer to GNU Tar Manual, subsection 2.5.2 &amp;quot;The &lt;&#x2F;span&gt;&lt;span style=&quot;color: #E9F284;&quot;&gt;&amp;#39;&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt;--verbose&lt;&#x2F;span&gt;&lt;span style=&quot;color: #E9F284;&quot;&gt;&amp;#39;&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt; Option&amp;quot;.&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;A bit verbose but that&#x27;s because the flag breakdown is detailed. Here&#x27;s a shorter one from some popular &lt;code&gt;ls&lt;&#x2F;code&gt; flags:&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #F8F8F2; background-color: #282A36;&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt; mansnip ls&lt;&#x2F;span&gt;&lt;span style=&quot;color: #BD93F9;&quot;&gt; -l -h -a&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;13&lt;&#x2F;span&gt;&lt;span style=&quot;color: #BD93F9;&quot;&gt;     -a, --all&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #FF79C6;&quot;&gt;              do&lt;&#x2F;span&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt; not&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt; ignore entries starting with .&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;45&lt;&#x2F;span&gt;&lt;span style=&quot;color: #BD93F9;&quot;&gt;     -f&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt;     same as&lt;&#x2F;span&gt;&lt;span style=&quot;color: #BD93F9;&quot;&gt; -a -U&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;       -F,&lt;&#x2F;span&gt;&lt;span style=&quot;color: #BD93F9;&quot;&gt; --classify[&lt;&#x2F;span&gt;&lt;span style=&quot;color: #FF79C6;&quot;&gt;=&lt;&#x2F;span&gt;&lt;span style=&quot;color: #BD93F9;&quot;&gt;WHEN]&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;              append&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt; indicator&lt;&#x2F;span&gt;&lt;span&gt; (one&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt; of&lt;&#x2F;span&gt;&lt;span style=&quot;color: #BD93F9;font-style: italic;&quot;&gt; *&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt;&#x2F;&lt;&#x2F;span&gt;&lt;span&gt;=&lt;&#x2F;span&gt;&lt;span style=&quot;color: #FF79C6;&quot;&gt;&amp;gt;&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt;@&lt;&#x2F;span&gt;&lt;span style=&quot;color: #FF79C6;&quot;&gt;|&lt;&#x2F;span&gt;&lt;span&gt;) to entries WHEN&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;67&lt;&#x2F;span&gt;&lt;span style=&quot;color: #BD93F9;&quot;&gt;     -h, --human-readable&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;              with&lt;&#x2F;span&gt;&lt;span style=&quot;color: #BD93F9;&quot;&gt; -l&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt; and&lt;&#x2F;span&gt;&lt;span style=&quot;color: #BD93F9;&quot;&gt; -s,&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt; print sizes like 1K 234M 2G etc.&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;96&lt;&#x2F;span&gt;&lt;span style=&quot;color: #BD93F9;&quot;&gt;     -l&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt;     use a long listing format&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;       -L,&lt;&#x2F;span&gt;&lt;span style=&quot;color: #BD93F9;&quot;&gt; --dereference&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #50FA7B;&quot;&gt;              when&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F1FA8C;&quot;&gt; showing file information for a symbolic link, show information for the file the link references rather than for the link itself&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;</content>
        
    </entry>
</feed>
