Recently, I upgraded my macOS to Mojave and ran into the following error after running the git init command. xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun I was able to fix this by running the following command in a terminal… xcode-select –install Accept the license and install xcode-select when the associated […]

My collection of handy Linux, Unix, and Mac OS terminal commands. Other references Bash Reference Manual Bash Cheatsheet Learn Shell Change file permissions Command Usage chmod +x filename.ext Give execute access to a file. sudo chmod -R 777 workspace -R means RECURSIVE sudo chown -R basejump workspace Take ownership of a file. basejump (user) and […]

Here’s a simple command that will startup an HTTP server from any given folder on a Mac. Open Terminal, cd to change to the directory you wish to serve files from, and then execute the following command. python -m SimpleHTTPServer 8000 This can be very handy for web development on a Mac; especially when using […]