Is there a "quick" way to get the mime-type for all files in a directory?

Are general linux questions permitted here that may not be specific to Manjaro only? If so, the question follows; if not, please let me know and I’ll delete it or please do so. Thank you.

I’m trying to sort files in Tcl using glob and lsort (which works alone) and then get the mime type for all this files at once using file --brief --mime-type .... I can do it one file at a time while looping through the list from glob but that is pretty slow; around 10 seconds for a directory of 250 files. It appears quicker in the CLI to use file --brief --mime-type *. I’m trying this in Tcl which took a bit to figure out to pass file a list of files.

I’ve been trying options listed at this man page.

This example works and is fairly quick (better than running file once for each file; but it is still pretty slow when there are a lot of images, audio files, and PDFs (especially those made up of image scans rather than a “real” text PDF).

My question is, Is there any way to speed it up? I’m sure the slow point is the file command because I wrote the same code and used the extension to guess the mime type and it is almost
instantly completed, to the eye anyway, where using file can take 15 seconds.

Could using --exclude with one or more of its options help? I do not need to identify less common files types.

Dolphin appears to handle this rather quickly; so, I must be doing something wrong. I noticed also that the second time I try to load a directory–say one that took 15 or more seconds the first time–it’ll load in about 2 seconds or less thereafter. Is the type cached somewhere?

Thank you.

cd $dir
set sep " "
set l [lsort -dictionary [glob -nocomplain *]]
set m [exec file --brief --mime-type --separator $sep {*}$l]
foreach f $l t $m {
  puts "$f $t"
}

You might be better off using the mimetype command, as you can run the command on a list of filenames. For example, I just ran ls > test.txt on a directory with some pictures I’ve downloaded today to create a list of file names, and then ran the following command:

mimetype -f /run/media/scotty/14TB-Elements/14TB-Rename/test.txt

The output:

❯ mimetype -f /run/media/scotty/14TB-Elements/14TB-Rename/test.txt
"HIP_7933.jpg": image/jpeg
"HIP_7936.jpg": image/jpeg
"HIP_7939.jpg": image/jpeg
"HIP_7942.jpg": image/jpeg
"HIP_7945.jpg": image/jpeg
"HIP_7947.jpg": image/jpeg
"HIP_7951.jpg": image/jpeg
"HIP_7954.jpg": image/jpeg
"HIP_7957.jpg": image/jpeg
"HIP_7959.jpg": image/jpeg
"HIP_7966.jpg": image/jpeg
"HIP_7969.jpg": image/jpeg
"HIP_7972.jpg": image/jpeg
"HIP_7975.jpg": image/jpeg
"HIP_7978.jpg": image/jpeg
"HIP_7981.jpg": image/jpeg
"HIP_7983.jpg": image/jpeg
"HIP_7985.jpg": image/jpeg
"HIP_7988.jpg": image/jpeg
"HIP_7990.jpg": image/jpeg
"HIP_7994.jpg": image/jpeg
"HIP_7999.jpg": image/jpeg
"HIP_8001.jpg": image/jpeg
"HIP_8006.jpg": image/jpeg
"HIP_8009.jpg": image/jpeg
"HIP_8012.jpg": image/jpeg
"HIP_8019.jpg": image/jpeg
"HIP_8022.jpg": image/jpeg
"HIP_8027.jpg": image/jpeg
"HIP_8031.jpg": image/jpeg
"HIP_8033.jpg": image/jpeg
"HIP_8036.jpg": image/jpeg
"HIP_8038.jpg": image/jpeg
"HIP_8041.jpg": image/jpeg
"HIP_8044.jpg": image/jpeg
"HIP_8047.jpg": image/jpeg
"HIP_8050.jpg": image/jpeg
"HIP_8051.jpg": image/jpeg
"HIP_8055.jpg": image/jpeg
"HIP_8056.jpg": image/jpeg
"HIP_8058.jpg": image/jpeg
"HIP_8061.jpg": image/jpeg
"HIP_8064.jpg": image/jpeg
"HIP_8066.jpg": image/jpeg
"HIP_8068.jpg": image/jpeg
"HIP_8075.jpg": image/jpeg
"HIP_8082.jpg": image/jpeg
"HIP_8086.jpg": image/jpeg
"HIP_8089.jpg": image/jpeg
"HIP_8092.jpg": image/jpeg
"HIP_8096.jpg": image/jpeg
"HIP_8099.jpg": image/jpeg
"HIP_8101.jpg": image/jpeg
"HIP_8105.jpg": image/jpeg
"HIP_8107.jpg": image/jpeg
"HIP_8109.jpg": image/jpeg
"HIP_8112.jpg": image/jpeg
"HIP_8115.jpg": image/jpeg
"HIP_8118.jpg": image/jpeg
"HIP_8125.jpg": image/jpeg
"HIP_8131.jpg": image/jpeg
"HIP_8137.jpg": image/jpeg
"HIP_8144.jpg": image/jpeg
"HIP_8152.jpg": image/jpeg
"HIP_8157.jpg": image/jpeg
"HIP_8161.jpg": image/jpeg
"HIP_8166.jpg": image/jpeg
"HIP_8170.jpg": image/jpeg
"HIP_8176.jpg": image/jpeg
"HIP_8180.jpg": image/jpeg
"HIP_8182.jpg": image/jpeg
"HIP_8186.jpg": image/jpeg
"HIP_8188.jpg": image/jpeg
"HIP_8192.jpg": image/jpeg
"HIP_8195.jpg": image/jpeg
"HIP_8199.jpg": image/jpeg
"HIP_8210.jpg": image/jpeg
"HIP_8242.jpg": image/jpeg
"HIP_8300.jpg": image/jpeg
"HIP_8305.jpg": image/jpeg
"HIP_8309.jpg": image/jpeg
"HIP_8313.jpg": image/jpeg
"HIP_8320.jpg": image/jpeg
"HIP_8324.jpg": image/jpeg
"HIP_8329.jpg": image/jpeg
"HIP_8332.jpg": image/jpeg
"HIP_8336.jpg": image/jpeg
"HIP_8340.jpg": image/jpeg
"HIP_8343.jpg": image/jpeg
"HIP_8345.jpg": image/jpeg
"HIP_8348.jpg": image/jpeg
"HIP_8353.jpg": image/jpeg
"HIP_8356.jpg": image/jpeg
"HIP_8359.jpg": image/jpeg
"HIP_8368.jpg": image/jpeg
"HIP_8371.jpg": image/jpeg
"HIP_8380.jpg": image/jpeg
"HIP_8385.jpg": image/jpeg
"HIP_8388.jpg": image/jpeg
"HIP_8397.jpg": image/jpeg
"HIP_8410.jpg": image/jpeg
"HIP_8413.jpg": image/jpeg
"HIP_8419.jpg": image/jpeg
"HIP_8422.jpg": image/jpeg
"HIP_8425.jpg": image/jpeg
"HIP_8428.jpg": image/jpeg
"HIP_8431.jpg": image/jpeg
"HIP_8434.jpg": image/jpeg
"HIP_8437.jpg": image/jpeg
"HIP_8440.jpg": image/jpeg
"HIP_8443.jpg": image/jpeg
"HIP_8446.jpg": image/jpeg
"HIP_8449.jpg": image/jpeg
"HIP_8452.jpg": image/jpeg
"HIP_8456.jpg": image/jpeg
"HIP_8459.jpg": image/jpeg
"HIP_8463.jpg": image/jpeg
"HIP_8467.jpg": image/jpeg
"HIP_8473.jpg": image/jpeg
"HIP_8477.jpg": image/jpeg
"HIP_8480.jpg": image/jpeg
"HIP_8483.jpg": image/jpeg
"HIP_8488.jpg": image/jpeg
"HIP_8491.jpg": image/jpeg
"HIP_8494.jpg": image/jpeg
"HIP_8498.jpg": image/jpeg
"HIP_8502.jpg": image/jpeg
"HIP_8505.jpg": image/jpeg
"HIP_8509.jpg": image/jpeg
"HIP_8513.jpg": image/jpeg
"HIP_8516.jpg": image/jpeg
"HIP_8521.jpg": image/jpeg
"HIP_8524.jpg": image/jpeg
"HIP_8527.jpg": image/jpeg
"HIP_8536.jpg": image/jpeg
"HIP_8539.jpg": image/jpeg
"HIP_8542.jpg": image/jpeg
"HIP_8545.jpg": image/jpeg
"HIP_8549.jpg": image/jpeg
"HIP_8553.jpg": image/jpeg
"HIP_8557.jpg": image/jpeg
"HIP_8559.jpg": image/jpeg
"HIP_8562.jpg": image/jpeg
"HIP_8565.jpg": image/jpeg
"HIP_8569.jpg": image/jpeg
"HIP_8575.jpg": image/jpeg
"HIP_8578.jpg": image/jpeg
"HIP_8581.jpg": image/jpeg
"HIP_8584.jpg": image/jpeg
"HIP_8586.jpg": image/jpeg
"HIP_8588.jpg": image/jpeg
"HIP_8591.jpg": image/jpeg
"HIP_8595.jpg": image/jpeg
"HIP_8600.jpg": image/jpeg
"HIP_8603.jpg": image/jpeg
"HIP_8608.jpg": image/jpeg
"HIP_8612.jpg": image/jpeg
"HIP_8614.jpg": image/jpeg
"HIP_8616.jpg": image/jpeg
"HIP_8619.jpg": image/jpeg
"HIP_8622.jpg": image/jpeg
"HIP_8625.jpg": image/jpeg
"HIP_8627.jpg": image/jpeg
"HIP_8630.jpg": image/jpeg
"HIP_8632.jpg": image/jpeg
"HIP_8636.jpg": image/jpeg
"HIP_8641.jpg": image/jpeg
"HIP_8644.jpg": image/jpeg
"HIP_8651.jpg": image/jpeg
"HIP_8654.jpg": image/jpeg
"HIP_8659.jpg": image/jpeg
"HIP_8667.jpg": image/jpeg
"HIP_8671.jpg": image/jpeg
"HIP_8675.jpg": image/jpeg
"HIP_8679.jpg": image/jpeg
"HIP_8684.jpg": image/jpeg
"HIP_8690.jpg": image/jpeg
"HIP_8693.jpg": image/jpeg
"HIP_8696.jpg": image/jpeg
"HIP_8700.jpg": image/jpeg
"HIP_8703.jpg": image/jpeg
"HIP_8706.jpg": image/jpeg
"HIP_8708.jpg": image/jpeg
"HIP_8711.jpg": image/jpeg
"HIP_8718.jpg": image/jpeg
"HIP_8720.jpg": image/jpeg
"HIP_8725.jpg": image/jpeg
"HIP_8728.jpg": image/jpeg
"HIP_8733.jpg": image/jpeg
"HIP_8739.jpg": image/jpeg
"HIP_8743.jpg": image/jpeg
"HIP_8747.jpg": image/jpeg
"HIP_8750.jpg": image/jpeg
"HIP_8757.jpg": image/jpeg
"HIP_8762.jpg": image/jpeg
"HIP_8770.jpg": image/jpeg
"HIP_8774.jpg": image/jpeg
"HIP_8779.jpg": image/jpeg
"HIP_8783.jpg": image/jpeg
"HIP_8787.jpg": image/jpeg
"HIP_8792.jpg": image/jpeg
"HIP_8799.jpg": image/jpeg
"HIP_8810.jpg": image/jpeg
"HIP_8820.jpg": image/jpeg
"HIP_8829.jpg": image/jpeg
"HIP_8834.jpg": image/jpeg
"HIP_8839.jpg": image/jpeg
"HIP_8851.jpg": image/jpeg
"HIP_8898.jpg": image/jpeg
"HIP_8901.jpg": image/jpeg
"HIP_8905.jpg": image/jpeg
"HIP_8909.jpg": image/jpeg
"HIP_8913.jpg": image/jpeg
"HIP_8916.jpg": image/jpeg
"HIP_8921.jpg": image/jpeg
"HIP_8924.jpg": image/jpeg
"HIP_8927.jpg": image/jpeg
"HIP_8930.jpg": image/jpeg
"HIP_8935.jpg": image/jpeg
"HIP_8939.jpg": image/jpeg
"HIP_8942.jpg": image/jpeg
"HIP_8946.jpg": image/jpeg
"HIP_8950.jpg": image/jpeg
"HIP_8954.jpg": image/jpeg
"HIP_8960.jpg": image/jpeg
"HIP_8962.jpg": image/jpeg
"HIP_8965.jpg": image/jpeg
"HIP_8969.jpg": image/jpeg
"HIP_8973.jpg": image/jpeg
"HIP_8983.jpg": image/jpeg
"HIP_8989.jpg": image/jpeg
"HIP_8998.jpg": image/jpeg
"HIP_9004.jpg": image/jpeg
"HIP_9009.jpg": image/jpeg
"HIP_9012.jpg": image/jpeg
"HIP_9015.jpg": image/jpeg
"HIP_9018.jpg": image/jpeg
"HIP_9021.jpg": image/jpeg
"HIP_9024.jpg": image/jpeg
"HIP_9027.jpg": image/jpeg
"HIP_9030.jpg": image/jpeg
"HIP_9033.jpg": image/jpeg
"HIP_9035.jpg": image/jpeg
"HIP_9038.jpg": image/jpeg
"HIP_9043.jpg": image/jpeg
"HIP_9046.jpg": image/jpeg
"HIP_9049.jpg": image/jpeg
"HIP_9052.jpg": image/jpeg
"HIP_9055.jpg": image/jpeg
"HIP_9058.jpg": image/jpeg
"HIP_9061.jpg": image/jpeg
"HIP_9065.jpg": image/jpeg
"HIP_9069.jpg": image/jpeg
"HIP_9072.jpg": image/jpeg
"HIP_9075.jpg": image/jpeg
"HIP_9078.jpg": image/jpeg
"HIP_9081.jpg": image/jpeg
"HIP_9085.jpg": image/jpeg
"HIP_9088.jpg": image/jpeg
"HIP_9092.jpg": image/jpeg
"HIP_9095.jpg": image/jpeg
"HIP_9099.jpg": image/jpeg
"HIP_9102.jpg": image/jpeg
"HIP_9106.jpg": image/jpeg
"HIP_9109.jpg": image/jpeg
"HIP_9114.jpg": image/jpeg
"HIP_9118.jpg": image/jpeg
"HIP_9124.jpg": image/jpeg
"HIP_9127.jpg": image/jpeg
"HIP_9135.jpg": image/jpeg
"HIP_9138.jpg": image/jpeg
"HIP_9141.jpg": image/jpeg
"HIP_9146.jpg": image/jpeg
"HIP_9150.jpg": image/jpeg
"HIP_9151.jpg": image/jpeg
"HIP_9154.jpg": image/jpeg
"HIP_9157.jpg": image/jpeg
"HIP_9166.jpg": image/jpeg
"HIP_9169.jpg": image/jpeg
"HIP_9191.jpg": image/jpeg
"HIP_9194.jpg": image/jpeg
"HIP_9215.jpg": image/jpeg
"HIP_9222.jpg": image/jpeg
"HIP_9228.jpg": image/jpeg
"HIP_9232.jpg": image/jpeg
"HIP_9234.jpg": image/jpeg
"HIP_9238.jpg": image/jpeg
"HIP_9241.jpg": image/jpeg
"HIP_9246.jpg": image/jpeg
"HIP_9248.jpg": image/jpeg
"HIP_9252.jpg": image/jpeg
"HIP_9256.jpg": image/jpeg
"HIP_9261.jpg": image/jpeg
"HIP_9264.jpg": image/jpeg
"HIP_9266.jpg": image/jpeg
"HIP_9271.jpg": image/jpeg
"HIP_9280.jpg": image/jpeg
"HIP_9281.jpg": image/jpeg
"HIP_9284.jpg": image/jpeg
"HIP_9297.jpg": image/jpeg
"HIP_9303.jpg": image/jpeg
"HIP_9309.jpg": image/jpeg
"HIP_9312.jpg": image/jpeg
"HIP_9314.jpg": image/jpeg
"HIP_9319.jpg": image/jpeg
"HIP_9321.jpg": image/jpeg
"HIP_9325.jpg": image/jpeg
"HIP_9329.jpg": image/jpeg
"HIP_9334.jpg": image/jpeg
"HIP_9336.jpg": image/jpeg
"HIP_9342.jpg": image/jpeg
"HIP_9347.jpg": image/jpeg
"HIP_9351.jpg": image/jpeg
"HIP_9353.jpg": image/jpeg
"HIP_9360.jpg": image/jpeg
"HIP_9363.jpg": image/jpeg
"HIP_9366.jpg": image/jpeg
"HIP_9370.jpg": image/jpeg
"HIP_9378.jpg": image/jpeg
"HIP_9383.jpg": image/jpeg
"HIP_9388.jpg": image/jpeg
"HIP_9395.jpg": image/jpeg
"HIP_9398.jpg": image/jpeg
"HIP_9403.jpg": image/jpeg
"HIP_9410.jpg": image/jpeg
"HIP_9415.jpg": image/jpeg
"HIP_9419.jpg": image/jpeg
"HIP_9422.jpg": image/jpeg
"HIP_9428.jpg": image/jpeg
"HIP_9431.jpg": image/jpeg
"HIP_9436.jpg": image/jpeg
"HIP_9438.jpg": image/jpeg
"HIP_9445.jpg": image/jpeg
"HIP_9451.jpg": image/jpeg
"HIP_9453.jpg": image/jpeg
"HIP_9472.jpg": image/jpeg
"HIP_9485.jpg": image/jpeg
"HIP_9488.jpg": image/jpeg
"HIP_9495.jpg": image/jpeg
"HIP_9499.jpg": image/jpeg
"HIP_9503.jpg": image/jpeg
"HIP_9514.jpg": image/jpeg
"HIP_9518.jpg": image/jpeg
"HIP_9522.jpg": image/jpeg
"HIP_9523.jpg": image/jpeg
"HIP_9527.jpg": image/jpeg
"HIP_9530.jpg": image/jpeg
"HIP_9533.jpg": image/jpeg
"HIP_9535.jpg": image/jpeg
"HIP_9539.jpg": image/jpeg
"HIP_9543.jpg": image/jpeg
"HIP_9554.jpg": image/jpeg
"HIP_9558.jpg": image/jpeg
"HIP_9589.jpg": image/jpeg
"HIP_9592.jpg": image/jpeg
"HIP_9595.jpg": image/jpeg
"HIP_9598.jpg": image/jpeg
"HIP_9606.jpg": image/jpeg
"HIP_9607.jpg": image/jpeg
"HIP_9611.jpg": image/jpeg
"HIP_9650.jpg": image/jpeg
"HIP_9654.jpg": image/jpeg
"HIP_9657.jpg": image/jpeg
"HIP_9663.jpg": image/jpeg
"HIP_9668.jpg": image/jpeg
"HIP_9672.jpg": image/jpeg
"HIP_9676.jpg": image/jpeg
"HIP_9679.jpg": image/jpeg
"HIP_9683.jpg": image/jpeg
"HIP_9686.jpg": image/jpeg
"HIP_9690.jpg": image/jpeg
"HIP_9696.jpg": image/jpeg
"HIP_9697.jpg": image/jpeg
"HIP_9701.jpg": image/jpeg
"Maddie-2026":  inode/directory
"test.txt":     text/plain

Edit 2026-07-07T07:45:00Z: You don’t even need to create a list of file names, as you can run the command on a directory, for example:

❯ mimetype /run/media/scotty/14TB-Elements/14TB-Rename/*
"/run/media/scotty/14TB-Elements/14TB-Rename/HIP_7933.jpg":     image/jpeg
"/run/media/scotty/14TB-Elements/14TB-Rename/HIP_7936.jpg":     image/jpeg
"/run/media/scotty/14TB-Elements/14TB-Rename/HIP_7939.jpg":     image/jpeg
"/run/media/scotty/14TB-Elements/14TB-Rename/HIP_7942.jpg":     image/jpeg
"/run/media/scotty/14TB-Elements/14TB-Rename/HIP_7945.jpg":     image/jpeg
"/run/media/scotty/14TB-Elements/14TB-Rename/HIP_7947.jpg":     image/jpeg
"/run/media/scotty/14TB-Elements/14TB-Rename/HIP_7951.jpg":     image/jpeg
"/run/media/scotty/14TB-Elements/14TB-Rename/HIP_7954.jpg":     image/jpeg
"/run/media/scotty/14TB-Elements/14TB-Rename/HIP_7957.jpg":     image/jpeg
"/run/media/scotty/14TB-Elements/14TB-Rename/HIP_7959.jpg":     image/jpeg
"/run/media/scotty/14TB-Elements/14TB-Rename/HIP_7966.jpg":     image/jpeg
"/run/media/scotty/14TB-Elements/14TB-Rename/HIP_7969.jpg":     image/jpeg
"/run/media/scotty/14TB-Elements/14TB-Rename/HIP_7972.jpg":     image/jpeg
"/run/media/scotty/14TB-Elements/14TB-Rename/HIP_7975.jpg":     image/jpeg
...
mimetype --help
❯ mimetype --help
Usage:
    mimetype [options] [-] files

Options:
    -a, --all
        Show output of all rules that match the file.

        TODO: this method now just returns one match for each method (globs,
        magic, etc.).

    -b, --brief
        Do not prepend filenames to output lines (brief mode).

    --database=mimedir:mimedir:...
        Force the program to look in these directories for the shared
        mime-info database. The directories specified by the basedir
        specification are ignored.

    -d, --describe
        Print file descriptions instead of mime types, this is the default
        when using "--file-compat".

    -D, --debug
        Print debug information about how the mimetype was determined.

    -f namefile, --namefile=namefile
        Read the names of the files to be examined from the file 'namefile'
        (one per line) before the argument list.

    --file-compat
        Make mimetype behave a little more file(1) compatible. This is
        turned on automatically when you call mimetype by a link called
        'file'.

        A single '-' won't be considered a separator between options and
        filenames anymore, but becomes identical to "--stdin". ( You can
        still use '--' as separator, but that is not backward compatible
        with the original file command. ) Also the default becomes to print
        descriptions instead of mimetypes.

    -F string, --separator=string
        Use string as custom separator between the file name and its
        mimetype or description, defaults to ':' .

    -h, --help
    -u, --usage
        Print a help message and exits.

    -i, --mimetype
        Use mime types, opposite to "--describe", this is the default when
        _not_ using "--file-compat".

    -L, --dereference
        Follow symbolic links.

    -l code, --language=code
        The language attribute specifies a two letter language code, this
        makes descriptions being outputted in the specified language.

    -M, --magic-only
        Do not check for extensions, globs or inode type, only look at the
        content of the file. This is particularly useful if for some reason
        you don't trust the name or the extension a file has.

    -N, --noalign
        Do not align output fields.

    --output-format
        If you want an alternative output format, you can specify a format
        string containing the following escapes:

            %f for the filename
            %d description
            %m mime type

        Alignment is not available when using this, you need to post-process
        the output to do that.

    --stdin
        Determine type of content from STDIN, less powerful then normal file
        checking because it only uses magic typing. This will happen also if
        the STDIN filehandle is a pipe.

        To use this option IO::Scalar needs to be installed.

    -v, --version
        Print the version of the program and exit.
3 Likes

Thank you. I tried this yesterday but while still calling it for each file separately while looping through the glob results; and it appeared a little slower that file. So, I didn’t even try it this time.

However, after your post, I just tried it while passing the list of files from glob and it appears much quicker. So far, no directory has taken more than a second or two to load. That’s from the time the button is clicked in the UI until the data appears in the table.

If it remains at those times, this will work great and must far more reliable than my guessing based on the extension.

Thank you.

2 Likes

I am not proficient in bash nor tcl - but since you ask - you could try to time the commands - install the time package

The script takes a path or it starts where you saved it.
It will traverse the folder structure and sort the files by mime type and the relative path to the script

Then run the script time list-mime-types.py

import os
import sys
import mimetypes
from collections import defaultdict

def list_files_by_mime_type(folder_path: str = ".") -> None:
    if not os.path.isdir(folder_path):
        print(f"Error: '{folder_path}' is not a valid directory.", file=sys.stderr)
        sys.exit(1)

    mime_groups: dict[str, list[str]] = defaultdict(list)

    for root, _, files in os.walk(folder_path):
        for filename in files:
            filepath = os.path.join(root, filename)
            mime_type, _ = mimetypes.guess_type(filepath)
            if mime_type is None:
                mime_type = "application/octet-stream"
            rel_path = os.path.relpath(filepath, folder_path)
            mime_groups[mime_type].append(rel_path)

    sorted_mime_types = sorted(mime_groups.keys())

    for mime_type in sorted_mime_types:
        files = mime_groups[mime_type]
        print(f"\n{mime_type}:")
        print("-" * len(mime_type))
        for f in sorted(files):
            print(f"  {f}")

    total_files = sum(len(files) for files in mime_groups.values())
    print(f"\numFiles: {total_files}")
    print(f"Unique MIME types: {len(mime_groups)}")


if __name__ == "__main__":
    folder = sys.argv[1] if len(sys.argv) > 1 else "."
    list_files_by_mime_type(folder)

The script is pretty fast

09:57:38 ○ [fh@tiger] (py: .venv) .../2026/sort-folder-by-mime-type
 $ time python main.py /home/fh/Documents

application/epub+zip:
--------------------
  Calibre Library/Entity_Framework_Core_in_Action_Second_.epub
  Calibre Library/John Schember/Quick Start Guide (1)/Quick Start Guide - John Schember.epub
  Calibre Library/Jon P Smith/Entity Framework Core in Action, Second Edition (2)/Entity Framework Core in Action, Second Ed - Jon P Smith.epub
  Calibre Library/VAGTTARNET/Ny Verden-Oversaettelsen (nwt-D) (6)/Ny Verden-Oversaettelsen (nwt-D) - VAGTTARNET.epub
  Calibre Library/nwt_D.epub

application/json:
----------------
  AL/GeneratedProject1/.vscode/launch.json
  AL/GeneratedProject1/app.json
  Calibre Library/metadata_db_prefs_backup.json
  Zettlr Tutorial/references.json
  kwin-scripts/KZones.json

application/octet-stream:
------------------------
  Calibre Library/.calnotes/notes.db
  Calibre Library/metadata.db
  Install Win11 using libvirt
  brother/01.0108.9999.lbx
  brother/01.0136.9999.lbx
  brother/01.0635.6100.lbx
  brother/linux-brprinter-installer-2.2.3-1.gz
  gimp/duck-866x866.xcf
  gimp/hukommelse.xcf
  gimp/hundewadt-dk-header.xcf
  gimp/illyria-default-main-light-corner-logo-orange.xcf
  gimp/image_proxy_white_red_border.xcf
  gimp/inno-demo.xcf
  gimp/ko-fi-banner.xcf
  gimp/ko-fi-cover.xcf
  gimp/linux-aarhus-site-banner-1200x225.xcf
  gimp/linux-aarhus.xcf
  gimp/linux-laptops-logo.xcf
  gimp/manjaro-archive-banner.xcf
  gimp/manjaro-archive.xcf
  gimp/manjaro-text-bright-blue.xcf
  gimp/openbox-default-blue.xcf
  gimp/openbox-illyria2.xcf
  gimp/openbox-logo-res-300.xcf
  gimp/openbox-logo-res-600-bright-blue.xcf
  gimp/openbox-logo-res-600-bright-maia.xcf
  gimp/openbox-logo-res-600-bright-yellow.xcf
  gimp/openbox-logo-res-600-orange.xcf
  gimp/openbox-logo-res-600.xcf
  gimp/openbox-logo.xcf
  gimp/openbox.xcf
  gimp/pacbang-cover.xcf
  gimp/pacbang-logo.xcf
  gimp/pacbang-logo.xcf.xcf
  gimp/smoke_hood_silhouette_128612_1920x1080.xcf
  gimp/splash.new.xcf
  gimp/ubuntu-aarhus-group-banner.xcf
  kwin-scripts/floating-tiles-v7.0.kwinscript
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-getTrackingCode
  noir-city-by-eddie-mendoza-cropped-4383x2996.xcf
  ved-lunden-11/foreløbig vurdering

application/oebps-package+xml:
-----------------------------
  Calibre Library/John Schember/Quick Start Guide (1)/metadata.opf
  Calibre Library/Jon P Smith/Entity Framework Core in Action, Second Edition (2)/metadata.opf
  Calibre Library/VAGTTARNET/Ny Verden-Oversaettelsen (nwt-D) (6)/metadata.opf
  Calibre Library/Vladimir Pecanac;Marinko Spasojevic/Mastering ASP.NET Core Security (4)/metadata.opf
  Calibre Library/Vladimir Pecanac;Marinko Spasojevic/The HTTP Reference Tables (5)/metadata.opf
  Calibre Library/Vladimir Pecanac;Marinko Spasojevic/Ultimate ASP.NET Core Web API (3)/metadata.opf

application/pdf:
---------------
  Calibre Library/Vladimir Pecanac;Marinko Spasojevic/Mastering ASP.NET Core Security (4)/Mastering ASP.NET Core Security - Vladimir Pecanac;Marinko Spasojevic.pdf
  Calibre Library/Vladimir Pecanac;Marinko Spasojevic/The HTTP Reference Tables (5)/The HTTP Reference Tables - Vladimir Pecanac;Marinko Spasojevic.pdf
  Calibre Library/Vladimir Pecanac;Marinko Spasojevic/Ultimate ASP.NET Core Web API (3)/Ultimate ASP.NET Core Web API - Vladimir Pecanac;Marinko Spasojevic.pdf
  Calibre Library/fjernvarme-servitut.pdf
  PDFs/Automation-at-the-edge-ebook-Red-Hat-Developer.pdf
  PDFs/Choose-an-automation-tool-ebook-Red-Hat-Developer.pdf
  PDFs/Enhance-security-with-automation-ebook-Red-Hat-Developer.pdf
  PDFs/GitOps-Cookbook-Red-Hat-Developer-ebook.pdf
  PDFs/Podman-in-Action-ebook-FINAL-Red-Hat-Developer.pdf
  PDFs/The-Modern-Developer-ebook-Red-Hat-Developer.pdf
  PDFs/The-cost-of-human-error-automation-ebook-Red-Hat-Developer.pdf
  PDFs/cl-oreilly-kubernetes-operators-ebook-f21452-202001-en_2.pdf
  PDFs/osdc_cheatsheet-networking-2021.4.8.pdf
  Zettlr Tutorial/LaTeX Guide.pdf
  frede-h-nødkontakt.pdf
  radeon-ai-pro-rocm-pytorch-guide.pdf
  regnskab/74aeae16-79ef-4cbf-8e99-236a3f206d5b.pdf
  regnskab/Faktura 410223-2.pdf
  regnskab/Frede 26.02.2026 - 26.02.2026.pdf
  server-2019-essentials-2610358.pdf
  ved-lunden-11/2025-08-13 08-40.pdf
  ved-lunden-11/BR18 ansøgningsskema.pdf
  ved-lunden-11/D2025-277320 LOVLIGGØRENDE BYGGETILLADELSE, Ved Lunden 11, 8230 Åbyhøj - Lovliggørelse af sekundært byggeri ddb383b5-c3b1-4fdd-a81e-08707a83aaa9.pdf
  ved-lunden-11/D2025-277343 Erklæring vedr. det færdige byggeri 8431b8b0-f3da-48c1-b5aa-77d28d97688b.pdf
  ved-lunden-11/bbr-rettelse-2023.pdf
  ved-lunden-11/brev-ejendomsvurdering-24-05-31.pdf
  ved-lunden-11/ved-lunden-11-lovliggørelse-af-carport-og-udhus.pdf

application/sql:
---------------
  HeidiSQL/crmdb.sql

application/vnd.debian.binary-package:
-------------------------------------
  brother/hll8260cdwcupswrapper-1.5.0-0.i386.deb
  brother/hll8260cdwlpr-1.5.0-0.i386.deb

application/vnd.oasis.opendocument.spreadsheet:
----------------------------------------------
  regnskab/bil-afgift-beregning.ods
  regnskab/budget-test.ods
  ved-lunden-11/ved-lunden-11-sekundære-bygninger.ods

application/vnd.oasis.opendocument.spreadsheet-template:
-------------------------------------------------------
  regnskab/budget-skabelon.ots

application/vnd.oasis.opendocument.text:
---------------------------------------
  doc/blinken-ligths.odt
  doc/leipzig-gothic-letters.odt
  regnskab/gavebrev.odt
  ved-lunden-11/oversigt-13ao-aby.odt
  ved-lunden-11/ægtepagt-testamente-kladde.odt

application/vnd.openxmlformats-officedocument.wordprocessingml.document:
-----------------------------------------------------------------------
  Nødkontakt.docx
  doc/guitar-fretboard.docx

application/x-sh:
----------------
  scripted-installer.sh

application/x-tar:
-----------------
  manuals/support-07AB-1681730049562.tgz

application/xhtml+xml:
---------------------
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/a.xhtml

application/zip:
---------------
  Calibre Library/EfCoreinAction-SecondEdition-master.zip
  forum-archive/user_archive-linux-aarhus-220307-072759-36.zip
  forum-archive/user_archive-linux-aarhus-230909-142928-76.zip
  forum-archive/user_archive-linux-aarhus-240526-080545-107.zip
  forum-archive/user_archive-linux-aarhus-241231-051855-127.zip
  manuals/N141WU_SM.zip
  ved-lunden-11/Attachments-Lovliggørende byggetilladelse - Lovliggørelse af sekundært byggeri på adressen Ved Lunden 11, 8230 Åbyhøj - sagsnr. S2025-10822.zip

image/gif:
---------
  bits-and-bytes-converter/bits-and-bytes-converter_files/FlaggeDe.gif
  bits-and-bytes-converter/bits-and-bytes-converter_files/FlaggeUK-SW.gif
  bits-and-bytes-converter/bits-and-bytes-converter_files/Pfeil03Links.gif
  bits-and-bytes-converter/bits-and-bytes-converter_files/Pfeil03Rechts.gif
  bits-and-bytes-converter/bits-and-bytes-converter_files/Pfeil03Top.gif
  bits-and-bytes-converter/bits-and-bytes-converter_files/Tontechnik-Rechner.gif
  bits-and-bytes-converter/bits-and-bytes-converter_files/background57.gif
  bits-and-bytes-converter/data-transfer-calculator_files/FlaggeDe.gif
  bits-and-bytes-converter/data-transfer-calculator_files/FlaggeUK-SW.gif
  bits-and-bytes-converter/data-transfer-calculator_files/Pfeil03Links.gif
  bits-and-bytes-converter/data-transfer-calculator_files/Pfeil03Rechts.gif
  bits-and-bytes-converter/data-transfer-calculator_files/Pfeil03Top.gif
  bits-and-bytes-converter/data-transfer-calculator_files/Tontechnik-Rechner.gif
  bits-and-bytes-converter/data-transfer-calculator_files/background57.gif

image/jpeg:
----------
  Calibre Library/John Schember/Quick Start Guide (1)/cover.jpg
  Calibre Library/Jon P Smith/Entity Framework Core in Action, Second Edition (2)/cover.jpg
  Calibre Library/VAGTTARNET/Ny Verden-Oversaettelsen (nwt-D) (6)/cover.jpg
  Calibre Library/Vladimir Pecanac;Marinko Spasojevic/Mastering ASP.NET Core Security (4)/cover.jpg
  Calibre Library/Vladimir Pecanac;Marinko Spasojevic/The HTTP Reference Tables (5)/cover.jpg
  Calibre Library/Vladimir Pecanac;Marinko Spasojevic/Ultimate ASP.NET Core Web API (3)/cover.jpg

image/png:
---------
  Zettlr Tutorial/zettlr.png
  forum-archive/hurt-feelings-complaint-form.png
  gimp/duck-512x512.png
  gimp/g83.png
  gimp/hukommelse.png
  gimp/hundewadt-dk-header.png
  gimp/inno-demo.png
  gimp/innotec-servicepack-download.png
  gimp/kender-du-det.png
  gimp/ko-fi-banner.png
  gimp/ko-fi-cover.png
  gimp/linux-laptops-logo.png
  gimp/locale-settings.png
  gimp/makepkg-aur-pamac-cli.png
  gimp/manjaro-archive-banner.png
  gimp/manjaro-archive.png
  gimp/openbox-matcha.png
  gimp/openbox-screenshot-menu.png
  gimp/pacbang-cover.png
  gimp/pacbang-logo.png
  gimp/pacbang.png
  gimp/shadow.png
  gimp/wd-nvme-256g-wds256g1x0c.png
  gimp/weird-gtk-appearance.png
  hurt-feeelings-report.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/m_top.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mb_articles_g.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mb_blog_g.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mb_contact_g.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mb_gnu_g.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mb_index.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mb_links.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mb_photoblog.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mb_programming.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mbl_cartoons.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mbl_linux_documents.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mbl_linux_links_g.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/ml_top.png

image/svg+xml:
-------------
  gimp/pacbang-logo.svg

image/webp:
----------
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/152885d9-2b35-4c7a-a6be-1f90006aac16-1024x374.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/152885d9-2b35-4c7a-a6be-1f90006aac16-1536x561.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/152885d9-2b35-4c7a-a6be-1f90006aac16-300x110.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/152885d9-2b35-4c7a-a6be-1f90006aac16-768x280.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/152885d9-2b35-4c7a-a6be-1f90006aac16.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/1a274c47-cdf4-4d35-adf0-fde891215fdd-1024x321.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/1a274c47-cdf4-4d35-adf0-fde891215fdd-1536x481.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/1a274c47-cdf4-4d35-adf0-fde891215fdd-300x94.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/1a274c47-cdf4-4d35-adf0-fde891215fdd-768x241.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/1a274c47-cdf4-4d35-adf0-fde891215fdd.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/2b5f584c-0d92-4481-8340-fd7c32f267ff-1180x1536.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/2b5f584c-0d92-4481-8340-fd7c32f267ff-230x300.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/2b5f584c-0d92-4481-8340-fd7c32f267ff-768x1000.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/2b5f584c-0d92-4481-8340-fd7c32f267ff-786x1024.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/2b5f584c-0d92-4481-8340-fd7c32f267ff.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/44aafa9a-6af4-4de5-b0dd-017440b3d6f5-1024x582.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/44aafa9a-6af4-4de5-b0dd-017440b3d6f5-300x171.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/44aafa9a-6af4-4de5-b0dd-017440b3d6f5-768x437.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/44aafa9a-6af4-4de5-b0dd-017440b3d6f5.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/46cdec5e-18cc-4da1-af40-3a727f267712-1178x1536.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/46cdec5e-18cc-4da1-af40-3a727f267712-230x300.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/46cdec5e-18cc-4da1-af40-3a727f267712-768x1001.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/46cdec5e-18cc-4da1-af40-3a727f267712-786x1024.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/46cdec5e-18cc-4da1-af40-3a727f267712.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/65940ab4-122d-40f1-ab44-15dab582bf40-1024x363.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/65940ab4-122d-40f1-ab44-15dab582bf40-1536x545.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/65940ab4-122d-40f1-ab44-15dab582bf40-300x106.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/65940ab4-122d-40f1-ab44-15dab582bf40-768x273.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/65940ab4-122d-40f1-ab44-15dab582bf40.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/83040a10-5f0f-45bd-9a97-bd9e53d26bdc-1024x640.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/83040a10-5f0f-45bd-9a97-bd9e53d26bdc-300x188.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/83040a10-5f0f-45bd-9a97-bd9e53d26bdc-768x480.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/83040a10-5f0f-45bd-9a97-bd9e53d26bdc.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/9e072d84-dbd9-4655-ba36-ee82e52eb86c-1024x225.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/9e072d84-dbd9-4655-ba36-ee82e52eb86c-1536x338.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/9e072d84-dbd9-4655-ba36-ee82e52eb86c-300x66.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/9e072d84-dbd9-4655-ba36-ee82e52eb86c-768x169.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/9e072d84-dbd9-4655-ba36-ee82e52eb86c.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/9f1d0d73-fe8f-4281-bb42-1c69b76ed075-1024x862.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/9f1d0d73-fe8f-4281-bb42-1c69b76ed075-300x252.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/9f1d0d73-fe8f-4281-bb42-1c69b76ed075-768x646.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/9f1d0d73-fe8f-4281-bb42-1c69b76ed075.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/Certified_partner_logo-1024x324.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/Certified_partner_logo-300x95.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/Certified_partner_logo-768x243.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/Certified_partner_logo.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/HavenZone-3-black-low-res-web-300x108.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/HavenZone-3-black-low-res-web-768x276.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/HavenZone-3-black-low-res-web.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/a8f878484445130abe5c249e89c85901.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/badge-1-1024x778.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/badge-1-300x228.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/badge-1-768x583.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/badge-1.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/c9034271-c57e-4d53-b936-30dd5b29947a-1081x1536.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/c9034271-c57e-4d53-b936-30dd5b29947a-211x300.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/c9034271-c57e-4d53-b936-30dd5b29947a-721x1024.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/c9034271-c57e-4d53-b936-30dd5b29947a-768x1091.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/c9034271-c57e-4d53-b936-30dd5b29947a.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/d347a49d-042f-49a4-85d9-7cdb8b33fb4f-1024x311.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/d347a49d-042f-49a4-85d9-7cdb8b33fb4f-1536x466.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/d347a49d-042f-49a4-85d9-7cdb8b33fb4f-300x91.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/d347a49d-042f-49a4-85d9-7cdb8b33fb4f-768x233.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/d347a49d-042f-49a4-85d9-7cdb8b33fb4f.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/ubiquiti-reseller-1024x445.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/ubiquiti-reseller-1536x667.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/ubiquiti-reseller-2048x889.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/ubiquiti-reseller-300x130.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/ubiquiti-reseller-768x334.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/ubiquiti-reseller.webp

text/css:
--------
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-noimport-08b3644b1eee19ef4656f99406ca8a84-styleshe.css
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-noimport-29e8603bfc59e90687802bd3f7b9498c-styleshe.css
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-noimport-61082610bc4c51380c14b756c2a67ae2-styleshe.css
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-noimport-cea370cb13a8c51cf0bc05e45b431f6d-styleshe.css
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/ss.css

text/csv:
--------
  regnskab/Posteringer.csv
  text/Anni.csv
  text/Erhvervskonto.csv
  text/Fælles konto.csv
  text/Untitled 1.csv
  text/se-users.csv

text/html:
---------
  bits-and-bytes-converter/bits-and-bytes-converter.html
  bits-and-bytes-converter/data-transfer-calculator.html
  forum-archive/index.html
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone.html
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/a.html
  secure-copy-syntax/Example syntax for Secure Copy (scp).html

text/javascript:
---------------
  bits-and-bytes-converter/bits-and-bytes-converter_files/ga.js
  bits-and-bytes-converter/data-transfer-calculator_files/ga.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/external_forms.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/gtm.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-1c61ea851696d77915a6d68982090c0d.public-scripts.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-23d33c1839c4e249055eb7e2a66aff11.9ca3359fb2a7fc71e5.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-3a0508bb2ab18be40795a6a8d2b9c7ca.masonry.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-515256a13fd66d71a2887d1dc1ecc93c.designer.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-515256a13fd66d71a2887d1dc1ecc93c.infusion.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-515256a13fd66d71a2887d1dc1ecc93c.ticker.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-5352410e4d7e1ae7f0044bb295d19548.esf-free-popup.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-5352410e4d7e1ae7f0044bb295d19548.public.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-5b75144ff99e96e2917a4d2f2017e967.coblocks-animation.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-5b75144ff99e96e2917a4d2f2017e967.coblocks-lightbox.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-62ea2cc6dbce5d761ac5d058e7f599e9.jquery.fitvids.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-68b3cde97caa4bdbde203af1041adcfb.esf-insta-public.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-6a4d797cb2c4c163caae73cbfa55efa1.imagesloaded.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-6a4d797cb2c4c163caae73cbfa55efa1.imagesloaded.pkgd..js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-6a4d797cb2c4c163caae73cbfa55efa1.swap.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-a03052e7c818de8fc9953862939c5874.theme.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-a7a06d7d6baa21c9a129aecfbec647db.jquery.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-ae2d0389fc49645f4f5a645b442c22c3.jquery.ba-throttle.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-ae2d0389fc49645f4f5a645b442c22c3.jquery.magnificpop.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-ae2d0389fc49645f4f5a645b442c22c3.jquery.waypoints.m.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-cb18c360fd268e2139b3af380d465c2a.custom.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-cb18c360fd268e2139b3af380d465c2a.idle-timer.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-cb18c360fd268e2139b3af380d465c2a.jquery.uniform.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-d6171631e2919215b5e490dc93564c56.jquery-migrate.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-tcc_l.combined.1.0.6.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-tccl-tti.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-tp.widget.bootstrap.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/poll.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/poll_002.js
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/ga.js

text/markdown:
-------------
  De ti plager.md
  NotesOnEncryptSetup.md
  Zettlr Tutorial/LaTeX Guide.md
  Zettlr Tutorial/citing.md
  Zettlr Tutorial/helpful-links.md
  Zettlr Tutorial/split-view-intro.md
  Zettlr Tutorial/welcome.md
  Zettlr Tutorial/zettelkasten.md
  forum-archive/manjaro-finance.md
  tails-how-to-find-latest-iso.md

text/plain:
----------
  macarons.txt
  manjaro-financial-2024-12-26.txt
  nødtaske-indhold-forslag.txt
  portugesisk-bagers-øje.txt
  scripts/internal-ip-addresses.txt
  te-blanding.txt
  text/91-Hint.txt
  text/Det Danske Sprog.txt
  text/Mange i dag mener at man kun er virkeligt fri hvis.txt
  text/Re: Wupti.com - Re: 52331740 - 842086.txt
  text/Wupti.com - Re: 52331740 - 842086.txt
  text/aiowps_2019-10-10_05-55.txt
  text/aiowps_2019-10-10_06-19.txt
  text/backup_codes_manjaro_forum.txt
  text/blackduck-mailbox-org.txt
  text/countries-by-area.txt
  text/countries-raw.txt
  text/dybstegt-kylling-ala-kentucky.txt
  text/ghostdocpro-5-license.txt
  text/ingefær-sirups-kager.txt
  text/linksys-adgang.txt
  text/linux-install-steps.txt
  text/manjaro-forum-backup-codes.txt
  text/mesocolumn-faq.txt
  text/modulus10.txt
  text/roundcubeskins-licence-number.txt
  text/stats-exercise.txt
  text/ten-more-countries.txt
  text/tilgin-hw-info.txt
  text/ubuntu-aarhus.txt
  text/vmware-workstation-key.txt
  text/wordpress-backup-codes.txt/fhundewadt-backup-codes.txt
  text/wp-config-backup.txt

numFiles: 331
Unique MIME types: 26

real    0m0,025s
user    0m0,021s
sys     0m0,004s
3 Likes

@linux-aarhus
Thank you. That is pretty quick. Although I’ve used Tcl’s command to test performance that runs as many times as possible for the duration you pass it, I don’t know if that would be accurate since the first time seemed very slow compared to subsequent runs.

But that was for the version file --brief --mime-type ...; and the mimetype --brief ... is a fraction of that time. (I know very little but could not find anything in the documentation to explain why. Strange, too, now the mime types are much closer to what Dolphin displays.)

If I try the Tcl timerate , the results are as below. Not sure what it means but it is not as good as your 0.025 seconds.

cd $dir
proc GetTable {} {
  set sep " "
  set l [lsort -dictionary [glob -nocomplain *]]
  # set m [exec file --brief --mime-type --separator $sep {*}$l]
  set m [exec mimetype --brief --separator $sep {*}$l]
  foreach f $l t $m {
    puts "$f $t"
  }
}
puts [ timerate {GetTable} 30000 ]
# For 219 mp3 files. Two runs.
# A little under 0.11 seconds; 280 runs in 30 seconds.
107484.2 µs/# 280 # 9.304 #/sec 30095.581 net-ms
106081.8 µs/# 283 # 9.427 #/sec 30021.143 net-ms
# For 479 jpeg image scans. Two runs.
# Over 1.2 seconds each run, compelting 25 in 30-31 seconds.
1224116 µs/# 25 # 0.817 #/sec 30602.918 net-ms
1247326 µs/# 25 # 0.802 #/sec 31183.151 net-ms

# For 254 files,mostyl different types of text files like HTML, CSS, JS, SQL, 
# a couple images, and a few multi-GiB SQLite databases.
# About 0.16-0.17 seconds.
160017.7 µs/# 188 # 6.249 #/sec 30083.328 net-ms
168649.4 µs/# 178 # 5.929 #/sec 30019.586 net-ms

@scotty65
Would you know if it is possible to get both the -i and -d options in the same run? Thanks.

Mod edit: Merged consecutive posts and added @mentions to keep things tidier. :wink:

Speed is determined by a lot of factors and it is not fair to compare your execution times with mine, we are likely using very different systems - see my workstation spec in my profile - so I can’t say if your time is good or bad - it depends… on the system, the folder complexity and possibly other factors I have not thought of…

It is well-known that the Linux kernel will cache everything - thus any subsequent run of the same command will result in a faster execution time.

If you want to measure directly you will need to drop cache.

As root run

echo 3 > /proc/sys/vm/drop_caches

As for the sample python script - the mimetype is guessed from extension.

If you want to get mime type from file content, sync the package python-magic

EDIT:
Change line 16

# mime_type, _ = mimetypes.guess_type(filepath)
mime_type = magic.from_file(filepath, mime=True)

Add to the top with the other imports

import magic

This run was done using the changes mentioned above and I had flushed cache beforehand

10:58:30 ○ [fh@tiger] (py: .venv) .../2026/sort-folder-by-mime-type
 $ time python main.py /home/fh/Documents

application/epub+zip:
--------------------
  Calibre Library/Entity_Framework_Core_in_Action_Second_.epub
  Calibre Library/John Schember/Quick Start Guide (1)/Quick Start Guide - John Schember.epub
  Calibre Library/Jon P Smith/Entity Framework Core in Action, Second Edition (2)/Entity Framework Core in Action, Second Ed - Jon P Smith.epub
  Calibre Library/VAGTTARNET/Ny Verden-Oversaettelsen (nwt-D) (6)/Ny Verden-Oversaettelsen (nwt-D) - VAGTTARNET.epub
  Calibre Library/nwt_D.epub

application/gzip:
----------------
  brother/linux-brprinter-installer-2.2.3-1.gz
  manuals/support-07AB-1681730049562.tgz

application/json:
----------------
  AL/GeneratedProject1/.vscode/launch.json
  AL/GeneratedProject1/app.json
  Calibre Library/metadata_db_prefs_backup.json
  Zettlr Tutorial/references.json
  kwin-scripts/KZones.json
  text/aiowps_2019-10-10_05-55.txt
  text/aiowps_2019-10-10_06-19.txt

application/octet-stream:
------------------------
  regnskab/Posteringer.csv

application/pdf:
---------------
  Calibre Library/Vladimir Pecanac;Marinko Spasojevic/Mastering ASP.NET Core Security (4)/Mastering ASP.NET Core Security - Vladimir Pecanac;Marinko Spasojevic.pdf
  Calibre Library/Vladimir Pecanac;Marinko Spasojevic/The HTTP Reference Tables (5)/The HTTP Reference Tables - Vladimir Pecanac;Marinko Spasojevic.pdf
  Calibre Library/Vladimir Pecanac;Marinko Spasojevic/Ultimate ASP.NET Core Web API (3)/Ultimate ASP.NET Core Web API - Vladimir Pecanac;Marinko Spasojevic.pdf
  Calibre Library/fjernvarme-servitut.pdf
  PDFs/Automation-at-the-edge-ebook-Red-Hat-Developer.pdf
  PDFs/Choose-an-automation-tool-ebook-Red-Hat-Developer.pdf
  PDFs/Enhance-security-with-automation-ebook-Red-Hat-Developer.pdf
  PDFs/GitOps-Cookbook-Red-Hat-Developer-ebook.pdf
  PDFs/Podman-in-Action-ebook-FINAL-Red-Hat-Developer.pdf
  PDFs/The-Modern-Developer-ebook-Red-Hat-Developer.pdf
  PDFs/The-cost-of-human-error-automation-ebook-Red-Hat-Developer.pdf
  PDFs/cl-oreilly-kubernetes-operators-ebook-f21452-202001-en_2.pdf
  PDFs/osdc_cheatsheet-networking-2021.4.8.pdf
  Zettlr Tutorial/LaTeX Guide.pdf
  frede-h-nødkontakt.pdf
  radeon-ai-pro-rocm-pytorch-guide.pdf
  regnskab/74aeae16-79ef-4cbf-8e99-236a3f206d5b.pdf
  regnskab/Faktura 410223-2.pdf
  regnskab/Frede 26.02.2026 - 26.02.2026.pdf
  server-2019-essentials-2610358.pdf
  ved-lunden-11/2025-08-13 08-40.pdf
  ved-lunden-11/BR18 ansøgningsskema.pdf
  ved-lunden-11/D2025-277320 LOVLIGGØRENDE BYGGETILLADELSE, Ved Lunden 11, 8230 Åbyhøj - Lovliggørelse af sekundært byggeri ddb383b5-c3b1-4fdd-a81e-08707a83aaa9.pdf
  ved-lunden-11/D2025-277343 Erklæring vedr. det færdige byggeri 8431b8b0-f3da-48c1-b5aa-77d28d97688b.pdf
  ved-lunden-11/bbr-rettelse-2023.pdf
  ved-lunden-11/brev-ejendomsvurdering-24-05-31.pdf
  ved-lunden-11/ved-lunden-11-lovliggørelse-af-carport-og-udhus.pdf

application/vnd.debian.binary-package:
-------------------------------------
  brother/hll8260cdwcupswrapper-1.5.0-0.i386.deb
  brother/hll8260cdwlpr-1.5.0-0.i386.deb

application/vnd.oasis.opendocument.spreadsheet:
----------------------------------------------
  regnskab/bil-afgift-beregning.ods
  regnskab/budget-test.ods
  ved-lunden-11/ved-lunden-11-sekundære-bygninger.ods

application/vnd.oasis.opendocument.spreadsheet-template:
-------------------------------------------------------
  regnskab/budget-skabelon.ots

application/vnd.oasis.opendocument.text:
---------------------------------------
  doc/blinken-ligths.odt
  doc/leipzig-gothic-letters.odt
  regnskab/gavebrev.odt
  ved-lunden-11/oversigt-13ao-aby.odt
  ved-lunden-11/ægtepagt-testamente-kladde.odt

application/vnd.openxmlformats-officedocument.wordprocessingml.document:
-----------------------------------------------------------------------
  Nødkontakt.docx
  doc/guitar-fretboard.docx

application/vnd.sqlite3:
-----------------------
  Calibre Library/.calnotes/notes.db
  Calibre Library/metadata.db

application/xhtml+xml:
---------------------
  forum-archive/index.html
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/a.xhtml

application/zip:
---------------
  Calibre Library/EfCoreinAction-SecondEdition-master.zip
  brother/01.0108.9999.lbx
  brother/01.0136.9999.lbx
  brother/01.0635.6100.lbx
  forum-archive/user_archive-linux-aarhus-220307-072759-36.zip
  forum-archive/user_archive-linux-aarhus-230909-142928-76.zip
  forum-archive/user_archive-linux-aarhus-240526-080545-107.zip
  forum-archive/user_archive-linux-aarhus-241231-051855-127.zip
  kwin-scripts/floating-tiles-v7.0.kwinscript
  manuals/N141WU_SM.zip
  ved-lunden-11/Attachments-Lovliggørende byggetilladelse - Lovliggørelse af sekundært byggeri på adressen Ved Lunden 11, 8230 Åbyhøj - sagsnr. S2025-10822.zip

image/gif:
---------
  bits-and-bytes-converter/bits-and-bytes-converter_files/FlaggeDe.gif
  bits-and-bytes-converter/bits-and-bytes-converter_files/FlaggeUK-SW.gif
  bits-and-bytes-converter/bits-and-bytes-converter_files/Pfeil03Links.gif
  bits-and-bytes-converter/bits-and-bytes-converter_files/Pfeil03Rechts.gif
  bits-and-bytes-converter/bits-and-bytes-converter_files/Pfeil03Top.gif
  bits-and-bytes-converter/bits-and-bytes-converter_files/Tontechnik-Rechner.gif
  bits-and-bytes-converter/bits-and-bytes-converter_files/background57.gif
  bits-and-bytes-converter/data-transfer-calculator_files/FlaggeDe.gif
  bits-and-bytes-converter/data-transfer-calculator_files/FlaggeUK-SW.gif
  bits-and-bytes-converter/data-transfer-calculator_files/Pfeil03Links.gif
  bits-and-bytes-converter/data-transfer-calculator_files/Pfeil03Rechts.gif
  bits-and-bytes-converter/data-transfer-calculator_files/Pfeil03Top.gif
  bits-and-bytes-converter/data-transfer-calculator_files/Tontechnik-Rechner.gif
  bits-and-bytes-converter/data-transfer-calculator_files/background57.gif

image/jpeg:
----------
  Calibre Library/John Schember/Quick Start Guide (1)/cover.jpg
  Calibre Library/Jon P Smith/Entity Framework Core in Action, Second Edition (2)/cover.jpg
  Calibre Library/VAGTTARNET/Ny Verden-Oversaettelsen (nwt-D) (6)/cover.jpg
  Calibre Library/Vladimir Pecanac;Marinko Spasojevic/Mastering ASP.NET Core Security (4)/cover.jpg
  Calibre Library/Vladimir Pecanac;Marinko Spasojevic/The HTTP Reference Tables (5)/cover.jpg
  Calibre Library/Vladimir Pecanac;Marinko Spasojevic/Ultimate ASP.NET Core Web API (3)/cover.jpg

image/png:
---------
  Zettlr Tutorial/zettlr.png
  forum-archive/hurt-feelings-complaint-form.png
  gimp/duck-512x512.png
  gimp/g83.png
  gimp/hukommelse.png
  gimp/hundewadt-dk-header.png
  gimp/inno-demo.png
  gimp/innotec-servicepack-download.png
  gimp/kender-du-det.png
  gimp/ko-fi-banner.png
  gimp/ko-fi-cover.png
  gimp/linux-laptops-logo.png
  gimp/locale-settings.png
  gimp/makepkg-aur-pamac-cli.png
  gimp/manjaro-archive-banner.png
  gimp/manjaro-archive.png
  gimp/openbox-matcha.png
  gimp/openbox-screenshot-menu.png
  gimp/pacbang-cover.png
  gimp/pacbang-logo.png
  gimp/pacbang.png
  gimp/shadow.png
  gimp/wd-nvme-256g-wds256g1x0c.png
  gimp/weird-gtk-appearance.png
  hurt-feeelings-report.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/m_top.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mb_articles_g.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mb_blog_g.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mb_contact_g.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mb_gnu_g.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mb_index.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mb_links.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mb_photoblog.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mb_programming.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mbl_cartoons.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mbl_linux_documents.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/mbl_linux_links_g.png
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/ml_top.png

image/svg+xml:
-------------
  gimp/pacbang-logo.svg

image/webp:
----------
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/152885d9-2b35-4c7a-a6be-1f90006aac16-1024x374.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/152885d9-2b35-4c7a-a6be-1f90006aac16-1536x561.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/152885d9-2b35-4c7a-a6be-1f90006aac16-300x110.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/152885d9-2b35-4c7a-a6be-1f90006aac16-768x280.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/152885d9-2b35-4c7a-a6be-1f90006aac16.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/1a274c47-cdf4-4d35-adf0-fde891215fdd-1024x321.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/1a274c47-cdf4-4d35-adf0-fde891215fdd-1536x481.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/1a274c47-cdf4-4d35-adf0-fde891215fdd-300x94.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/1a274c47-cdf4-4d35-adf0-fde891215fdd-768x241.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/1a274c47-cdf4-4d35-adf0-fde891215fdd.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/2b5f584c-0d92-4481-8340-fd7c32f267ff-1180x1536.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/2b5f584c-0d92-4481-8340-fd7c32f267ff-230x300.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/2b5f584c-0d92-4481-8340-fd7c32f267ff-768x1000.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/2b5f584c-0d92-4481-8340-fd7c32f267ff-786x1024.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/2b5f584c-0d92-4481-8340-fd7c32f267ff.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/44aafa9a-6af4-4de5-b0dd-017440b3d6f5-1024x582.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/44aafa9a-6af4-4de5-b0dd-017440b3d6f5-300x171.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/44aafa9a-6af4-4de5-b0dd-017440b3d6f5-768x437.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/44aafa9a-6af4-4de5-b0dd-017440b3d6f5.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/46cdec5e-18cc-4da1-af40-3a727f267712-1178x1536.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/46cdec5e-18cc-4da1-af40-3a727f267712-230x300.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/46cdec5e-18cc-4da1-af40-3a727f267712-768x1001.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/46cdec5e-18cc-4da1-af40-3a727f267712-786x1024.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/46cdec5e-18cc-4da1-af40-3a727f267712.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/65940ab4-122d-40f1-ab44-15dab582bf40-1024x363.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/65940ab4-122d-40f1-ab44-15dab582bf40-1536x545.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/65940ab4-122d-40f1-ab44-15dab582bf40-300x106.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/65940ab4-122d-40f1-ab44-15dab582bf40-768x273.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/65940ab4-122d-40f1-ab44-15dab582bf40.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/83040a10-5f0f-45bd-9a97-bd9e53d26bdc-1024x640.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/83040a10-5f0f-45bd-9a97-bd9e53d26bdc-300x188.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/83040a10-5f0f-45bd-9a97-bd9e53d26bdc-768x480.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/83040a10-5f0f-45bd-9a97-bd9e53d26bdc.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/9e072d84-dbd9-4655-ba36-ee82e52eb86c-1024x225.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/9e072d84-dbd9-4655-ba36-ee82e52eb86c-1536x338.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/9e072d84-dbd9-4655-ba36-ee82e52eb86c-300x66.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/9e072d84-dbd9-4655-ba36-ee82e52eb86c-768x169.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/9e072d84-dbd9-4655-ba36-ee82e52eb86c.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/9f1d0d73-fe8f-4281-bb42-1c69b76ed075-1024x862.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/9f1d0d73-fe8f-4281-bb42-1c69b76ed075-300x252.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/9f1d0d73-fe8f-4281-bb42-1c69b76ed075-768x646.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/9f1d0d73-fe8f-4281-bb42-1c69b76ed075.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/Certified_partner_logo-1024x324.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/Certified_partner_logo-300x95.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/Certified_partner_logo-768x243.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/Certified_partner_logo.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/HavenZone-3-black-low-res-web-300x108.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/HavenZone-3-black-low-res-web-768x276.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/HavenZone-3-black-low-res-web.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/a8f878484445130abe5c249e89c85901.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/badge-1-1024x778.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/badge-1-300x228.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/badge-1-768x583.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/badge-1.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/c9034271-c57e-4d53-b936-30dd5b29947a-1081x1536.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/c9034271-c57e-4d53-b936-30dd5b29947a-211x300.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/c9034271-c57e-4d53-b936-30dd5b29947a-721x1024.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/c9034271-c57e-4d53-b936-30dd5b29947a-768x1091.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/c9034271-c57e-4d53-b936-30dd5b29947a.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/d347a49d-042f-49a4-85d9-7cdb8b33fb4f-1024x311.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/d347a49d-042f-49a4-85d9-7cdb8b33fb4f-1536x466.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/d347a49d-042f-49a4-85d9-7cdb8b33fb4f-300x91.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/d347a49d-042f-49a4-85d9-7cdb8b33fb4f-768x233.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/d347a49d-042f-49a4-85d9-7cdb8b33fb4f.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/ubiquiti-reseller-1024x445.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/ubiquiti-reseller-1536x667.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/ubiquiti-reseller-2048x889.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/ubiquiti-reseller-300x130.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/ubiquiti-reseller-768x334.webp
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/ubiquiti-reseller.webp

image/x-xcf:
-----------
  gimp/duck-866x866.xcf
  gimp/hukommelse.xcf
  gimp/hundewadt-dk-header.xcf
  gimp/illyria-default-main-light-corner-logo-orange.xcf
  gimp/image_proxy_white_red_border.xcf
  gimp/inno-demo.xcf
  gimp/ko-fi-banner.xcf
  gimp/ko-fi-cover.xcf
  gimp/linux-aarhus-site-banner-1200x225.xcf
  gimp/linux-aarhus.xcf
  gimp/linux-laptops-logo.xcf
  gimp/manjaro-archive-banner.xcf
  gimp/manjaro-archive.xcf
  gimp/manjaro-text-bright-blue.xcf
  gimp/openbox-default-blue.xcf
  gimp/openbox-illyria2.xcf
  gimp/openbox-logo-res-300.xcf
  gimp/openbox-logo-res-600-bright-blue.xcf
  gimp/openbox-logo-res-600-bright-maia.xcf
  gimp/openbox-logo-res-600-bright-yellow.xcf
  gimp/openbox-logo-res-600-orange.xcf
  gimp/openbox-logo-res-600.xcf
  gimp/openbox-logo.xcf
  gimp/openbox.xcf
  gimp/pacbang-cover.xcf
  gimp/pacbang-logo.xcf
  gimp/pacbang-logo.xcf.xcf
  gimp/smoke_hood_silhouette_128612_1920x1080.xcf
  gimp/splash.new.xcf
  gimp/ubuntu-aarhus-group-banner.xcf
  noir-city-by-eddie-mendoza-cropped-4383x2996.xcf

message/rfc822:
--------------
  text/Wupti.com - Re: 52331740 - 842086.txt

text/csv:
--------
  text/Untitled 1.csv
  text/ten-more-countries.txt

text/html:
---------
  bits-and-bytes-converter/bits-and-bytes-converter.html
  bits-and-bytes-converter/data-transfer-calculator.html
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone.html
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/a.html
  secure-copy-syntax/Example syntax for Secure Copy (scp).html

text/javascript:
---------------
  bits-and-bytes-converter/bits-and-bytes-converter_files/ga.js
  bits-and-bytes-converter/data-transfer-calculator_files/ga.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/external_forms.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/gtm.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-1c61ea851696d77915a6d68982090c0d.public-scripts.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-23d33c1839c4e249055eb7e2a66aff11.9ca3359fb2a7fc71e5.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-3a0508bb2ab18be40795a6a8d2b9c7ca.masonry.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-515256a13fd66d71a2887d1dc1ecc93c.designer.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-515256a13fd66d71a2887d1dc1ecc93c.infusion.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-515256a13fd66d71a2887d1dc1ecc93c.ticker.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-5352410e4d7e1ae7f0044bb295d19548.esf-free-popup.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-5352410e4d7e1ae7f0044bb295d19548.public.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-5b75144ff99e96e2917a4d2f2017e967.coblocks-lightbox.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-62ea2cc6dbce5d761ac5d058e7f599e9.jquery.fitvids.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-68b3cde97caa4bdbde203af1041adcfb.esf-insta-public.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-6a4d797cb2c4c163caae73cbfa55efa1.imagesloaded.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-6a4d797cb2c4c163caae73cbfa55efa1.imagesloaded.pkgd..js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-6a4d797cb2c4c163caae73cbfa55efa1.swap.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-a03052e7c818de8fc9953862939c5874.theme.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-a7a06d7d6baa21c9a129aecfbec647db.jquery.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-ae2d0389fc49645f4f5a645b442c22c3.jquery.ba-throttle.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-ae2d0389fc49645f4f5a645b442c22c3.jquery.magnificpop.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-ae2d0389fc49645f4f5a645b442c22c3.jquery.waypoints.m.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-cb18c360fd268e2139b3af380d465c2a.custom.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-cb18c360fd268e2139b3af380d465c2a.idle-timer.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-cb18c360fd268e2139b3af380d465c2a.jquery.uniform.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-d6171631e2919215b5e490dc93564c56.jquery-migrate.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-getTrackingCode
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-tcc_l.combined.1.0.6.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-tccl-tti.min.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-tp.widget.bootstrap.min.js
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/ga.js

text/plain:
----------
  De ti plager.md
  HeidiSQL/crmdb.sql
  Install Win11 using libvirt
  NotesOnEncryptSetup.md
  Zettlr Tutorial/LaTeX Guide.md
  Zettlr Tutorial/citing.md
  Zettlr Tutorial/helpful-links.md
  Zettlr Tutorial/split-view-intro.md
  Zettlr Tutorial/welcome.md
  Zettlr Tutorial/zettelkasten.md
  forum-archive/manjaro-finance.md
  macarons.txt
  manjaro-financial-2024-12-26.txt
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-5b75144ff99e96e2917a4d2f2017e967.coblocks-animation.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-noimport-08b3644b1eee19ef4656f99406ca8a84-styleshe.css
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-noimport-29e8603bfc59e90687802bd3f7b9498c-styleshe.css
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-noimport-61082610bc4c51380c14b756c2a67ae2-styleshe.css
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/nitro-min-noimport-cea370cb13a8c51cf0bc05e45b431f6d-styleshe.css
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/poll.js
  manuals/OpenVPN Setup & Configuration on UniFi Security Gateway – Step by Step Guide – HavenZone_files/poll_002.js
  nødtaske-indhold-forslag.txt
  portugesisk-bagers-øje.txt
  scripted-installer.sh
  scripts/internal-ip-addresses.txt
  secure-copy-syntax/Example syntax for Secure Copy (scp)_files/ss.css
  tails-how-to-find-latest-iso.md
  te-blanding.txt
  text/Anni.csv
  text/Det Danske Sprog.txt
  text/Erhvervskonto.csv
  text/Fælles konto.csv
  text/Mange i dag mener at man kun er virkeligt fri hvis.txt
  text/Re: Wupti.com - Re: 52331740 - 842086.txt
  text/backup_codes_manjaro_forum.txt
  text/blackduck-mailbox-org.txt
  text/countries-by-area.txt
  text/countries-raw.txt
  text/dybstegt-kylling-ala-kentucky.txt
  text/ghostdocpro-5-license.txt
  text/ingefær-sirups-kager.txt
  text/linksys-adgang.txt
  text/linux-install-steps.txt
  text/manjaro-forum-backup-codes.txt
  text/mesocolumn-faq.txt
  text/modulus10.txt
  text/roundcubeskins-licence-number.txt
  text/se-users.csv
  text/stats-exercise.txt
  text/tilgin-hw-info.txt
  text/ubuntu-aarhus.txt
  text/vmware-workstation-key.txt
  text/wordpress-backup-codes.txt/fhundewadt-backup-codes.txt
  ved-lunden-11/foreløbig vurdering

text/x-php:
----------
  text/wp-config-backup.txt

text/x-script.python:
--------------------
  text/91-Hint.txt

text/xml:
--------
  Calibre Library/John Schember/Quick Start Guide (1)/metadata.opf
  Calibre Library/Jon P Smith/Entity Framework Core in Action, Second Edition (2)/metadata.opf
  Calibre Library/VAGTTARNET/Ny Verden-Oversaettelsen (nwt-D) (6)/metadata.opf
  Calibre Library/Vladimir Pecanac;Marinko Spasojevic/Mastering ASP.NET Core Security (4)/metadata.opf
  Calibre Library/Vladimir Pecanac;Marinko Spasojevic/The HTTP Reference Tables (5)/metadata.opf
  Calibre Library/Vladimir Pecanac;Marinko Spasojevic/Ultimate ASP.NET Core Web API (3)/metadata.opf

numFiles: 331
Unique MIME types: 27

real    0m0,746s
user    0m0,113s
sys     0m0,096s
2 Likes

Easy-peasy:

mimetype --output-format "%f %d %m"

You can add other characters apart from spaces. For example, to add a vertical line (aka pipe symbol) between each field:

mimetype --output-format "%f | %d | %m"

Note: single quotes ’ can also be used instead of double quotes "

3 Likes

Plus the storage hardware will likely have internal caching, meaning that getting accurate results is tricky. Sometimes copying the data to a ram disk and running the commands on that allows you to compare the tools, not the hardware.

And /tmp is sometimes configured as a ram disk, which avoids having to create one just for testing.

Not sometimes, but almost always in distributions using systemd — one notable exception being openSUSE.

Also, it’s not a ramfs but a tmpfs. Its contents can be paged out to swap if need be, while the contents of a ramfs will always remain in RAM — unless they are deleted or the ramfs is unmounted, of course.

2 Likes

Thank you. I’m so stupid sometimes. I tried that last night and got only the first %letter. I never thought of putting them in quotations “%f %d”.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.