From Free Software Directory
Jump to: navigation, search


Trashcan script

'cn' is a counterpart for rm, which moves files into the trashcan. It is meant to be used instead of rm, such that one's fingers get into "good habits", and thus avoid accidentally rm-ing the wrong thing. 'cn' will confirm once, by default (even for directories), but can be made silent. It attempts to autodetect the location of the trash if KDE/GNOME are running. It can also handles perverse cases, such as trashing a file which is already in the trash, or deleting multiple files with the same name.



Verified by

Verified on


Verified by

Deborah Nicholson

Verified on

7 July 2008

Leaders and contributors

Richard Neill Maintainer

Resources and communication

AudienceResource typeURI
Bug Tracking,Developer,Help,

Software prerequisites

Required to useps
Required to usegrep
Required to usemv
Required to usebash


Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.