Solved

Unix Shutdown

Posted on 2000-03-01
2
430 Views
Last Modified: 2010-04-21
From a complete Unix novice - What's the correct procedure for powering down a Unix server?
0
Comment
Question by:grahamsilversides
2 Comments
 
LVL 3

Accepted Solution

by:
RobWMartin earned 50 total points
ID: 2573386
If your system has it, use the halt command.

The traditional command is

shutdown -h +1 "System is going down!"

where the +1 gives everyone 1 minute after the warning message before shutting down.  The -h says halt the system (i.e. don't reboot). The last arg is the warning message given to users.  If you want it to go down now use the word "now" in place of +1.

0
 

Author Comment

by:grahamsilversides
ID: 2573422
Thanks!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now