I have a folder called - bin , then I remove it by rm bin , re-create it and when I want to remove it again by rm bin the shell promts -
/bin/mv: cannot move `bin/' to `/u/y2010/zarnihu/../TrashCan/zarnihu/bin': File exists
seems it not let remove it cause it exist at TrashCan already ...
I work with version - 2.6.18-92.1.18.el5xen
edit - alias :
>> alias
- ls
= (ls -a)
cp (cp -i)
l. ls -d .* --color=tty
ll ls -l --color=tty
ls ls --color=tty
mc source /usr/share/mc/bin/mc-wrapper.csh
moonshine rdesktop -g 1024x768 moonshine &
mv (mv -i)
passwd (links https://netsrv.cs.biu.ac.il/cgi-bin/change-pass-en.cgi)
pine (pine -i)
pwd echo $cwd
rm (/bin/mv -f !* /u/y2010/zarnihu/../TrashCan/zarnihu)
unrm cd $TRASH_CAN && /bin/mv -f !* $owd; cd -
unsetdisplay echo remove $DISPLAY | xauth
vi vim
alias?--backupto themvoptions, however that won't makeunrmwork twice in reverse.rmalias has a very strange path in it:../TrashCan/zarnihu. That's going into a TrashCan directory that is a sibling to your home directory. Additionally, theunrmalias right below uses the environment variable$TRASH_CAN. Can you tell us the result ofecho $TRASH_CANand alsocd ~; pwd; cd /u/y2010/zarnihu/../TrashCan/zarnihu; ls -al. I suspect that either your TrashCan directory is supposed to be under your home dir, or that the permissions are not set correctly in the TrashCan directory.