Comments on: Delete files from command line to Trash in Ubuntu 8.04 /ubuntu/delete-files-from-command-line-to-trash-in-ubuntu-8-04/?utm_source=rss&utm_medium=rss&utm_campaign=delete-files-from-command-line-to-trash-in-ubuntu-8-04 A glimpse at a coder's troubled mind Sun, 07 Apr 2013 02:38:13 +0000 hourly 1 http://wordpress.org/?v=3.6 By: Deleting Command Line rm Moves File to Trash Instead | 3StrandsOfHair /ubuntu/delete-files-from-command-line-to-trash-in-ubuntu-8-04/comment-page-1/#comment-31472 Deleting Command Line rm Moves File to Trash Instead | 3StrandsOfHair Tue, 18 Sep 2012 15:06:14 +0000 /1/delete-files-from-command-line-to-trash-in-ubuntu-8-04/#comment-31472 [...] to prevent further mistake, I want to hedge myself. So I’m trying this technique suggested here to create an alias to rm which moves the files to trash instead. Note that I am executing Unix like [...]

]]>
By: Simple backup script for Ubuntu | Coding My Thoughts /ubuntu/delete-files-from-command-line-to-trash-in-ubuntu-8-04/comment-page-1/#comment-205 Simple backup script for Ubuntu | Coding My Thoughts Thu, 31 Dec 2009 15:16:27 +0000 /1/delete-files-from-command-line-to-trash-in-ubuntu-8-04/#comment-205 [...] to prevent myself from another home fiasco, I’ve decided to build a simple script to backup some of my directories. There are a lot of [...]

]]>
By: Andrea Francia [Visitor] /ubuntu/delete-files-from-command-line-to-trash-in-ubuntu-8-04/comment-page-1/#comment-58 Andrea Francia [Visitor] Sun, 29 Mar 2009 02:54:00 +0000 /1/delete-files-from-command-line-to-trash-in-ubuntu-8-04/#comment-58 You can also use the trash-cli software which provide a command line interface to trashcan. See http://code.google.com/p/trash-cli/

]]>
By: C. James Callaway [Visitor] /ubuntu/delete-files-from-command-line-to-trash-in-ubuntu-8-04/comment-page-1/#comment-57 C. James Callaway [Visitor] Wed, 06 Aug 2008 02:18:00 +0000 /1/delete-files-from-command-line-to-trash-in-ubuntu-8-04/#comment-57 Takes the trash out to the curb. Files in your trashcan older than 14 days are removed. From a crontab, maybe?

#!/bin/bash -norc
# ~/bin/curb_trash
# deletes any trash files over $KEEPDAYS
TRASHDIR=~/.local/share/Trash/files
KEEPDAYS=14
########################################################################
# Cleanup old files
find $TRASHDIR \! -mtime -${KEEPDAYS} -exec rm {} \;

]]>
By: Bakyt Niyazov [Visitor] /ubuntu/delete-files-from-command-line-to-trash-in-ubuntu-8-04/comment-page-1/#comment-56 Bakyt Niyazov [Visitor] Sat, 28 Jun 2008 15:28:00 +0000 /1/delete-files-from-command-line-to-trash-in-ubuntu-8-04/#comment-56 Thank you! One interesting thing.

“del”eted items aren’t visible in the folder :)

If I use console I see the files. But not in D3lphin. very interesting. (tried to chmod 777, just for fun – not visible)

Thanks again!

]]>
By: mariano.iglesias [Member] /ubuntu/delete-files-from-command-line-to-trash-in-ubuntu-8-04/comment-page-1/#comment-55 mariano.iglesias [Member] Wed, 18 Jun 2008 12:16:00 +0000 /1/delete-files-from-command-line-to-trash-in-ubuntu-8-04/#comment-55 @Dennis: You shouldn’t do that. It is not what is expected of POSIX and you’d be altering what is expected from the rm command used by other scripts / tools.

]]>
By: Dennis Hennen [Visitor] /ubuntu/delete-files-from-command-line-to-trash-in-ubuntu-8-04/comment-page-1/#comment-54 Dennis Hennen [Visitor] Wed, 18 Jun 2008 00:13:00 +0000 /1/delete-files-from-command-line-to-trash-in-ubuntu-8-04/#comment-54 You can alias rm to something instead of using del. Since you are using Debian (Ubuntu) you could create a shell script to do this and use a diversion to direct /bin/rm to your shell script.

But most importantly, back up daily.

]]>