• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How To Restart, Shutdown Mac Faster From CLI

By Abhishek Ghosh December 3, 2014 3:36 pm Updated on December 3, 2014

How To Restart, Shutdown Mac Faster From CLI

Advertisement

How To Restart, Shutdown Mac Faster From CLI? Very Easy. From GUI We gracefully Restart, Shutdown Mac OS X 10.x as non-root user from GUI. Basically for running hundreds of daemons, which are installed by Apple as member of UNIX Wheel Group delays the force shutdown and Forced Restart. OS X is cocktail of FreeBSD and NetBSD, but even with 12GB RAM, we have to do lot of works to make Mac to Shutdown faster.

 

How To Restart, Shutdown Mac Faster From CLI : Careful !

 

Be careful, you must know at least about Terminal, Command Line, some commands of Unix Like OS. We must read the manual of each command by running man used in this guide. This is not an alternative way to GUI based restart, shutdown. These must be used judicially, keeping in mind – for forced restart, no active opened files will be saved.

 

How To Restart, Shutdown Mac Faster From CLI : Restart

 

Restart means reboot. You can run man reboot to read the manual of reboot. Just like our servers, we can run simple reboot command to reboot our Macs. But, as username is not logged on console with sudo privilege, we need to add sudo, so the final command is :

Advertisement

---

Vim
1
sudo reboot

It will practically take no time to see the login screen. If you do not use sudo, you’ll face error :

How To Restart, Shutdown Mac Faster From CLI

If you were having a session with sudo privilege, naturally, sudo need not to be added.

 

How To Restart, Shutdown Mac Faster From CLI : Shutdown

 

Shutdown is not easy. It is not sudo shutdown like above ! Basically, you have to recall 45 years old multi-user computers – you can kick the logged in users, broadcast message with timer. Running man shutdown will tell you lot of stories. Practically command to shutdown your Mac very fast from command line is :

Vim
1
sudo shutdown -h +0

Plus Zero means current unix time plus zero second. It terminates all the stuffs running here, almost instantly :

Vim
1
/System/Library/LaunchDaemons/

Both are unix functions. Steve Jobs has zero contribution to these functions. You can write a bash script to make it faster, executing the sh will work. Basic thing to understand – the GUI part of Mac OS X Yosemite is too heavy and poorly integrated with unix system. You can actually recompile the OS and use with some other graphical environment, it is quite difficult, hence iTerm2, Homebrew are so much praised. If you try to recompile the OS, Apple applications will be difficult to run. That is said, but actually many HP-UX users use Homebrew!

Tagged With how to gracefully shutdown mac os , restart mac gui , unix commands for os x to shutdown window
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How To Restart, Shutdown Mac Faster From CLI

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • Command Prompt Commands : Alphabetical list of all commands in Windows 7

    Command Prompt Commands in Windows 7 provides the user access to 180+ command line commands. Here is a list of 200 Command Prompt Commands in Windows 7.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • PowerAmp Settings for Higher Sound QualityOctober 4, 2023
  • Affordable Earphone/IEM for Audiophiles: HiFiMan RE-400 WaterlineOctober 2, 2023
  • What is Hardware Security Module (HSM)September 30, 2023
  • Transducer Technologies of HeadphonesSeptember 28, 2023
  • What is Analog-to-Digital Converter (ADC)September 27, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy