Question: Recently one of my reader asked me what is the correct way to shutdwon the Linux server.
Answer: I suggest to shut the system down using “shutdown -h now” command. This will shut down the system to a halt and mostly used for a remote shutdown. Shutdown with the parameter -h is to halt, and shutdown with the parameter -r is to reboot.
Shutdown Linux Server
If you want to properly shutdown Linux server follow the below command.
# shutdown -h now
This command will shutdown then halt the computer.
# shutdown -t3 -h now
The option “-t3” tells the shutdown command to wait 3 seconds before it starts killing processes.