← 返回命令列表

Linux command

s 命令

文本

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

常用示例

Search the web

s [query]

Search using a specific provider

s -p google [query]

Search Amazon

s -p amazon [wireless keyboard]

Search providers by tag

s -t video [query]

List all available

s -l

Output the search URL

s -o [query]

Search using a specific browser

s -b "[firefox --private-window]" [query]

Start the web server

s -s --port [8080]

说明

s is a command-line tool for performing web searches directly from the terminal. It opens search results in your default browser, supporting over 100 providers including Google, DuckDuckGo, Wikipedia, YouTube, GitHub, Amazon, Reddit, and Stack Overflow. The tool supports partial name matching for providers, allowing shortcuts like s -p g query for Google. Providers can be filtered by tags such as video, images, or code to search multiple related sites at once. Configuration is stored in ~/.config/s/config using UCL format. You can set default providers, blacklist/whitelist providers, define custom providers, and configure browser preferences.

参数

-p, --provider _name_
Specify the search provider (default: presearch). Supports partial matching.
-t, --tag _tag_
Search using providers filtered by tag (e.g., video, images, code)
-b, --binary _path_
Browser or application to open search results
-o, --output
Output-only mode; prints the URL without launching a browser
-l, --list-providers
Display all available search providers
--list-tags
Display available tag categories
-s, --server
Launch the web server interface for browser-based searching
--port _number_
Server port number (default: 8080)
-c, --cert _file_
Path to TLS certificate file for server mode
-k, --key _file_
Path to TLS key file for server mode
-v, --verbose
Enable verbose output
--completion _shell_
Generate shell completion scripts (bash, zsh, fish)
--version
Display version information

FAQ

What is the s command used for?

s is a command-line tool for performing web searches directly from the terminal. It opens search results in your default browser, supporting over 100 providers including Google, DuckDuckGo, Wikipedia, YouTube, GitHub, Amazon, Reddit, and Stack Overflow. The tool supports partial name matching for providers, allowing shortcuts like s -p g query for Google. Providers can be filtered by tags such as video, images, or code to search multiple related sites at once. Configuration is stored in ~/.config/s/config using UCL format. You can set default providers, blacklist/whitelist providers, define custom providers, and configure browser preferences.

How do I run a basic s example?

Run `s [query]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -p, --provider _name_ do in s?

Specify the search provider (default: presearch). Supports partial matching.