---
name: "magicsort"
section: "1"
platform: "linux"
package: "magicrescue"
version: "1.1.10+dfsg-2+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/magicsort"
---

# magicsort(1)

Categorize files by their file(1) magic

## NAME

magicsort - Categorize files by their [file(1)](/file/1.md) magic

## SYNOPSIS

**magicsort** *directory*

## DESCRIPTION

Invokes the system's **file** utility on all files in *directory* non-recursively.  For each different string that **file** outputs it will create a sub-directory of that name and move the file in there.

## SEE ALSO

[**magicrescue**(1)](/magicrescue/1.md), [**dupemap**(1)](/dupemap/1.md)

## AUTHOR

Jonas Jensen \<jbj@knef.dk\>

## LATEST VERSION

This tool is part of Magic Rescue.  You can find the latest version at \<https://github.com/jbj/magicrescue\>
