Table of Contents generated with DocToc

layout: post title: β€œMacOS cheats” teaser: Cheat sheet for MacOS date: 2016-09-27 22:11:26 +0000 categories: cheat-sheets tags: cheat-sheets β€”


List installed brew packages

brew list

Uninstall a package installed via brew

brew uninstall <package_name>

List services

$ brew services list
Name  Status  User        Plist
redis started anuragkapur /Users/anuragkapur/Library/LaunchAgents/homebrew.mxcl.redis.plist

Disable apple security that prevents packages by unidentified developers from being opened (tested on macOS Sierra)

$ sudo spctl --master-disable
$ sudo spctl --master-enable


Find process using a specific port

$ sudo lsof -i tcp:8080