Missing shutdown file on OS X

2016-12-09T03:07:59

I have recently moved the shutdown file in /sbin/ directory and I lost the content of the shutdown executable.

I can't shutdown the computer because of it.

Can someone tell me where can I get this file without reinstalling the OS? Any advice for recovering\reinstalling this executable? or can someone upload this file for me. or copy paste the content of the file on pastebin.com

I have Yosemite 10.10 Thank you.

Copyright License:
Author:「Krisztian Nagy Zsolt」,Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.
Link to:https://stackoverflow.com/questions/41047023/missing-shutdown-file-on-os-x

About “Missing shutdown file on OS X” questions

I have recently moved the shutdown file in /sbin/ directory and I lost the content of the shutdown executable. I can't shutdown the computer because of it. Can someone tell me where can I get thi...
I'm writing a simple OS in assembly but I can't figure out how to shutdown the computer. I've tried to use hlt like this .shutdown: mov si, msg_shutdown call print_string hlt but it do...
We have an SWT application which causes to hang when it is still running and the user triggers a system shutdown on OS X. Closing the application from the application menu works fine. I've tried to
all! A question to all the users of Mac OS X who have used shutdown utility to appoint a shutdown sequence in the nearby future: If you ever looked at its output, you may have noticed that shutdown
I mean I can't use it in bash, is it not available on OS X, or is it just missing on my Mac? It's not a PATH variable issue, because I searched with find command, and there's no file named setsid ...
I have a Twisted application that involves auto-updates. To have it automatically restart after updating, I setup a post reactor shutdown event that respawns the application like so: reactor.
I have an OS which doesn't shut down properly when I run it in one particular hypervisor (KVM) even though it works on all other hypervisors. Instead, what it does is sync all data to disk and then...
I'm using the following command string in Lua to shutdown my Linux system if the user fails to access the system properly: os.execute 'sleep 5 && echo password | sudo -S poweroff' I know ...
I followed some online guides trying to get some headless VMs to start/suspend automatically at boot/shutdown on my Mac. I can't get it to work at all. This is my first time trying to get script ru...
Just exactly how do you shutdown Redis on a Mac OS X server? I tried doing it via the CLI but this doesn't work: $ redis-cli 127.0.0.1:6379> shutdown not connected> quit I also tried execu...

Copyright License:Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.