Reversing a Terminal command in Mavericks

Hi there. I have recently upgraded my 2008 MBP to Mavericks. I've been having an issue where the computer won't go to sleep when the lid is shut. After researching the issue and trying a number of 'non-invasive' options, I tried one that was to enter the following into Terminal and then repair my Permissions:
sudo defaults write /System/Library/LaunchDaemons/com.apple.coreservices.appleevents ExitTimeOut -int 1
sudo defaults write /System/Library/LaunchDaemons/com.apple.securityd ExitTimeOut -int 1
sudo defaults write /System/Library/LaunchDaemons/com.apple.mDNSResponder ExitTimeOut -int 1
sudo defaults write /System/Library/LaunchDaemons/com.apple.diskarbitrationd ExitTimeOut -int 1
sudo defaults write /System/Library/LaunchAgents/com.apple.coreservices.appleid.authentication ExitTimeOut -int 1
Unfortunately it did not solve the problem and now one of my programs, "Edgies" will not launch. I'd rather enter in a few quick commands to reverse what's been done instead of re-installing an old backup. Is anyone versed in code enough to help me do this is a couple minutes instead of a few hours!? Thanks for your time.

Sure, here's an explanation:
http://www.cnet.com/how-to/speed-up-the-shutdown-process-in-os-x/
But, honestly, I'd advise you not to type unknown commands into Terminal unless you know both what they're supposed to accomplish and how to reverse them easily. Evaluate carefully what you find online.
If you do like to tinker--and there's nothing wrong with tinkering--it's best to experiment with a bootable clone of the Mac's hard drive. If the experiment unleashes a box of bees, just erase the clone. At least the internal drive on your Mac remains unaffected by the experiment and functional.

Similar Messages

  • How do i reverse a Terminal command?

    I had previously enabled this Command in Terminal to gain access to my NAS drive storage in iMovie, which worked fine.... But now I would like to Disable/reverse the effects of the command below:
    defaults write -app iMovie allowNV -bool true
    I do not want my NAS drive to show in iMovie.
    How can I do this please?
    Thanks.

    Use the same Terminal command but change true to false.
    Example:
    defaults write -app iMovie allowNV -bool false

  • I used a terminal command to show the Library in the User folder, and now the Finder is behaving erractically.  Can anyone tell me how to reverse the show library terminal command?

    I used a terminal command in Lion to show the LIbrary in the Users folder, and now the Finder is behaving erratically, hanging up and becoming almost paralyzed.  Can anyone tell me how to reverse the terminal command for show Library.  The command I used was:
    chflags nohidden ~/Library/

    Showing the Library folder will not cause the problem you've described. Nevertheless:
    chflags hidden ~/Library
    will hide the folder. To reveal the folder:
    chflags nohidden ~/Library
    Note, there is no "/" after Library.

  • Remove read receipt terminal command

    Several months ago I was having issues with delivery of email.  One of my troubleshooting solutions was to implement a read receipt code in terminal to determine which emails were going through and which were not.  I have since "fixed the glitch" and want to remove or reverse the terminal command but I have no idea how to do it.
    This is the terminal command I used: 
    defaults write com.apple.mail UserHeaders '{"Return-Receipt-To" = "[email protected]"; "Disposition-Notification-To" = "[email protected]"; }'
    Does anyone know how to remove a terminal command, disable it, or reverse the function?
    Appreciate any help.
    Thanks!!!

    Quit Mail, then in Terminal type:
    defaults read com.apple.mail UserHeaders
    to check that the value of UserHeaders is what you expect. If there are additional UserHeaders beyond the ones you want to delete you'll need to add them back later. Now type:
    defaults delete com.apple.mail UserHeaders
    All of your UserHeaders will be gone. If you need to add back some headers use:
    defaults write com.apple.mail UserHeaders '{"foo" = "bar";}'
    Obviously you need to replace foo and bar with your values.

  • #30 | can i run the Terminal Command to stop Snapshots with no problems?

    i am somewhat surprised to find out that the 75 GB of "Backups" that are taking up space on my MBP may be due to some "feature" in Mavericks or the new OS's or whatever and i have had to MOVE all my data off my laptop as a consequence of this over the last two months because i have no more space on my Hard Drive.
    is it legit and OK to follow the terminal commands in #30 without having any problems?
    i am on a mid 2009 MBP running Mavericks and i have a 2 TB Time Capsule that i am wirelessly backing up my data.
    as some kind of sadistic test in advance of running this terminal command - can i plug my laptop into the Time Capsule, unplug the laptop from the time capsule, restart and see how much space got recaptured on my HD for my data?
    i mean, well - i must be missing something but i mean i am hoping i can get this to stop so i can get my data back on my laptop. i'm walking around with an external HD of all my Mac Pro information just so i can get work done when i go to a coffee shop or something.

    for those suffering through this:
    https://discussions.apple.com/message/24878591#24878591
    In Terminal:
         sudo tmutil disablelocal
    Turn off local Time Machine snapshots and trigger automatic cleanup of accumulated local snapshot data. Requires root privileges.
    (use sudo tmutil enablelocal to turn back on)
    this got rid of my 75 GB backup file (!!) and now i am going to move my data back to my laptop...
    not sure if there is an apple tech article to link to regarding this issue but it would be good to post if there is one.

  • Terminal command to turn on/off iCloud syncing?

    I'm a musician using my MacBook Pro on gigs and lately I've been experiencing some glitching in my audio that I believe is related to sync services or other processes that Mavericks uses to communicate with iCloud.  Googling, I saw references to an issue with AddressBookSync using lots of CPU.  I followed the tips in a thread about resolving that and I believe they are resolved, however for peace of mind I am still turning off iCloud before every gig I do, and it's a bit of a pain – you have to deal with a succession of alerts.  And I'm not even sure this is actually turning off these processes.
    I'm hoping someone knows a terminal command that I can run before every gig to just shut all that stuff down temporarily.  TIA for any help!

    Thanks for another idea, which makes sense except I believe that turning off wifi doesn't actually stop the processes from running - they simply attempt to connect, then exit when there is no response – at least that's what I surmise from looking at the Console log.
    I may be barking up the wrong tree anyway.  I didn't mention the actual issue except to say "glitching in my audio" but it's threatening to have me abandon my laptop music rig which I've been using very successfully on gigs for the last eight years, over three laptops.  Googling has given me only a few clues (one of them being the subject of this thread) but I may post the actual issue in another thread.  Thanks again for your efforts to be helpful, I really do appreciate it.

  • Help on terminal command

    i just accidently copy a command to terminal to order make a bootable USB for Mavericks, what the command for the default view folder on terminal?
    just too annoying looking ds_store file visible in my all folder

    Neil's script will work so long as you didn't use the key "True" (a synonym for "1") in the original command to turn on hidden files.   To turn Finder back to normal, copy and paste this entire line into Terminal: 
    defaults write com.apple.finder AppleShowAllFiles 0;  killall Finder
    Press 'return' to enter it.
    I have a free, one-click app for toggling hidden files on and off that you can download and keep in your Dock if remembering Terminal commands is too boring. .
    You can download "Reveal.app" from here:
    http://applehelpwriter.com/apps/
    (disclaimer: this links to my personal website which is in no way endorsed by Apple)

  • Terminal command to rebuild launch services database?

    Anyone know the exact terminal command to rebuild the launch services database for Mavericks?

    You MUST recopy the code above as there are (SPACES) that Terminal will not accept.  e.g.
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user ; killall Dock
    Notice, 1st line 'LaunchSe' is cut off...this will show up as a blank space when copy/paste.  Edit this prior to using it in terminal otherwise it could become very frustrating.
    Hope this helps it did for me once I did it correctly

  • Terminal command messed up my computer HELP ME!!!

    I Used a terminal command to show hidden files, and I don't know how to Reverse it. HELP!!!

    Hello and Welcome to Apple Discussions.
    . defaults write com.apple.finder AppleShowAllFiles TRUE
    Shows hidden files in the finder. Replace TRUE with FALSE to hide hidden files again.
    Carolyn

  • Terminal command for tabs to open in same window

    anyone know the terminal command to have all links open in tabs instead of a new window - why does mac call it tabs when it does not even actually work - any help would be great - i had the command and i deleted it......driving me nuts

    Greetings,
    There is no such command; there is a command to force targeted links to open in new tabs, but it will have no effect on links that are controlled by JavaScript. Open Terminal and enter:
    defaults write com.apple.Safari TargetedClickCreateTabs -bool true
    press Enter or Return, then quit Terminal and restart Safari.

  • I get "App Store Disabled" on my MacBook Pro due to profile issues. What Terminal command can I use to reset profile settings?

    After transferring documents from one MacBook Pro to another I get some weird errors due to settings that seem to have transferred over. One is that the Mac App Store is disabled.
    Are there any Unix / Terminal commands I can use to reset these?

    Forgot Your Account Password
    For Lion/Mountain Lion
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see Reset a Mac OS X 10.7 Lion Password and
         OS X Lion- Apple ID can be used to reset your user account password.

  • How can I change the "Ask to join new networks" option using a terminal command?

    We are currently switching to a new wireless network throughout our school district and I have pushed commands to connect to the new and remove the old. However, any Macs that have "Ask to join new networks" enabled are jumping over to our unsecure guest network, even if that network has been removed from the list of Preferred Networks. So far the fix has been to remove the guest network from the list of Preferred Networks and then disable Ask to join. The only issue I'm running into now is I have been unable to find a terminal command to change this setting. Once I have the command I can write a script and send that out to all of the Macs.
    So is there a way to disable "Ask to join new networks" using command line?

    sed -i "" 's/Prompt/DoNothing/' /Library/Preferences/SystemConfiguration/preferences.plist

  • What are the terminal commands to list all plugins, extensions, etc?

    I remember a while ago reading a thread on diagnosing kernel panics and such, where someone listed a number of commands (I think there were four separate terminal commands) which produced lists of plugins, daemons, background enhancers, extensions etc which could sap resources or drive up temperature without necessarily showing up in activity monitor or anything like that.
    Anyone know what these commands are? I'm having some serious overheating problems at the moment when doing nothing but for instance watching a youtube video with no other processes running so I'd like to get these dumps and see if there's anything installed which could be causing trouble.

    Check this out : http://helpx.adobe.com/story/help/keyboard-shortcuts.html

  • How do I back up the music and apps etc. I restored my computer and I reinstalled iTunes, I was told something about a terminal command line, what does that mean? Please help

    How do I back up the music and apps etc. I restored my computer and I reinstalled iTunes, I was told something about a terminal command line, what does that mean? Please help

    - Transfer iTunes purchases to the computer by:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    - Transfer any other music by using a third-party program like one of those discussed here:
    Copy music
    - Connect the iPod to the computer and make a backup by right clicking on the iPod under Devices in iTunes and select Back Up
    - Restore the iPod from that backup. The restore will also update the iOS.
    Note that the backup that iTunes makes does not include synced media like apps and music
    Are you sure you have a 3G iPod? A 1G iPod can only go to iOS 3.1.3
    See:
    Identifying iPod models

  • How to reset the network IP address from terminal/command line in Mac OSX?

    Do anyone knows how to set the network IP address from terminal/command line in Mac OS X?

    how about a GUI, ever heard of a GUI? it's this really neat thing, where you don't have to worry about remembering long strings of text to do something. Mac OS X actually has a rather decent one (that was sarcasm by the way, Mac is the best) you could have it done in like 30 sec, if you use the network pane of system preferences.

Maybe you are looking for