Skip to main content
Yazi provides powerful file operation commands with a Vim-like yank-paste model.

Opening Files

Yazi will open files using your system’s default applications, or you can configure custom openers in yazi.toml.

Creating Files and Directories

Press a to create new files or directories:
1

Press `a`

Activate the create command
2

Enter name

Type the file or directory name
3

Create directory

End the name with / to create a directory instead of a file
Examples:

Yank (Copy) and Cut

Yazi uses a yank-paste model similar to Vim:

Yank Commands

1

Select files

Select one or more files (see Selection)
2

Yank

Press y to copy files to the yank buffer
3

Navigate

Navigate to the destination directory
4

Paste

Press p to paste the files

Paste Operations

Using P (paste with force) will overwrite files with the same name at the destination without confirmation.
Create links to yanked files: Link workflow:

Deleting Files

Yazi supports both trash and permanent deletion:
Permanent deletion (D) bypasses the trash bin and cannot be recovered. Use with caution!

Renaming Files

Press r to rename files:
The rename --cursor=before_ext command positions the cursor intelligently:
  • For document.txt, cursor appears after “document” and before “.txt”
  • For files without extensions, cursor appears at the end
Yazi also supports bulk renaming through external editors. Check the plugins documentation for advanced renaming options.

Copy Path/Name

Copy file information to the clipboard: Example output:

Shell Commands

Execute shell commands on selected files:
Non-blocking shell execution. Yazi continues running while the command executes.

Hidden Files

Toggle visibility of hidden files:

File Selection Preview

When files are selected or in the yank buffer, Yazi displays:
  • Yellow highlight: Files in the yank buffer (copied)
  • Red highlight: Files in the cut buffer (cut for moving)
  • Visual selection: Files selected in visual mode