Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

In my Ubuntu, I have added some frequented directories to the bookmarks of Nautilus, for visiting them quicker.

  1. I am looking for where the dir bookmarks of Nautilus are stored, but to no avail:

    $ find ~ -name nautilus | less        
    ./.config/nautilus
    ./.gconf/apps/nautilus
    ./.gconf/apps/ubuntuone/nautilus
    ./.gnome2/accels/nautilus
    
    $ find ~ -name bookmarks | less
    ./.streamtuner/cache/bookmarks
    ./.config/zathura/bookmarks
    ./.elinks/bookmarks
    

    I checked the above locations, and content of the files there, but didn't find anything for bookmarks.

  2. Is it possible to convert the dir bookmarks in Nautilus to links? It seems like dirs can't have hard links, but I prefer the links can still work after changing the dirs' name.

Thanks.

share|improve this question

marked as duplicate by Warren Hill, Rinzwind, Richard, Jorge Castro, bodhi.zazen Jul 28 at 17:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

up vote 2 down vote accepted

The bookmarks are stored in the file $HOME/.gtk-bookmarks (Ubuntu 12.04) or $HOME/.config/gtk-3.0/bookmarks (Ubuntu 14.04)

In Linux you can't create hard links but only soft links (symlinks) for directories.

share|improve this answer
    
Thanks. (1) Is it possible to convert the nautilus dir bookmarks to softlinks? (2) What can I do if I really need some "links" to frequented dirs which can still work after changing the dirs' names? –  Tim Jul 27 at 3:01
    
I don't have that directory. My Ubuntu is 12.04, and I have $HOME/.config/gtk-2.0', which doesn't have bookmarks` inside. Also see the output of my searching for bookmarks. –  Tim Jul 27 at 5:13
    
Added info for 12.04 to the answer. What do you mean by " convert the nautilus dir bookmarks to softlinks"? –  Florian Diesch Jul 27 at 12:46
    
Thanks. (1) how do you find $HOME/.gtk-bookmarks? (2) I am wondering about how to write a (bash) script to convert the contents of $HOME/.gtk-bookmarks to links (softlinks or hardlinks) –  Tim Jul 27 at 12:53

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