.DS_Store files below users home directorycd && find . -iname '.DS_Store' -a -not -ipath './Library/*' -delete 2>/dev/null
ls -lOsudo chflags <flag> <file>, with flag:hidden: hidden (for example ~/Library);arch, archived: archived;nodump: ;opaque: ;sappnd, sappend: system append-only;schg, schange, simmutable: system immutable;uappnd, uappend: user append-only;uchg, uchange, uimmutable: user immutable;sudo chflags no<flag> <file>quarantine attributesudo find / -user <user> -a -xattrname com.apple.quarantine 2>/dev/null
quarantine file attribute, recursivelysudo xattr -r -d com.apple.quarantine /path/to/dir
ls -l@(Finder) file tags are coded as file attributes in Apple File System (APFS).
mdfind 'kMDItemUserTags == "*"' mdls -name kMDItemUserTags <files> find . -xattrname com.apple.metadata:_kMDItemUserTags -print -exec mdls -name kMDItemUserTags '{}' ";" 2>/dev/null
xattr -d com.apple.metadata:_kMDItemUserTags <files>