trash-cli
« Back to VersTracker
Description:
Command-line interface to the freedesktop.org trashcan
Type: Formula  |  Latest Version: 0.24.5.26@0  |  Tracked Since: Oct 11, 2025
Links: Homepage  |  formulae.brew.sh
Category: System utilities
Tags: cli trash file-management utility freedesktop
Install: brew install trash-cli
About:
trash-cli is a set of command-line utilities that implements the FreeDesktop.org Trash specification. It provides commands like `trash-put` to move files to the trash, `trash-list` to view trashed files, and `trash-empty` to purge the trash. This tool offers a safer alternative to `rm` by allowing easy recovery of deleted files.
Key Features:
  • CLI commands mirroring standard `rm`, `ls`, and `rm -rf` behavior
  • Compliance with the FreeDesktop.org Trash specification
  • Supports restoring deleted files to their original locations
  • Manages trash quotas and automatic emptying
Use Cases:
  • Safely deleting files from the command line with a 'recycle bin' safety net
  • Automating file cleanup scripts without permanent data loss risks
  • Restoring accidentally deleted files via CLI
Alternatives:
  • rm – Standard Unix remove command; permanently deletes files with no recovery option.
  • gio trash – GLib command-line tool; similar functionality but depends on the GNOME/GLib stack.
Version History
Detected Version Rev Change Commit
Oct 11, 2025 8:59pm 0 VERSION_BUMP ff6208fa
Oct 11, 2025 12:28pm 0 VERSION_BUMP 2aa322d6
Nov 17, 2024 5:22pm 0 VERSION_BUMP aa999901