LinuxCommandLibrary

firefox

a free and open source web browser from Mozilla

TLDR

Launch Firefox and open a web page

$ firefox [https://www.duckduckgo.com]
copy


Open a new window
$ firefox --new-window [https://www.duckduckgo.com]
copy


Open a private (incognito) window
$ firefox --private-window
copy


Search for "wikipedia" using the default search engine
$ firefox --search "[wikipedia]"
copy


Launch Firefox in safe mode, with all extensions disabled
$ firefox --safe-mode
copy


Take a screenshot of a web page in headless mode
$ firefox --headless --screenshot [path/to/output_file.png] [https://example.com/]
copy


Use a specific profile to allow multiple separate instances of Firefox to run at once
$ firefox --profile [path/to/directory] [https://example.com/]
copy


Set Firefox as the default browser
$ firefox --setDefaultBrowser
copy

SYNOPSIS

firefox [OPTIONS] [URL]

/usr/lib/firefox/firefox [OPTIONS] [URL]

DESCRIPTION

Firefox is an open-source web browser, designed for standards compliance, performance and portability.

USAGE

If there is an Firefox browser already running, firefox will arrange for it to create a new browser window; otherwise it will start a new instance.

OPTIONS

A summary of the options supported by firefox is included below.

X11 options

--display=DISPLAY

X display to use

--sync

Make X calls synchronous

--no-xshm

Don't use X shared memory extension

--xim-preedit=STYLE
--xim-status=STYLE
--g-fatal-warnings

Make all warnings fatal

Mozilla options

-h, -help

Show summary of options.

-v, -version

Print Firefox version.

-P [profile]

Start with profile. When no profile is given, displays the Profile Manager. May require -no-remote, see below.

-migration

Start with migration wizard. May require -no-remote, see below.

-ProfileManager

Start with profile manager. May require -no-remote, see below.

-no-remote

Don't connect to a running Firefox instance. This option can be necessary in conjunction to several of the options above, that won't have any effect when an Firefox instance is running unless -no-remote is used at the same time.

-UILocale locale

Start with locale resources as User Interface locale. By default, it is guessed from environment and available locales for Firefox.

-safe-mode

Starts Firefox in safe mode, i.e. disabling all extensions and showing a bit more debugging messages.

-jsconsole

Start with Javascript Console

-new-window URL

Open URL in a new window in an already running Firefox process.

-new-tab URL

Open URL in a new tab in an already running Firefox process.

-chrome url

Load the specified chrome.

ENVIRONMENT

MOZILLA_DISABLE_PLUGINS - when set, totally disables loading browser plugins (the ones that appear at the about:plugins url)

FILES

/usr/bin/firefox - symbolic link to /usr/lib/firefox/firefox.

/usr/lib/firefox/firefox - Firefox executable.

/usr/lib/firefox/firefox-bin - Legacy executable.

BUGS

To report a bug, please visit http://bugzilla.mozilla.org/ and/or report bugs to the Debian Bug Tracking System, as usual.

AUTHORS

The Mozilla Organization

http://www.mozilla.org/about.html

Copied to clipboard