Linux command
chromium-browser 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Open URL
chromium-browser [https://example.com]
Open in incognito mode
chromium-browser --incognito
Open with remote debugging
chromium-browser --remote-debugging-port=[9222]
Disable GPU acceleration
chromium-browser --disable-gpu
Start headless
chromium-browser --headless --screenshot [https://example.com]
Use specific profile
chromium-browser --user-data-dir=[/path/to/profile]
说明
chromium-browser is the open-source web browser project that forms the foundation of Google Chrome, Microsoft Edge, and many other browsers. It provides a full-featured browsing experience with support for modern web standards, extensions, and developer tools. The browser supports an extensive set of command-line switches for customization, debugging, and automation. Headless mode enables server-side rendering, automated testing, and screenshot/PDF generation without a graphical display. Remote debugging via DevTools Protocol allows external tools to inspect and control browser sessions. Chromium can be configured to use specific user profiles, proxy servers, and experimental features. It is commonly used in CI/CD pipelines, web scraping, and automated testing environments alongside tools like Puppeteer and Playwright.
参数
- --incognito
- Start in incognito mode
- --headless
- Run without UI
- --disable-gpu
- Disable GPU hardware acceleration
- --remote-debugging-port _port_
- Enable remote debugging
- --user-data-dir _dir_
- Custom profile directory
- --no-sandbox
- Disable sandbox (for containers)
- --disable-extensions
- Disable extensions
- --start-maximized
- Start maximized
- --kiosk
- Start in kiosk mode
- --proxy-server _server_
- Use proxy server
- --enable-features _features_
- Enable experimental features
- --disable-features _features_
- Disable features
- --screenshot _file_
- Take screenshot (headless)
- --print-to-pdf _file_
- Print page to PDF (headless)
FAQ
What is the chromium-browser command used for?
chromium-browser is the open-source web browser project that forms the foundation of Google Chrome, Microsoft Edge, and many other browsers. It provides a full-featured browsing experience with support for modern web standards, extensions, and developer tools. The browser supports an extensive set of command-line switches for customization, debugging, and automation. Headless mode enables server-side rendering, automated testing, and screenshot/PDF generation without a graphical display. Remote debugging via DevTools Protocol allows external tools to inspect and control browser sessions. Chromium can be configured to use specific user profiles, proxy servers, and experimental features. It is commonly used in CI/CD pipelines, web scraping, and automated testing environments alongside tools like Puppeteer and Playwright.
How do I run a basic chromium-browser example?
Run `chromium-browser [https://example.com]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --incognito do in chromium-browser?
Start in incognito mode