mimeopen

Perl module to determine file types

Install

All systems
curl cmd.cat/mimeopen.sh
Debian Debian
apt-get install libfile-mimeinfo-perl
Ubuntu
apt-get install libfile-mimeinfo-perl
Arch Arch Linux
pacman -S perl-File-MimeInfo
image/svg+xml Kali Linux
apt-get install libfile-mimeinfo-perl
Windows (WSL2)
sudo apt-get update sudo apt-get install libfile-mimeinfo-perl
Raspbian
apt-get install libfile-mimeinfo-perl

libfile-mimeinfo-perl

Perl module to determine file types

File::MimeInfo can be used to determine the mime type of a file. It tries to implement the freedesktop specification for a shared MIME database. This package also contains two related utilities: * mimetype: determine a file's mimetype * mimeopen: open files according to their mimetype

perl-File-MimeInfo

Determine file type and open application