Do you want to run firefox using a command terminal along with some URL? Follow the given steps on Ubuntu, CentOS, Linux Mint, Kali, Manjaro, or on any other GUI Linux distribution.
Firefox browser is the default one in almost every Linux operating system because of its open-source GPL license. As we know it it is a graphical user interface browser that can be started with just one click of the mouse. However, for those who want to start Firefox without leaving the command line terminal along with some URL, here is the tutorial on it.
Run Firefox with URL in command line Linux
Use Command terminal
Run the inbuilt terminal app of your Linux distro and follow the next command to access firefox.
Open FirexFox using the command line
If you only just want to start the browser on Linux using the terminal then run:
firefox
Start firefox with some URL
If you want to open firefox directly from the command terminal, then simply type firefox along with the URL of the website you want to visit.
Here is the syntax to follow:
firefox url &
Replace URL with the web page name your want to visit, for example:
firefox www.how2shout.om &
Well, the command line for Firefox is not just limited to this, we can do a lot more things, here are a few other tips or commands we can use to manage our browser.
URL in a new window of Firefox Linux
If we want to open a new URL of some website in a new Firefox window but without closing the existing one, then use the following command syntax:
firefox --new-window url
Replace the URL with the actual website name:
firefox --new-window url www.how2shout.com
Command to open new Tab in Firefox
Well, we already have an active tab and want to open a new URL in another tab of firefox via command line terminal then that is also possible, for that use:
Syntax:
firefox --new-tab url
Replace URL with website name, for example:
firefox --new-tab www.how2shout.com
Use the firefox command to search
The next thing is while using the command line if you want to find something about in Search engine such as Yahoo, Google, or in some else.
In Default Search engine of the browser:
firefox --search keyword
Replace the keyword with the term or text you want to search in the default Search engine of firefox. For example:
firefox --search how2shout
Whereas, we can also use the command to specify any particular search engine we want to use for searching keywords such as Google, Bing, or DuckDuckgo.
For that, at the end of the above-given command syntax, we have to mention the URL of the search engine. for example:
For Google – firefox --search how2shout www.google.com
For Bing: firefox --search how2shout www.bing.com
DuckDuckGo- firefox --search how2shout duckduckgo.com
Use command to open Firefox Options / Preferences in Linux
Directly open the Settings of browser using the terminal:
firefox --preferences
To learn about more commands type:
firefox --help