In UNIX the following commands are present:
halt --poweroff //does poweroff
halt --reboot //does reboot
poweroff --reboot //does reboot
reboot --poweroff //does poweroff
However the following three simple commands do the same job
halt
poweroff
reboot
So what is the necessity of such commands