sudo rm /private/var/log/asl/*.asl Note *.asl, not all the files in the directory.
sudo rm /private/var/log/asl/*.asl Note *.asl, not all the files in the directory.
find . -name .DS_Store -print0 | xargs -0 git rm –ignore-unmatch Also add “.DS_Store” to your git “.gitignore” file git add .gitignore git commit -m '.DS_Store bye bye!' UPDATED You might want to exclude some file for a specific repository then you can use: your-repo/.git/info/exclude…
This can be easily achieved using your terminal zip -r foo.zip foo -x "*.DS_Store" Where: a. -r for recursively including all directories underneath the targets we want to zip. b. foo.zip is the name of the zip archive we are creating c. foo is the…
Check the version installed: /usr/libexec/java_home -V Then choose the version you need to run: /usr/libexec/java_home -v 1.8.0_05 –exec java -version
List of Mac symbolic links in private folder: ls -aFGl / | grep private This will return: lrwxr-xr-x@ 1 root wheel 11 Jan 9 12:43 etc@ -> private/etc drwxr-xr-x@ 6 root wheel 204 Jan 9 12:53 private/ lrwxr-xr-x@ 1 root wheel 11 Jan 9 12:44…
In short: Uninstall Java plugin (Java Web Start) for your browser type: sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin To remove a specific Java version go to: /Library/Java/JavaVirtualMachines/ and remove the related jdk. If you want to remove the Java Control Panel you have under ‘System Preferences’…
Hide: sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search killall SystemUIServer Show it again: sudo chmod 755 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search killall SystemUIServer To disable spotlight only instead, without removing it from the top menu: sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist To enable it again: sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
Uninstalling Oracle Java (current version) involves deleting the Java Plugin file JavaAppletPlugin.plugin. Open your Terminal, copy and paste the following line: sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin If you need to downgrade java, see related post: how to downgrade java (java 7, Java 8, java x).
Let’s assume the IP 10.67.0.0 is only accessible through the VPN 192.168.120.254, then you can use route command to access your destination IP through the Gataway. To view you route table on you Mac you use the following command: netstat -rnf inet route -n get…
Let’s assume you hate Mavericks and you want a new fresh installation of Mountain Lion. You can do that from Snow Leopard and Lion. If you have an original Snow Leopard DVD, then things are easy. You start your Mac holding down the C button…