Last active
December 18, 2015 14:38
-
-
Save IngmarBoddington/5798172 to your computer and use it in GitHub Desktop.
OSX terminal commands etc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apachectl start | |
apachectl stop | |
apachectl restart | |
/usr/libexec/java_home | |
- Shows where JAVA_HOME should be | |
chflags hidden <file/dir> | |
- Set file as hidden (from finder etc) | |
sed is fucked, don't use it - Use gsed installed through macports which works as expected | |
Macports package management | |
sudo port install <app> | |
sudo port selfupdate | |
sudo port upgrade outdated | |
sudo port search <app> | |
(stuffs installed in /opt/local/bin/) | |
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist | |
killall NotificationCenter | |
- Run both commands to get rid of notification center | |
#Fix sparsebundle rename | |
diskutil rename Git git | |
(then eject and re-attach) | |
#Remove MySQL | |
rm -rf /usr/local/mysql* | |
remove app from Applications | |
#Automount SMB on boot example | |
1. Edit the file /etc/auto_master and add a new entry for filestore: /Users/Shared/filestore pn_map | |
2. Create a mapping file at /etc/pn_map: Departments -fstype=smbfs ://username:password@fileserver01.pn.domain/Departments | |
3. Update the automount service to enable the new mount point: sudo automount -vc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment