Linux

Where Does the Surf Browser Store Bookmarks?

Where the suckless Surf browser keeps bookmarks and session files on Linux for backup and moves.

Last updated

Surf keeps a tiny home folder with bookmarks and per window session files: no profiles, no sync, no database. The suckless design stores almost nothing, which makes backup a one folder copy.

Most behavior comes from config.h at compile time, so reinstalls need rebuilding for options. Runtime state is the small half that copies. Close all windows before copying; session files write on exit, so live copies miss the latest tabs.

Where Surf stores this, by platform

Linux
~/.surf

Bookmarks and session files in one small home folder. Options live in config.h at build time, not here. Close all windows before copying.

Frequently asked questions

How do I back up Surf bookmarks?

Copy the whole surf folder in your home directory with every window closed. Bookmarks and session files travel together. Restoring means dropping it back before launch.

How do I edit Surf bookmarks by hand?

Open the bookmarks file in any editor; entries are plain URLs with titles. The file lives in the home folder beside session state. Rebuild it by hand when sync is not wanted.

Notice an outdated path? Let us know.