← 返回命令列表

Linux command

gomi 命令

文件

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

常用示例

Move files to trash

gomi [file1] [file2]

Interactively restore a file from trash

gomi -r

List trash contents

gomi -l

Empty the trash permanently

gomi --empty

说明

gomi is a trash CLI written in Go that moves files to a trash directory instead of permanently deleting them. It provides an undo mechanism for file deletion with an interactive fuzzy-finder restore interface powered by fzf-style selection. The tool uses the XDG Trash specification on Linux and integrates with system trash on macOS. Files can be restored to their original location through the interactive restore interface.

参数

-r, --restore
Interactively select and restore files from trash.
-l, --list
List all files currently in the trash.
--empty
Permanently delete all files in the trash.
--help
Display help information.
--version
Display version information.

FAQ

What is the gomi command used for?

gomi is a trash CLI written in Go that moves files to a trash directory instead of permanently deleting them. It provides an undo mechanism for file deletion with an interactive fuzzy-finder restore interface powered by fzf-style selection. The tool uses the XDG Trash specification on Linux and integrates with system trash on macOS. Files can be restored to their original location through the interactive restore interface.

How do I run a basic gomi example?

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

What does -r, --restore do in gomi?

Interactively select and restore files from trash.