Scroll to navigation

SURF(1) General Commands Manual SURF(1)


surf - simple webkit-based browser


surf [-bBdDfFgGiIkKmMnNpPsStTvwxX] [-a cookiepolicies] [-c cookiefile] [-C stylefile] [-e xid] [-r scriptfile] [-u useragent] [-z zoomlevel] [URI]


surf is a simple Web browser based on WebKit/GTK+. It is able to display websites and follow links. It supports the XEmbed protocol which makes it possible to embed it in another application. Furthermore, one can point surf to another URI by setting its XProperties.


-a cookiepolicies
Define the order of cookie policies. The default is "@Aa" but could be redefined in the config.h, with "A" meaning to accept all cookies, "a" to deny all cookies and "@", which tells surf to accept no third party cookies.
Disable Scrollbars.
Enable Scrollbars.
Specify the cookiefile to use.
Specify the user stylefile. This does disable the site-specific styles.
Disable the disk cache.
Enable the disk cache.
Reparents to window specified by xid.
Start surf in windowed mode (not fullscreen).
Start surf in fullscreen mode.
Disable giving the geolocation to websites.
Enable giving the geolocation to websites.
Disable Images.
Enable Images.
Disable kiosk mode (disable key strokes and right click).
Enable kiosk mode (disable key strokes and right click).
Disable application of user style sheets.
Enable application of user style sheets.
Disable the Web Inspector (Developer Tools).
Enable the Web Inspector (Developer Tools).
Disable Plugins.
Enable Plugins.
Specify the user scriptfile.
Disable Javascript.
Enable Javascript.
Disable strict TLS check.
Enable strict TLS check.
Specify the useragent which surf should use.
Prints version information to standard output, then exits.
Prints xid to standard output. This can be used to script the browser in for example xdotool(1).
Disable custom certificates.
Enable custom certificates.
Specify the zoomlevel which surf should use.


Escape Stops loading current page or stops download.

Walks back the history.
Walks forward the history.
Scrolls page upwards.
Scrolls page downwards.
Scroll up one whole page view.
Scroll down one whole page view.
Scroll horizontally to the right.
Scroll horizontally to the left.
Zooms page in.
Zooms page out.
Resets Zoom.
Opens the search-bar.
Go to next search result.
Go to previous search result.
Opens the URL-bar (requires dmenu installed).
Loads URI from primary selection.
Calls Printpage Dialog.
Reloads the website.
Reloads the website without using the cache.
Copies current URI to primary selection.
Display the current TLS certificate in a popup window.
Toggle through the the cookie policies. This will not reload the page.
Toggle scrollbars. This will reload the page.
Toggle caret browsing. This will reload the page.
Toggle auto-loading of images. This will reload the page.
Toggle if the stylefile file should be loaded. This will reload the page.
Open the Web Inspector (Developer Tools) window for the current page.
Toggle script execution. This will reload the page.
Toggle strict TLS check. This will reload the page.
Toggle the enabling of plugins on that surf instance. This will reload the page.
Toggle fullscreen mode.


Surf is showing indicators of operation in front of the site title. For all indicators, unless otherwise specified, a lower case letter means disabled and an upper case letter means enabled.

all cookies accepted
no cookies accepted
all except third-party cookies accepted
caret browsing
g G
d D
disk cache
i I
s S
v V
m M
f F
frame flattening
x X
custom certificates
t T
strict TLS


The second part of the indicators specifies modes of the web page itself.

First character: encryption

encrypted (TLS)
attempted encryption but failed

Second character: proxying

no proxy
using proxy


SURF_USERAGENT If this variable is set upon startup, surf will use it as the useragent string.

If this variable is set and not empty upon startup, surf will use it as the http proxy.


Surf will reload the current page on SIGHUP.


For using plugins in surf, first determine your running architecture. Then get the appropriate plugin for that architecture and copy it to /usr/lib/browser-plugins or /usr/lib64/browser-plugins. Surf should load them automatically. If you want to use a 32bit plugin on a 64bit system, nspluginwrapper(1) will help you.


dmenu(1), xprop(1), tabbed(1), nspluginwrapper(1), xdotool(1)


Please report them!