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
shutdown -h now
andshutdown -r now
as well. – KevinO Jun 22 '17 at 15:03