Simply put, how do I open the Firefox directly from Mac OS X Terminal in private mode?
How to start Firefox web browser from terminal in private mode
firefoxterminal
Related Question
- MacOS – How to install firefox using the terminal app
- Is it possible to open a Private Browser window in Safari using Terminal.app
- MacOS – change firefox proxy from terminal
- Terminal – How to Send Args to Firefox When Launching from Terminal
- Firefox – Fix Shift-Cmd-N Custom Shortcut for New Private Window
- Is Firefox Private Network available in iOS
- Unable to Start Firefox Profile Manager on MacOS – Terminal Fix
Best Answer
You can start Firefox directly in a private window, at least two ways, in a Terminal. The first is using the
open
command.In a Terminal, type
man open
and press Enter for a synopsis of theopen
command.open
command they go with and after the--args
argument.Another way is to use the fully qualified pathname of the Firefox executable, e.g.:
See Firefox Command Line Options for additional arguments when starting Firefox from the command line.
It's better to use the
open
command because while the use of the ampersand&
at the end of the command line will allow the prompt to return in the Terminal nonetheless closing the Terminal will also close Firefox, where it doesn't terminate Firefox started with theopen
command when the Terminal is closed.