mdls
Displays macOS Spotlight metadata for files.
Syntax
$mdls [OPTIONS] [FILE]
Examples
Examples
$mdls file.txt
Examples
$mdls -name kMDItemContentType file.txt
Warnings
Available from macOS 10.4
Typical use cases
mdls --help
man mdls
Note
macOS-specific tool for file metadata.
Export