gio info -a 'metadata::*' $HOME
$ touch /tmp/myfile $ gio info -a 'metadata::*' /tmp/myfile attributes: $ gio set attribute -t string /tmp/myfile 'metadata::mynote' 'Please remember to delete this file!' $ gio info -a 'metadata::*' /tmp/myfile attributes: metadata::mynote: Please remember to delete this file! $ gio move /tmp/myfile /tmp/newfile $ gio info -a 'metadata::*' /tmp/newfile attributes: metadata::mynote: Please remember to delete this file!
(Info from Redhat)
Check used emblems of a file:
$ gio info 22 | grep emblem metadata::emblems: [emblem-favorite-symbolic.symbolic, emblem-generic]
Set some other emblems:
$ gio set 22 metadata::emblems --type=stringv emblem-debian emblem-default
Note that it is required to refresh the folder to see the changes