Skip to content

Useful Terminal Commands

Todd Bruss edited this page Jul 15, 2021 · 15 revisions

Remove app from Quarantine
sudo xattr -dr com.apple.quarantine /Applications/bigmac2.app

Startup to Startup Manager
sudo nvram manufacturing-enter-picker=true

Disable Gatekeeper
sudo spctl --master-disable

Resign an app or package
codesign --force --deep --sign - /Applications/bigmac2.app

create a build
pkgbuild --component "bigmac2.app" --install-location "/Applications" bigmac2.pkg

convert dmg to read only
hdiutil convert -format UDZO in.dmg -o out.dmg

cpu stuff sysctl -n hw.packages sysctl -n machdep.cpu.brand_string