Can anyone help me with my issue in ubuntu 12.04, i'm new to linux and just trying to play around with it.
I made a rm.sh basically it will move files to a trash directory instead of delete it.
and i also know
will not able to execute rm.sh after reboot.
therefore i made another shell script(modify.sh) and saved under /etc/rc2.d, was hoping every time it reboots and will automatically alias rm.sh. But after i rebooted and it still not working, then i deleted modify.sh from /etc/rc2.d
and here is the new issue, now whenever i tried to do
it displays
Code:
root@j-desktop:/bin# alias rm='rm.sh
> _
and alias is no longer working anymore. what is the problem and how to resolve it?
code for modify.sh is:
Code:
alias rm='/bin/rm.sh
any help would be appreciated.
Thanks