Whenever I send the command to turn off or restart my Debian servers, my shell is left hanging and unresponsive (can't type any commands).
Performing the same action in Ubuntu results in the session gracefully closing so I don't have a tied-up terminal left hanging there. Is there a package I need to install or a configuration change to be made so that I can get this same behaviour on Debian?
sudo shutdown -h now
(for poweroff), and/orsudo reboot
(for restart)?