Name

mdls

Synopsis

mdls [-name attribute] filenames

Displays the metadata tags for each of the filenames.

Options

-name attribute

Only display the given attribute. This option is repeatable. See the mdfind entry for a list of common attributes.

-live

After displaying the list of files, displays a count of files matching the query. The count is updated each time the count is updated. Use Control-C to cancel.

-onlyin dir

Limit the directories searched to dir.

Get Mac OS X Tiger in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.