xdg-mime
Query and manage MIME types according to the XDG standard. More information: https://portland.freedesktop.org/doc/xdg-mime.html.
- Display the MIME type of a file:
xdg-mime query filetype
- Display the default application for opening PNGs:
xdg-mime query default
- Display the default application for opening a specific file:
xdg-mime query default $(xdg-mime query filetype )
- Set imv as the default application for opening PNG and JPEG images:
xdg-mime default
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
