Google Chrome is a popular web browser used by millions of users. Google Chrome can be started in different ways where using the Start Menu or Desktop Shortcut is the most used and easiest way. But we can start Google Chrome via the command line interface by calling it binary. In this tutorial, we examine how to start Google Chrome via command line interface for different operating systems like Windows and Linux.
Open Google Chrome Using Windows Command Line
Google Chrome can be opened by using the MS-DOS (Command Prompt) or PowerShell command line interface in Windows. First We should open the MS-DOS (Command Prompt) using the Start Menu or other ways. Just click to the Start Menu icon and then type
Command Prompt which lists the Command Prompt.
Then In the command prompt type
start chrome like below and press enter.
> start chrome
Start Chrome with Administrator Privileges
By default, chrome is opened with the current user privileges. But we may need to open Chrome with different privileges. We can open Chrome with Administrator privileges like below. The
runas command is used to specify the user we want to open Google Chrome. In the following example, we start Google Chrome with Administrator privileges.
For 32-Bit Chrome on 64-Bit Windows:
> runas /user:administrator "C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe"
For 64-Bit Chrome on 64-Bit Windows:
> runas /user:administrator "C:\Program Files\Google\Chrome\Application\Chrome.exe"
This command prompt for the Administrator password to enter.
Enter the password for administrator:
Start Chrome Incognito Mode
Google Chrome provides the Incognito mode in order to use it without storing any user-related data. We can start Google Chrome in incognito mode using the command line interface.
> start chrome /incognito
Start Chrome with the Specified URL
We can start chrome and navigate to a specific URL. We just need to provide a URL to the chrome command. In the following example, we start Google Chrome and navigate to https://www.wisetut.com .
> start chrome https://www.wisetut.com