sudo chown -R username file
sudo apachectl restart
ifconfig | grep “inet ” | grep -v 127.0.0.1 | cut -d’ ’ -f2
open . /path/to/open
sudo rm –f [file]
If you have a user that doesn’t appear under users and groups (e.g. jenkins) you could change them as follows
sudo dscl . -change /Users/_jenkins RecordName jenkins jenkinsNewName
Tried to do something and you weren’t allowed in Terminal?
Try “sudo [the command you wanted]”
This basically says “super user do” [command] where super user is root, which is a level above an Admin.
defaults write com.apple.Finder AppleShowAllFiles YES
If you are trying to use autocomplete in Terminal and are hearing the annoying ‘Bonk’ noise constantly you should probably be aware that the autocomplete is CASE SENSITIVE. See, now it’s working for you isn’t it.