LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

trashy

Rust-based command-line trash utility

TLDR

Move files to the trash
$ trashy [path/to/file1] [path/to/file2]
copy
The same thing, spelled out
$ trashy put [path/to/file]
copy
List what is currently in the trash
$ trashy list
copy
Restore the entries matching a regular expression
$ trashy restore [pattern]
copy
Restore by exact name rather than by pattern
$ trashy restore --match=exact [filename]
copy
Restore everything
$ trashy restore --all
copy
Permanently delete the entries matching a pattern
$ trashy empty [pattern]
copy
Empty the whole trash without prompting
$ trashy empty --all --force
copy

SYNOPSIS

trash [command] [options] [files...]

DESCRIPTION

trashy is a Rust-based command-line trash utility that provides a safe alternative to rm by moving files to the XDG Trash specification-compliant trash can. It offers a modern, fast implementation with intuitive subcommands.The main command trash moves files to trash by default. Files can be listed, restored to their original location, or permanently deleted using the respective subcommands. It integrates with desktop trash locations.

PARAMETERS

put files

Move files to trash (default if no command given)
list
List items in the trash
restore files
Restore files from trash to original location
empty files
Permanently delete files from trash
--all
Apply to all items (with restore or empty)
-f, --force
Skip confirmation prompts
-r, --recursive
Include directories recursively
-v, --verbose
Show verbose output
-h, --help
Display help message

INSTALL

nix profile install nixpkgs#trashy
copy

CAVEATS

The trash command name may conflict with trash-cli if both are installed. Uses the same trash directory as desktop file managers. Disk space is not freed until files are removed from trash with trash empty.

HISTORY

Written in Rust by oberblastmeister as a modern alternative to trash-cli. Designed for speed and ease of use with a simplified command interface compared to trash-cli's separate commands.

SEE ALSO

trash(1), rm(1), gio-trash(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