← 返回命令列表

Linux command

macchina 命令

文本

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

常用示例

Display system information

macchina

Use a specific theme

macchina --theme [Hydrogen]

Show only specific readouts

macchina --show [host,kernel,uptime]

Show memory and disk usage as percentages

macchina -m -p

Display full, un-truncated kernel and uptime strings

macchina --long-kernel --long-uptime

List available themes

macchina --list-themes

Diagnose configuration issues

macchina --doctor

说明

macchina is a system information fetcher written in Rust. It displays system details with customizable ASCII art and theming, similar to neofetch but with a focus on performance. Information includes: host, kernel, OS, uptime, packages, shell, terminal, CPU, GPU, memory, disk usage, battery, and more. Each field is called a "readout" and can be individually shown or hidden. Themes control colors, formatting, and layout. Built-in themes range from minimal to elaborate. Custom themes can be created in TOML format. ASCII art can display distribution logos or custom artwork. The art adapts to terminal colors defined by the theme and is configured via the active theme rather than a dedicated CLI flag. Configuration is stored in ~/.config/macchina/macchina.toml. It defines default theme, visible readouts, custom colors, and ASCII settings. Performance is a key feature - macchina starts quickly and uses minimal resources compared to similar tools.

参数

-t, --theme _NAME_
Use the named theme.
-o, --show _FIELDS_
Show only the listed readouts (comma-separated).
-c, --config _FILE_
Use an alternate configuration file.
-l, --list-themes
List available themes and exit.
-d, --doctor
Check configuration for issues.
-m, --memory-percentage
Display memory usage as a percentage.
-p, --disk-space-percentage
Display disk-space usage as a percentage.
-D, --disks
Show one line per detected disk.
-C, --physical-cores
Count physical CPU cores instead of logical ones.
-U, --long-uptime
Render uptime in a long, human-readable form.
-K, --long-kernel
Render the full kernel version string without truncation.
-S, --long-shell
Print the absolute path of the user shell, not just its name.
-s, --current-shell
Report the shell of the current process instead of the login shell.
-i, --interface _NAME_
Report the address of a specific network interface.
--ascii-artists
Show the credits for the built-in ASCII art.
-v, --version
Show version.
-h, --help
Show help.

FAQ

What is the macchina command used for?

macchina is a system information fetcher written in Rust. It displays system details with customizable ASCII art and theming, similar to neofetch but with a focus on performance. Information includes: host, kernel, OS, uptime, packages, shell, terminal, CPU, GPU, memory, disk usage, battery, and more. Each field is called a "readout" and can be individually shown or hidden. Themes control colors, formatting, and layout. Built-in themes range from minimal to elaborate. Custom themes can be created in TOML format. ASCII art can display distribution logos or custom artwork. The art adapts to terminal colors defined by the theme and is configured via the active theme rather than a dedicated CLI flag. Configuration is stored in ~/.config/macchina/macchina.toml. It defines default theme, visible readouts, custom colors, and ASCII settings. Performance is a key feature - macchina starts quickly and uses minimal resources compared to similar tools.

How do I run a basic macchina example?

Run `macchina` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -t, --theme _NAME_ do in macchina?

Use the named theme.