qmetrics.net

File

Unix file type identification command and libmagic

File Management & SyncDesktop/CLI app

The file utility identifies file types from magic numbers and metadata. libmagic lets other programs detect types without spawning the file command.

Overview

The file program implements the familiar Unix file command: given paths, it reports what each file likely is by consulting magic data rather than relying only on filename extensions. It recognizes thousands of file types and follows the System V style of reading rules from magic databases, with extensions such as tar archive awareness.

Modern releases refactor core logic into libmagic, a library other applications can link or import to identify types in-process instead of fork-and-execing the standalone command. Capabilities include CDF parsing, MIME and ASCII encoding handling, compressed content inspection, and recognition of formats such as JSON, CSV, ELF, and tar.

The package is the standard file command on Linux, BSD, and related systems. Magic rules are maintained in a structured directory and aggregated into the runtime database developers install on the system.

Optional packaging targets include AmigaOS cross-builds with variant C runtimes, but the everyday role of the product remains type detection for shell scripts, file managers, and security tooling on Unix-like hosts.

Key features

  • Magic-number file identification
  • libmagic embeddable API
  • Compressed file introspection
  • MIME and encoding detection
  • CDF and ELF recognition
  • JSON and CSV awareness
  • Configurable magic database

Use cases

  • Shell scripts classifying unknown files
  • Programs detecting types in-process
  • Mail and security pipeline triage
  • Build systems validating artifacts

Similar software

Immich

Self-hosted photo and video library with mobile backup

Immich backs up, organizes, and browses personal photos and videos on hardware you run. Mobile and web clients share albums, search, and face grouping.

★ 120.3k⟳ todayAGPL-3.0
Open Source Alternative to:Apple PhotosGoogle Photos

LocalSend

Cross-platform local network file and message sharing app

LocalSend shares files and messages with nearby devices over your local network without internet. It uses HTTPS and works across desktop and mobile systems.

★ 101.2k⟳ 4 days agoApache-2.0
File Management & SyncDesktop/CLI app

Syncthing

Continuous file synchronization between your computers

Syncthing keeps folders in sync across two or more computers automatically. It prioritizes data safety, security, and ease of use for individual users.

★ 90.9k⟳ 2 days agoMPL-2.0
File Management & SyncDesktop/CLI app

Ventoy

Bootable USB loader for ISO and disk images

Ventoy prepares a USB drive so you can copy ISO, WIM, IMG, VHD, and EFI files and pick them from a boot menu without reformatting for each image.

★ 81.3k⟳ 4 days agoGPL-3.0
File Management & SyncDesktop/CLI app

Rclone

Command-line sync tool for cloud storage

Rclone copies and syncs files between local disks and many cloud backends. It mirrors familiar Unix-style file operations for remote storage.

★ 61.3k⟳ todayMIT
Backup & RecoveryDesktop/CLI app

Motrix

Full-featured desktop download manager

Motrix is a desktop download manager for HTTP, FTP, BitTorrent, magnet links, and related sources. A headless server variant adds a web UI and remote control over Docker.

★ 58.9k⟳ todayMIT · open core
File Management & SyncDesktop/CLI app
Open Source Alternative to:Internet Download Manager