can

A command line implementation of the Freedesktop XDG trash specification.

Can seeks to follow the behavior of the GNOME Files (Nautilus) trash implementation.

Installation

Can is available as a Gem and as an AUR package.

Install Gem: gem install can

Install on AUR: paru -S can

Usage

Does not cover all options

Trash files : can foo.txt bar.txt

Trash directories and files : can -r foo.txt bar.d

List files in trashcan : can -l

List files in trashcan that match a regex : can -l '^foo'

View trashinfo of files : can -n foo.txt bar.d

Untrash files : can -u foo.txt bar.d

Empty files from trashcan** : can -e foo.txt bar.d

Empty entire trashcan : can -e