LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gomi

Trash CLI tool written in Go

TLDR

Move files to trash
$ gomi [file1] [file2]
copy
Interactively restore a file from trash
$ gomi -r
copy
List trash contents
$ gomi -l
copy
Empty the trash permanently
$ gomi --empty
copy

SYNOPSIS

gomi [options] files

DESCRIPTION

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.

PARAMETERS

FILES

Files or directories to move to trash.
-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.

CAVEATS

Trashed files still consume disk space until the trash is emptied. Behavior differs from `rm` which permanently deletes files. Cross-filesystem trashing may copy files instead of moving them. Trash should be emptied periodically to reclaim space.

SEE ALSO

rm(1), trash-cli(1)

Copied to clipboard
Kai