Command-line tool
gtrash
brew/gtrash
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Featureful Trash CLI manager: alternative to rm and trash-cli
At a glance
- Type
- Command-line tool
- Install on
- macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install gtrash
Linux
brew install gtrash
Move files or directories to the trash can
gtrash put path/to/file_or_directory1 path/to/file_or_directory2 ...
List trashed files whose original path matches a `regex`
gtrash find regex
Open an interactive TUI to select and restore trashed files
gtrash r
Related command-line tools
- wifitui
Fast featureful friendly wifi terminal UI - ao
An unofficial, featureful, open source, community-driven, free Microsoft To-Do app. - multicommander
A multi-tabbed file manager and is an alternative to the standard Windows Explorer - vrc-get
Open Source alternative of Command-line client of VRChat Package Manager vrchat vpm vrchat-creator-companion… - trash-cli
Command-line interface to the freedesktop.org trashcan - trash
CLI tool that moves files or folder to the trash - macos-trash
Move files and folders to the trash - osx-trash
Allows trashing of files instead of tempting fate with rm
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents