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

tag — Edit tags on Mac OS X files (10.9 Mavericks and above). More information: <https://github.com/jdberr

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

Problem

How to use the tag command: Edit tags on Mac OS X files (10.9 Mavericks and above). More information: <https://github.com/jdberry/tag#usage>.

Solution

tag — Edit tags on Mac OS X files (10.9 Mavericks and above). More information: <https://github.com/jdberry/tag#usage>.

Add tags to a file:
tag {{[-a|--add]}} {{tag_name1,tag_name2,...}} {{path/to/file}}


Remove a tag:
tag {{[-r|--remove]}} {{tag_name}} {{path/to/file}}


Remove all tags from a file:
tag {{[-r|--remove]}} \* {{path/to/file}}


Show all files with a given tag:
tag {{[-m|--match]}} {{tag_name}}

Code Snippets

Add tags to a file

tag {{[-a|--add]}} {{tag_name1,tag_name2,...}} {{path/to/file}}

Remove a tag

tag {{[-r|--remove]}} {{tag_name}} {{path/to/file}}

Remove all tags from a file

tag {{[-r|--remove]}} \* {{path/to/file}}

Show all files with a given tag

tag {{[-m|--match]}} {{tag_name}}

Context

tldr-pages: osx/tag

Revisions (0)

No revisions yet.