having just spent the best part of three hours recovering deleted inodes after a very badly placed space, I think its time I set up an alias for rm. Although there are a lot of other users that remotely log into my webserver I think it is probably as much for me as anyone else. What I want to do is move any 'deleted# files to a folder in /var lets call it /var/deleted then I will set up a cron job to clear this every 7 days or so.
I was going to add this to my /etc/profile
alias rm="mv /var/deleted"
but then it occurred to me if I do that, then it will in effect be the user typing
mv /var/deleted foo.txt
which isn`t what I want, it may be because its late but I cant for the life of me think of how to enter it so it works in the way I want to, any help will be much appreciated