Project

can_cli

0.0
No release in over a year
A command-line trashcan interface implementing the FreeDesktop trash specification as a drop-in replacement for rm.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.0
 Project Readme

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