This command will open firefox in the private browser mode correctly

firefox -private & 

However this command is only opening firefox in regular browser mode.

firefox -private&

What is the difference between these two commands?

  • 1
    They should behave identically. Did you close the first one, and wait for it to finish completely (so that it's not shown by ps -C firefox), before running the second? – JigglyNaga Jun 27 '16 at 12:24
  • @JigglyNaga I try this method , but it will not work – SuperKrish Jun 27 '16 at 12:29
  • 1
    The interpretation of last space and & is done by the shell, so you should tell us what shell are you using. – Giacomo Catenazzi Jun 27 '16 at 12:42
  • @GiacomoCatenazzi iam using Bash shell – SuperKrish Jun 27 '16 at 12:53
  • cross-posted here: askubuntu.com/questions/791918/… – Justice for Monica Jun 27 '16 at 14:36

The space is actually irrelevant. The shell parses the command in exactly the same way.

The difference is whether Firefox is already running or not. It appears that the -private option only works when starting Firefox. If Firefox is already running, firefox -private opens a non-private window in the existing Firefox instance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.