Documentation

trashy – command-line system trash manager

trashy is a command-line trash manager that moves files and directories into the system trash rather than immediately deleting them. It provides a recoverable alternative to rm, with commands for inspecting, restoring and permanently removing discarded items.

The application accepts paths directly or through its put subcommand. Directories are handled recursively by default, making it possible to discard complete directory trees without specifying additional options.

trashy also provides facilities for managing existing trash contents. Users can list deleted files, select items through regular expressions and restore or empty matching entries. Alternative matching behaviour can be selected when exact or more restricted searches are required.

The application’s output includes coloured paths and tabular displays. It can also be combined with utilities such as fzf for interactive selection of files to restore or permanently remove.

This is free and open source software.

Key Features

  • Move files and directories into the system trash.
  • Accept file paths directly without requiring an explicit subcommand.
  • Provide put as a separate trashing subcommand.
  • Handle directory trees recursively by default.
  • List discarded items using the list subcommand.
  • Restore files and directories from the trash.
  • Permanently remove selected trash contents using empty.
  • Restore all discarded items using –all.
  • Empty all trash contents using –all.
  • Select items for restoration using regular expressions.
  • Choose alternative matching modes using -m.
  • Display coloured file paths.
  • Present trash information in formatted tables.
  • Support integration with fzf for interactive selection.
  • Provide options for controlling confirmation and matching behaviour.
  • Cross-platform support – runs on Linux and Windows.

Website: github.com/oberblastmeister/trashy
Support:
Developer: Brian Shu
License: MIT License or Apache License 2.0

trashy options

trashy is written in Rust. Learn Rust with our recommended free books and free tutorials.

Alternatives to rm


Explore Linux

Best Free and Open Source Software - A huge collection of recommended free and open source software covering every major category.
In-depth Linux Software Reviews - Detailed assessments of Linux software covering features, usability and overall quality.

The Big List of Active Linux Distros - An extensive collection of actively developed Linux distributions.
Open Source Alternatives - Alternatives to software and services from Google, Microsoft, Apple, Adobe, IBM, Autodesk, Oracle and others.
Essential Linux System Tools - Indispensable utilities for monitoring, maintaining and managing Linux systems.
Linux Productivity Tools - Useful utilities for improving productivity and streamlining everyday tasks.
Alternatives to Popular CLI Tools - Modern alternatives to familiar command-line utilities supplied with Linux systems.
Awesome Free Linux Game Tools - Tools, utilities and companion software that improve gaming on Linux.
Machine Learning on Linux - Machine learning and deep learning software, self-hosted applications and practical tools.
Saving Money with Linux - Practical ways to reduce electricity consumption and lower computing costs with Linux.
Linux Candy - Fun, entertaining and sometimes delightfully quirky software from the lighter side of Linux.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted