Sign in to follow this  
Followers 0
LibrarianMark

shutdown command

4 posts in this topic

Hello -

I am using the shutdown command to log off and power off a PC or just reboot it. The help file says to use 9 to "shutdown + power down". What is the difference between shutdown and power down?

And - if I want to reboot, do I just use 2 (reboot) without logging out?

Thanks

Library Mark

Share this post


Link to post
Share on other sites



Hi, LibrarianMark. Shutdown(2) will definitely reboot the machine, but will not force any applications to close. For that, you would combine it with 4 for force, so it would be

Shutdown(6)

As for the others, try them all out and you'll be able to see which one best fits your needs :)


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Hi, LibrarianMark. Shutdown(2) will definitely reboot the machine, but will not force any applications to close. For that, you would combine it with 4 for force, so it would be

Shutdown(6)

As for the others, try them all out and you'll be able to see which one best fits your needs :)

Thanks for the reply. According to the help file, shutdown is 1, not 2. 2 is reboot. Would a 2 attempt to gracefully shut apps down or not?

Share this post


Link to post
Share on other sites

0 = Logoff - Logs off current user (doesn't close programs)

1 = Shutdown - Shutsdown computer (doesn't close programs)

2 = Reboot - Restarts computer (doesn't close programs)

4 = Force - Forces programs to close

8 = Power down - This action physically powers off computer. (Hardware must support this)

16= Force if hung - Will force the action no matter what is stopping computer from shuting down

32= Standby - Sleep Mode

64= Hibernate - For laptops usally (hardware must support this as well)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0