Common commands for the nano editor, where ^ represents Ctrl and M represents Alt.
When shutting down Linux, use the who command to check online status, netstat -a to check network connections, and ps -aux to view background processes.
Before shutting down, use the sync command to write data to disk. Use the shutdown command to power off, which has the following common options:
-r (restart) + time/now (indicates how long before restart)
-h (halt) + time/now (indicates how long before shutdown)
shutdown -c cancels the shutdown/restart command.
-k (warn other users of shutdown without actually shutting down) + time/now (indicates how long before warning) “warning message”
Additionally, there are reboot command for restarting, halt for shutting down but keeping the display, and poweroff for a complete shutdown.