Shutdown For Mac



  1. Auto Shutdown For Mac
  2. Shutdown Command For Mac
  3. Force Shutdown For Mac

In Apple macOS the computer can be shut down by choosing 'Shut Down' from the Apple Menu or by pressing the power key to bring up the power management dialog box and selecting button 'Shut down'. An administrator may also use the Unix shutdown command as well. It can also be shut down by pressing Alt+Command+Eject optical disc on optical drive but this will not prompt the user. Shutdown Timer makes these things the easiest tasks in the world. With Shutdown Timer you can set your Mac to automatically sleep, shutdown or alert you after a set period of time and you can also prevent the OS from sleeping before Shutdown Timer ran down. All that in the easiest interface possible. Key Features:.

Close down the system at a given time.
Shutdown provides an automated shutdown procedure for super-users to nicely notify users when the system is shutting down, saving them from system administrators, hackers, and gurus, who would otherwise not bother with such niceties.

At intervals, becoming more frequent as apocalypse approaches and starting at ten hours before shutdown, warning messages are displayed on the terminals of all users logged in.

At shutdown time a message is written in the system log, containing the time of shutdown, who initiated the shutdown and the reason. A terminate signal is then sent to launchd to bring the system down to single-user state (depending on above options).

A scheduled shutdown can be canceled by killing the shutdown process (a SIGTERM should suffice).

FILES
/etc/nologin tells login not to let anyone log in
/fastboot tells rc(8) not to run fsck when rebooting
/usr/libexec/upsshutdown - Run a command when the UPS shuts down.

Examples

Reboot the machine immediately:
$ sudo shutdown -r now

Send the machine to sleep in 30 minutes:
$ sudo shutdown -s +30

Shutdown the machine in 60 minutes:
$ sudo shutdown -h +60

Cancel any of the above:
$ sudo killall shutdown

“Do all men kill the things they do not love?” ~ The Merchant of Venice

Related macOS commands:

kill - Stop a process from running.
login - log into the computer.
osascript - shutdown/restart via AppleScript.
pmset - sleep now.
sudo poweroff
wall - write a message to users.
fastboot(8)
reboot - Stop and restart the system.
uptime - Show how long system has been running.

Copyright © 1999-2020 SS64.com
Some rights reserved
Windows XP shutdown dialog box

To shut down or power off a computer is to remove power from a computer's main components in a controlled way. After a computer is shut down, main components such as CPUs, RAM modules and hard disk drives are powered down, although some internal components, such as an internal clock, may retain power.

Implementations[edit]

The shutdown feature and command is available in MicrosoftWindows,[1]ReactOS,[2]HPMPE/iX,[3] and in a number of Unix and Unix-like operating systems such as ApplemacOS.

Auto Shutdown For Mac

Microsoft Windows and ReactOS[edit]

Shutdown options have been moved from a separate dialog box to the start menu, in Windows Vista and later versions of Microsoft Windows. The above is from Windows 7 (this has now moved to the same window in Windows 10).

In Microsoft Windows and ReactOS, a PC or server is shut down by selecting the Shutdown item from the Start menu on the desktop. Options include shutting down the system and powering off, automatically restarting the system after shutting down, or putting the system into stand-by mode.

Just like other operating systems, Windows has the option to prohibit selected users from shutting down a computer. On a home PC, every user may have the shutdown option, but in computers on large networks (such as Active Directory), an administrator can revoke the access rights of selected users to shut down a Windows computer. Nowadays there are many software utilities which can automate the task of shutting down a Windows computer, enabling automatic computer control. The Windows Shutdown website lists various software utilities to automate the task of shutting down.

In Windows, a program can shut down the system by calling the ExitWindowsEx or NtShutdownSystem function.[4]

Command-line interface[edit]

shutdown
The shutdown command on Windows 7
Developer(s)Microsoft, ReactOS Contributors
Operating systemWindows, ReactOS
TypeCommand
LicenseWindows: Proprietarycommercial software
ReactOS: GNU General Public License
Websitedocs.microsoft.com/en-us/windows-server/administration/windows-commands/shutdown

There is also a shutdowncommand that can be executed within a command shell window. shutdown.exe is the command-line shutdown application (located in %windir%System32shutdown.exe)[5] that can shut down the user's computer or another computer on the user's network. Different parameters allow different functions. More than one parameter can be used at a time for this command.[6]

ParameterFunction
-lLogs off a user. This is the default even without using any parameters.
-aStops shutdown.exe. It is used during a time-out period.
-fKills all running applications.
-sTurns off the computer.
-rShuts down and reboots a computer.
-m[ Computer Name]When shutting down a network computer, allows you to choose

which computer to turn off.

-t xxTimer before shut down occurs.

By default it is set to 30 seconds.

-c 'message'Allows a message to be shown in the System Shutdown window.

It can not be more than 127 characters.

Apple macOS[edit]

macOS power management dialog box

In ApplemacOS the computer can be shut down by choosing 'Shut Down…' from the Apple Menu or by pressing the power key to bring up the power management dialog box and selecting button 'Shut down'. An administrator may also use the Unix shutdowncommand as well.[7] It can also be shut down by pressing [Alt]+[Command]+[Eject optical disc on optical drive] but this will not prompt the user anything at all. On some older Macintosh Apple computers, starting with Mac OS 9, the user is given a time limit in which the computer will automatically shut down if the user does not click the 'Shut Down' button.

Unix and Linux[edit]

shutdown
Original author(s)Scott James Remnant
Developer(s)Canonical
Operating systemUnix-like
TypeCommand

In Unix and Linux, the shutdown command can be used to turn off or reboot a computer. Only the superuser can shut the system down.

One commonly issued form of this command is shutdown -h now, which will shut down a system immediately. Another one is shutdown -r now to reboot. Another form allows the user to specify an exact time or a delay before shutdown: shutdown -h 20:00 will turn the computer off at 8:00 PM, and shutdown -r +1 will automatically reboot the machine in one minute of issuing the command.[8]

See also[edit]

References[edit]

  1. ^Shutdown | Microsoft Docs
  2. ^https://github.com/reactos/reactos/blob/master/base/applications/shutdown/shutdown.c
  3. ^MPE/iX Commands Reference Manual – HP 3000 MPE/iX Computer Systems – Edition 11
  4. ^'NtShutdownSystem'. 25 February 2001. Archived from the original on 2 September 2014. Retrieved 11 April 2015.
  5. ^'Shut down Windows 10 with just one click (or two)'. CNET. Retrieved 24 April 2017.
  6. ^'Shutdown'. technet.microsoft.com. Retrieved 24 April 2017.
  7. ^shutdown(8) – Darwin and macOS System Manager's Manual
  8. ^shutdown(8) – Linux Administration and Privileged Commands Manual

Further reading[edit]

Shutdown Command For Mac

  • Spolsky, Joel (21 November 2006). 'Choices = Headaches'. Joel on Software. Retrieved 25 August 2010.
  • Stanek, William R. (2008). Windows Command-Line Administrator's Pocket Consultant, 2nd Edition. Microsoft Press. ISBN978-0735622623.
  • John Paul Mueller (2010). Windows Command Line Administration Instant Reference. Sybex. ISBN978-0470650462.
  • Barrett, Daniel J. (2012). Macintosh Terminal Pocket Guide: Take Command of Your Mac. O'Reilly. ISBN978-1449328986.
Mac

External links[edit]

Wikibooks has a book on the topic of: Guide to Windows Commands
  • shutdown.cc – an article about various ways of automated and manual shutting down of Microsoft Windows

Force Shutdown For Mac

Retrieved from 'https://en.wikipedia.org/w/index.php?title=Shutdown_(computing)&oldid=979904042'