LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

google-chrome

Google Chrome web browser

TLDR

Start Chrome
$ google-chrome
copy
Open URL
$ google-chrome [https://example.com]
copy
Incognito mode
$ google-chrome --incognito
copy
New window
$ google-chrome --new-window [url]
copy
Headless screenshot
$ google-chrome --headless --screenshot [url]
copy
Save page as PDF
$ google-chrome --headless --print-to-pdf [url]
copy

SYNOPSIS

google-chrome [options] [urls]

DESCRIPTION

google-chrome is Google's Chrome web browser, built on the open-source Chromium project. It provides web browsing with the V8 JavaScript engine, multi-process architecture, and extensive extension support.The command-line interface enables automation, testing, and headless operation. Headless mode is widely used for web scraping, automated testing, and screenshot generation.

PARAMETERS

URLS

URLs to open.
--incognito
Start in incognito mode.
--new-window
Open in new window.
--headless
Run without UI.
--disable-gpu
Disable GPU acceleration.
--screenshot
Take screenshot in headless mode.
--print-to-pdf
Save page as PDF in headless mode.
--no-sandbox
Disable the sandbox security model (needed in some container environments).
--disable-extensions
Start without any installed extensions.
--proxy-server URL
Set a proxy server for the browser.
--window-size W,H
Set the initial window size.
--user-data-dir DIR
Profile directory.

CONFIGURATION

~/.config/google-chrome/

User profile directory containing bookmarks, extensions, preferences, and cached data.

CAVEATS

Resource-intensive. Many flags available. Headless mode for automation.

HISTORY

Google Chrome was released in 2008, quickly becoming the dominant web browser based on the open-source Chromium project.

SEE ALSO

chromium(1), firefox(1)

Copied to clipboard
Kai