← 返回命令列表

Linux command

arch-wiki 命令

文本

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

常用示例

Search the Arch Wiki

arch-wiki [search_term]

Search and open result in browser

arch-wiki -o [search_term]

Search in a specific language

arch-wiki -l [de] [search_term]

Show raw search results without formatting

arch-wiki -r [search_term]

Limit number of results

arch-wiki -n [10] [search_term]

说明

arch-wiki is a command-line tool for searching the Arch Linux Wiki directly from the terminal. It queries the wiki's API and presents results with titles and URLs, enabling quick access to documentation without leaving the command line. The Arch Wiki is renowned for its comprehensive, well-maintained documentation covering not just Arch Linux but general Linux topics. This tool provides rapid access to that knowledge base during system administration and troubleshooting tasks. Results are displayed with syntax highlighting by default, making them easy to scan. The -o flag opens the top result immediately, useful when you know exactly what you're looking for.

参数

-o, --open
Open the first result in the default web browser.
-l, --lang _code_
Search in a specific language (e.g., de, es, fr, ja).
-n, --number _count_
Limit the number of results returned.
-r, --raw
Output raw results without color formatting.
-h, --help
Display help information.
-v, --version
Display version information.

FAQ

What is the arch-wiki command used for?

arch-wiki is a command-line tool for searching the Arch Linux Wiki directly from the terminal. It queries the wiki's API and presents results with titles and URLs, enabling quick access to documentation without leaving the command line. The Arch Wiki is renowned for its comprehensive, well-maintained documentation covering not just Arch Linux but general Linux topics. This tool provides rapid access to that knowledge base during system administration and troubleshooting tasks. Results are displayed with syntax highlighting by default, making them easy to scan. The -o flag opens the top result immediately, useful when you know exactly what you're looking for.

How do I run a basic arch-wiki example?

Run `arch-wiki [search_term]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -o, --open do in arch-wiki?

Open the first result in the default web browser.