Terminal Command To Mountain Lion

Question or issue on macOS:

This SO post explains very well how to install command line tools for Xcode 4.4.

Despite setting the power saving options to never let the system sleep, Mountain Lion will inadvertently go for a snooze and it takes a Terminal command to stop it. Caffeinate -t 86400 The number following the t is the time in seconds to keep the Mac awake and can be altered to any other time you like. About Press Copyright Contact us Creators Advertise Developers Terms Privacy Policy & Safety How YouTube works Test new features Press Copyright Contact us Creators.

But how to uninstall them?

How to solve this problem?

Terminal command to mountain lion download

Solution no. 1:

There’s a script listed on this page to do just that on Mountain Lion: http://www.cocoanetics.com/2012/07/you-dont-need-the-xcode-command-line-tools/

Install the latest version and set as current users' default shell: brew install zsh && chsh -s $ (brew -prefix) /bin/zsh. Homepage - Zsh is a shell designed for interactive use, although it is also a powerful scripting language. Oh My Zsh - An open source, community-driven framework for managing your Zsh configuration.

Copy the script into a text file.
Save it as remove_CLI_tools.sh
Open terminal and navigate to the folder where you saved the script.
Type: sh remove_CLI_tools.sh

I installed just the isolated command line tools (stand alone installer) without installing the Xcode application. So I ended up running the script twice, changing the variables at the top for each of the packages installed by the installer
(you can check which packages were installed by looking in the hidden “Packages” file of the .dmg image of the installer):
com.apple.pkg.DeveloperToolsCLI.bom and .plist
com.apple.pkg.DevSDK.bom and .plist

Be careful (have a backup, like the post recommends).

Solution no. 2:

sudo /Developer/Library/uninstall-devtools –mode=all works for 10.8.5

Solution no. 3:

This should still work to remove xcode.

Solution no. 4:

sudo /Library/Developer/Shared/uninstall-devtools –mode=all

Mountain

Hope this helps!

How To: Reset Mac OS X Lion/Mountain Lion to factory default

How to reset Mac OS X Lion/Mountain Lion to Factory Default

Always make a fresh backup before you will get under the hood of your MAC!

BE VERY CAREFUL WHEN USING THE “rm” command as you may delete your whole drive!
DO THIS AT YOUR OWN RISK. I TAKE NO RESPONSIBILITY FOR ACCIDENTAL LOST OF DATA.
BACKUP IF DOING THIS WHERE THERE IS DATA ON THE DRIVE NEEDED TO BE SAVED

REQUIRED USER LEVEL: USER WITH ADVANCED KNOWLEDGE OF THE MAC OS X AND SELL !

Recently I have a client which asked me to reset his MBP to factory default. This client purchased latest Retina MBP and want to sell old one.

Terminal Command To Mountain Lion On Mac

first of all you need to clean your Do

One of the important thing which you need to do –deauthorizing a computer. Open your iTunes and go to Store and click on the “Deauthorize This computer…” then if you have Audible account go to Advanced and Deauthorize Audible Account…”

You will need to start your mac in Single User mode to clean disk and system . Reboot your system and immediately after Mac startup sound press and hold following combination: ⌘+S

Users of Mac-mini with non Apple keyboard: I cannot guaranty you will be able to get in to single user mode.

1.

For beginning to prevent any OS damage please execute following command

Because you started system in single user mode Macintosh HD mounted in read only mode. To work with system settings it is necessary to change mount settings to Read/Write. Please execute following:

Now it is time to load OpenDirectory service:

For MAC OS X up to 10.6

launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist

If you have Mac OS X 10.7 and newer:

Terminal command to mountain lion on windows

launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist

2.

To check in which groups you are listed, enter:

dscl . -list /groups GroupMembership | grep yourusername

Most likely you will receive following respond from the system.

root#dscl . -list /groups GroupMembership | grep yourusername
_appserveradm yourusername
_appserverusr yourusername

_lpadmin yourusername
admin root yourusername
com.apple.sharepoint.group.1yourusername
stuff yourusername
dscl . delete /groups/groupnameGroupMembership yourusername
groupname – name of the group. For example “stuff”

Terminal Command To Mountain Lion Online

yourusername – yours short user name (you can find it in /Users/ directory (name of your home directory)
Repeat dscl command for all groups where is your short user name listed
Deleting group with your name (if it is created by system)
Following string will delete your user name from open directory:
Remove your user ID file from Open Directory:
rm/private/var/db/dslocal/nodes/Default/users/yourusername.plist
Clean system locations from logs, Caches and TMP files/folders

rm-rf /Library/Preferences/*
rm
-rf /Library/Logs/*
rm
-rf /private/var/log/*

rm-rf /Library/Caches/*
rm-rf /System/Library/Caches/*
rm/private/var/vm/swapfile*

rm-rf /private/var/folders/*

Removing from the system file which created after system setup:

Terminal Command To Mountain Lion Using

Clean root home directory.

Terminal Command To Mountain Lion On Pc

Check everything then recheck it again. When your are sure everything clean, you can shutdown your system.