← 返回命令列表

Linux command

yazi 命令

文本

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

常用示例

Start file manager

yazi

Open specific directory

yazi [/path/to/directory]

Change directory on exit

ya () { local tmp="$(mktemp -t "yazi-cwd.XXXXX")"; yazi "$@" --cwd-file="$tmp"; cd "$(cat "$tmp")"; rm "$tmp"; }

Start with specific config directory

yazi --config-dir [~/.config/yazi]

Show debug information

yazi --debug

说明

yazi is a blazingly fast terminal file manager written in Rust. It emphasizes performance through async I/O and modern rendering. Navigation uses vim-like keybindings by default. Preview pane shows file contents, images (via terminal graphics), videos, PDFs, and archives. Syntax highlighting applies to code files. Selection works across directories. Multiple files can be yanked and pasted in batch operations. Cut/copy/paste mirrors GUI file manager behavior. Tabs enable multiple directory views. Split panes compare directories side by side. Marks bookmark frequently accessed locations. Plugins extend functionality through Lua scripting. Themes customize colors and icons. Configuration covers keybindings, sorting, and preview behavior. Image preview works in terminals supporting graphics protocols (Kitty, iTerm2, Sixel). Fallback uses ASCII art.

参数

--cwd-file _FILE_
Write CWD to file on exit.
--chooser-file _FILE_
Write selected files to file.
--config-dir _DIR_
Custom config directory.
--clear-cache
Clear thumbnail cache.
--debug
Print debug information for bug reports.
--version
Show version.
--help
Show help.

FAQ

What is the yazi command used for?

yazi is a blazingly fast terminal file manager written in Rust. It emphasizes performance through async I/O and modern rendering. Navigation uses vim-like keybindings by default. Preview pane shows file contents, images (via terminal graphics), videos, PDFs, and archives. Syntax highlighting applies to code files. Selection works across directories. Multiple files can be yanked and pasted in batch operations. Cut/copy/paste mirrors GUI file manager behavior. Tabs enable multiple directory views. Split panes compare directories side by side. Marks bookmark frequently accessed locations. Plugins extend functionality through Lua scripting. Themes customize colors and icons. Configuration covers keybindings, sorting, and preview behavior. Image preview works in terminals supporting graphics protocols (Kitty, iTerm2, Sixel). Fallback uses ASCII art.

How do I run a basic yazi example?

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

What does --cwd-file _FILE_ do in yazi?

Write CWD to file on exit.