← 返回命令列表

Linux command

surfraw 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Search Google

surfraw google [search terms]

Search Wikipedia

surfraw wikipedia [article]

Search DuckDuckGo

surfraw duckduckgo [query]

List available elvi

surfraw -elvi

Print URL only

surfraw -p google [query]

Search with browser

surfraw -browser=[firefox] google [query]

Search YouTube

surfraw youtube [video]

说明

surfraw (Shell Users' Revolutionary Front Rage Against the Web) provides a command-line interface for searching websites and web services. It uses a plugin system called "elvi" where each elvi defines the search interface for a specific website such as Google, Wikipedia, DuckDuckGo, or GitHub. The tool constructs search URLs from command-line arguments and opens them in a configured web browser. Print mode outputs the constructed URL instead of opening a browser, enabling piping to other commands or scripts. Both graphical and text-mode browsers are supported. Custom elvi can be written as simple shell scripts to add support for any website with a query-based URL pattern. The tool ships with dozens of pre-configured elvi for popular search engines, reference sites, and package repositories.

参数

-elvi
List search engines.
-p, --print
Print URL only.
-browser _BROWSER_
Use specific browser.
-g, --graphical
Use graphical browser.
-t, --text
Use text browser.

FAQ

What is the surfraw command used for?

surfraw (Shell Users' Revolutionary Front Rage Against the Web) provides a command-line interface for searching websites and web services. It uses a plugin system called "elvi" where each elvi defines the search interface for a specific website such as Google, Wikipedia, DuckDuckGo, or GitHub. The tool constructs search URLs from command-line arguments and opens them in a configured web browser. Print mode outputs the constructed URL instead of opening a browser, enabling piping to other commands or scripts. Both graphical and text-mode browsers are supported. Custom elvi can be written as simple shell scripts to add support for any website with a query-based URL pattern. The tool ships with dozens of pre-configured elvi for popular search engines, reference sites, and package repositories.

How do I run a basic surfraw example?

Run `surfraw google [search terms]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -elvi do in surfraw?

List search engines.