The linked article describes example of how to shutdown a server by anyone from beginners to experts. This is the summary.
Beginners: Login as root and then shutdown.
Intermediates: Login as root, and then check if active TCP connection, services and processes. Shutdown the services and the processes. Shutdown the server.
Experts: Confirm input command several times, and then press enter. Shutdown after doing “sync” x3 and confirm if he miss some operations. Experts are very cautious.
At the end of article, he wrote commands when he shutdown a server.
# ps -ef|more # netstat -an|more # w # free
ps – report a snapshot of the current processes.
-e Select all processes.
-f does full-format listing.
netstat – Display network connections, routing tables, interface statistics, masquerade connections, netlink messages, and multicast memberships
-a print all sockets, including the listening server sockets.
-n shows numerical addresses instead of trying to determine symbolic host, port or user names.
w – Show who is logged on and what they are doing.
free – Display amount of free and used memory in the system