To run Firefox from the command line on a Linux, macOS, or Windows system, you can use the firefox
command.
For example, to start Firefox from the command line, you can use the following command:
firefoxSource:www.lautturi.com
This will launch Firefox in the default configuration.
You can also use the firefox
command to open a specific URL in Firefox. For example:
firefox https://www.example.com
This will open the https://www.example.com
URL in Firefox.
You can also use the firefox
command to open a local file in Firefox. For example:
firefox file:///path/to/file.html
This will open the file.html
file in Firefox.
The firefox
command also supports a number of options that allow you to customize the way Firefox is launched. For example, you can use the -new-window
option to open a new Firefox window, or the -private-window
option to open a new private browsing window.
For a complete list of options, you can use the firefox --help
command. This will display a list of all available options and their descriptions.
It's important to note that the firefox
command is only available if Firefox is installed on your system. If Firefox is not installed, you will need to install it before you can use the firefox
command. You can download and install Firefox from the Firefox website (https://www.mozilla.org/en-US/firefox/).