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.

INSTALL

brew install gomi
copy
nix profile install nixpkgs#gomi
copy

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid