Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When i copy and transfer emblems and notes which i created on directory's to my friend They are not going with it.

enter image description here enter image description here

Is is possible to move them with copy? If it is yes how can i move emblems and notes with copy between two Ubuntu machines?

share|improve this question
See if this helps:… – sergio91pt Jul 4 '11 at 13:22
up vote 3 down vote accepted

Notes and emblems are stored in ~/.local/share/gvfs-metadata/ or (for older versions (2008-ish) of Ubuntu) ~/.nautilus/metafiles/ in binary format.

Regarding emblems. Have a look at this answer: How to change the icons of multiple files from terminal?

Regarding notes. From CRC OK weblog:

Notes are not embedded into the file. You can not back the files up in archive without loosing the notes, neither can you copy them to an external storage, nor you can even freely move the files around in the same logical disk. You lose notes added to documents if you move them from one user account to another.

That website also has a script to backup notes to 1 file per note with a ntext extension:


process_dir() {
 local -a subdirs=()
 echo "Scanning directory: $1"

 # Scan the directory, processing files and collecting subdirs
 for file in "$1"/*; do
 if [[ -f "$file" ]]; then
 echo "Processing file: $file"
 # actually deal with the file here...

 #gvfs-info $file | grep annotation | sed s/' metadata::annotation: '/''/g > $file.note
 note=$(gvfs-info "$file" | grep annotation | sed s/' metadata::annotation: '/''/g)
 #len=`echo ${#note}`
 #echo $len
 if [ -z "$note" ]
 echo "No note for file $file"
 echo "Found a note for file \"$file\", saying: \"$note\""
 echo "$note" > $file.ntext

 fi     # $String is null.

 elif [[ -d "$file" ]]; then
 # If you don't care about processing all files before subfolders, just do:
 # process_dir "$file"

 # Now go through the subdirs
 for d in "${subdirs[@]}"; do
 process_dir "$d"

if [[ -z "$1" ]]; then
 read -p "Please enter a directory for me to scan " dir
process_dir "$dir"

usage of script at your own risc

You start the script like:

./extract_notes /home/rinzwind/ 

and it will scan /home/rinzwind/ for files containing notes and it will result in a filename ending on .ntext in that directory.

Getting them back into files you copy...

gvfs-set-attribute -t string rinzwind.txt metadata::annotation "hello Achu" 
gvfs-info -a metadata::annotation rinzwind.txt 
    metadata::annotation: hello Achu

enter image description here

gvfs-info and gvfs-set-attribute are part of gvfs-bin

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.