I want to do hard restart and hard shutdown(immediate shutdown and restart) through terminal.
Is this possible through terminal commands?
And note that no answers in this How do I shut down or reboot from a terminal? question does immediate shutdown or restart. So it's not a dupe.