trash-cli 0.12.9.14

A command-line interface trashcan freedesktop.org specs compliant.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!

What's new in trash-cli 0.2.1.dev-r184:

  • Minor feature enhancements.
Read full changelog
send us
an update
LICENSE TYPE:
GPL (GNU General Public License) 
USER RATING:
2.5/5 13
DEVELOPED BY:
Francia Andrea
HOMEPAGE:
www.andreafrancia.it
CATEGORY:
ROOT \ System \ Filesystems
trash-cli is a command-line interface trashcan freedesktop.org specs compliant. For each trashed file remember name, original path, date of deletion, and permissions. Interoperate with KDE Trash.

Usage

To remove move foo in the trash can, use

$ trash foo

To list all the contents of the trashcan

$ list-trash
2007-08-30 12:36:00 /home/andrea/foo
2007-08-30 12:39:41 /home/andrea/bar
2007-08-30 12:39:41 /home/andrea/bar2
2007-08-30 12:39:41 /home/andrea/foo

Search for a specific file in the trashcan

$ list-trash | grep foo
2007-08-30 12:36:00 /home/andrea/foo
2007-08-30 12:39:41 /home/andrea/foo


To restore a trashed file

$ restore-trash
0 2007-08-30 12:36:00 /home/andrea/foo
1 2007-08-30 12:39:41 /home/andrea/bar
2 2007-08-30 12:39:41 /home/andrea/bar2
3 2007-08-30 12:39:41 /home/andrea/foo2
4 2007-08-30 12:39:41 /home/andrea/foo
What file to restore [0..4]: 4
$ ls foo
foo


To remove all trashed files

$ empty-trash

To remove files that have been in the trash more than a given number of days

$ empty-trash < days >

For example

$ date
Tue Feb 19 20:26:52 CET 2008
$ list-trash
2008-02-19 20:11:34 /home/einar/today
2008-02-18 20:11:34 /home/einar/yesterday
2008-02-10 20:11:34 /home/einar/last_week
$ empty-trash 7
$ list-trash
2008-02-19 20:11:34 /home/einar/today
2008-02-18 20:11:34 /home/einar/yesterday
$ empty-trash 1
$ list-trash
2008-02-19 20:11:34 /home/einar/today

Last updated on September 17th, 2012

#FreeDesktop.org trashcan #trash specification #specs compliant #FreeDesktop.org #trashcan #trash #specification

Add your review!

SUBMIT