For reboot I use sudo reboot
For shutdown I've been taught to use sudo shutdown -h now but I don't know why I was taught -h vs -P so I tried using eg shutdown to find out what most people use. Unfortunately it doesn't exist. Maybe someone more knowledgeable than I can write an example for it.
For reboot I use
sudo reboot
For shutdown I've been taught to usesudo shutdown -h now
but I don't know why I was taught-h
vs-P
so I tried usingeg shutdown
to find out what most people use. Unfortunately it doesn't exist. Maybe someone more knowledgeable than I can write an example for it.