A trash can already exists in your home directory:  /home/yourname/.Trash/<br><br>I would suggest making a simple shell script that moves everything here instead of deleting it, so you don't have to put the destination in your commands. Since these trash cans are user specific, it must be set to include the home directory.
<br>Thus put a file in your /usr/local/bin called 'del' or something and chmod it with: chmod 755 del<br><br>#!/bin/sh<br>mv $1 /home/`whoami`/.Trash/<br><br>Rutger<br><br><br><div><span class="gmail_quote">On 1/10/07, 
<b class="gmail_sendername">Jeffrey F. Bloss</b> <<a href="mailto:jbloss@tampabay.rr.com">jbloss@tampabay.rr.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Bram Kuijper wrote:<br><br>> Hi all,<br>><br>> I know this is a beginner question, but is there any equivalent to<br>> the rm command so that files are not getting deleted, but just moved<br>> to a thrash can?
<br>><br>> Searching for it in Google helped me find a number of shell scripts<br>> more or less achieving this, but I wonder if there is any package<br>> that does the same?<br><br>The trashcan is just another directory. No need for a fancy shell script
<br>I'd think, just replace 'rm' with 'mv' on the command line and append<br>the destination. Something like 'mv <files> ~/.Trash' should suffice.<br><br>--<br>     _?_      Outside of a dog, a book is a man's best friend.
<br>    (o o)         Inside of a dog, it's too dark to read.<br>-oOO-(_)--OOo-------------------------------[ Groucho Marx ]--<br>    grok!              Registered Linux user #402208<br><br><br>--<br>ubuntu-users mailing list
<br><a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
</a><br><br><br><br></blockquote></div><br>