Linux command
chromium 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Open Chromium browser
chromium
Open a URL in a new window
chromium --new-window [https://example.com]
Open in incognito mode
chromium --incognito
Open URL in application mode (minimal UI)
chromium --app=[https://example.com]
Use a specific user data directory
chromium --user-data-dir=[path/to/directory]
Use a specific proxy server
chromium --proxy-server=[host:port]
Run in headless mode
chromium --headless --dump-dom [https://example.com]
Open in kiosk mode (fullscreen)
chromium --kiosk [https://example.com]
说明
Chromium is the open-source web browser project that forms the basis for Google Chrome. It provides a fast, secure browsing experience with support for modern web standards. The browser supports hundreds of command-line flags for customization, debugging, and automation. Most flags are undocumented and experimental; the commonly used ones are relatively stable. Configuration data is stored in ~/.config/chromium and cache in ~/.cache/chromium by default on Linux.
参数
- --user-data-dir=_DIR_
- Use specified directory for user data (profile). Required for running multiple instances
- --incognito
- Open in incognito (private browsing) mode
- --new-window
- Open URLs in a new window
- --app=_URL_
- Run URL in application mode with minimal browser UI
- --proxy-server=_host:port_
- Specify HTTP/SOCKS proxy server
- --headless
- Run without graphical user interface
- --disable-gpu
- Disable GPU hardware acceleration
- --no-first-run
- Skip first-run welcome dialogs
- --kiosk
- Run in full-screen kiosk mode
- --remote-debugging-port=_port_
- Enable remote debugging on specified port
FAQ
What is the chromium command used for?
Chromium is the open-source web browser project that forms the basis for Google Chrome. It provides a fast, secure browsing experience with support for modern web standards. The browser supports hundreds of command-line flags for customization, debugging, and automation. Most flags are undocumented and experimental; the commonly used ones are relatively stable. Configuration data is stored in ~/.config/chromium and cache in ~/.cache/chromium by default on Linux.
How do I run a basic chromium example?
Run `chromium` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --user-data-dir=_DIR_ do in chromium?
Use specified directory for user data (profile). Required for running multiple instances