HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

mdls — Display the metadata attributes for a file. More information: <https://keith.github.io/xcode-man-pag

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandmetadatamdlsattributesclifordisplay
macos

Problem

How to use the mdls command: Display the metadata attributes for a file. More information: <https://keith.github.io/xcode-man-pages/mdls.1.html>.

Solution

mdls — Display the metadata attributes for a file. More information: <https://keith.github.io/xcode-man-pages/mdls.1.html>.

Display the list of metadata attributes for file:
mdls {{path/to/file}}


Display a specific metadata attribute:
mdls -name {{attribute}} {{path/to/file}}

Code Snippets

Display the list of metadata attributes for file

mdls {{path/to/file}}

Display a specific metadata attribute

mdls -name {{attribute}} {{path/to/file}}

Context

tldr-pages: osx/mdls

Revisions (0)

No revisions yet.