-
Notifications
You must be signed in to change notification settings - Fork 53
Useful Terminal Commands
Todd Bruss edited this page Aug 24, 2021
·
15 revisions
Remove app from Quarantine
sudo xattr -dr com.apple.quarantine /Applications/bigmac2.app
Boot up 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
my favorite bootable backup command of all time
cd /Volumes
ls -a
sudo asr -s / -t Untitled -er -nov -nop
create dmg from folder
hdiutil create -volname volumeName -srcfolder /path/to/folder -ov -format UDZO name.dmg
cpu stuff
sysctl -n hw.packages
sysctl -n machdep.cpu.brand_string