What’s wrong with running Linux / UNIX shutdown command on a network?

Q. I was reading some document online and come across statement like — it is a bad idea to run halt / ‘shutdown -h now’ command over ssh/telnet session. What’s wrong with running shutdown on a network?

ADVERTISEMENTS

A. shutdown command arranges for the system to be brought down in a safe way. All logged-in users are notified that the system is going down. In most cases system will also loss power and entirely shutdown. There will be no network access.

If you run this command remotely you will NOT able to turn on server until and unless you have some sort of remote reboot or power on/off capabilities for your server.

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
0 comments… add one

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.