1

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?

6
  • 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? Commented Jun 27, 2016 at 12:24
  • @JigglyNaga I try this method , but it will not work Commented Jun 27, 2016 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. Commented Jun 27, 2016 at 12:42
  • @GiacomoCatenazzi iam using Bash shell Commented Jun 27, 2016 at 12:53
  • cross-posted here: askubuntu.com/questions/791918/… Commented Jun 27, 2016 at 14:36

1 Answer 1

2

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.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.