On Sunday 02 January 2005 09:32, Ulrich Fürst wrote: > joy merwin monteiro <[EMAIL PROTECTED]> wrote: > > its really a trivial thing..... just alias rm to rm -i in your > > .bashrc > > or you can put the following into your .bashrc > alias rm='mv --target-directory=/root/Desktop/Trash $1 '
I dont have the origanal message anymore to check, but i thought the thread was about a "user" deleting files, if that is correct then the above will not work as a normal user cannot write to /root (s) directory. It is a good idea to do the same for root and users tho'. On another note many distro's dont have a trash directory, so the need to create one arises as well. > Ulrich > - > To unsubscribe from this list: send the line "unsubscribe linux-newbie" in > the body of a message to [EMAIL PROTECTED] > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.linux-learn.org/faqs -- If the Linux community is a bunch of thieves because they try to imitate windows programs, then the Windows community is built on organized crime. Regards Richard [EMAIL PROTECTED] http://people.zeelandnet.nl/pa3gcu/ - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs