Part One of Linux Learning – Nano Editor and Proper Shutdown Procedures

Part One of Linux Learning - Nano Editor and Proper Shutdown Procedures

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”

Part One of Linux Learning - Nano Editor and Proper Shutdown Procedures

Additionally, there are reboot command for restarting, halt for shutting down but keeping the display, and poweroff for a complete shutdown.

Part One of Linux Learning - Nano Editor and Proper Shutdown Procedures

Leave a Comment