MAC OS X 명령어 모음

Jun 23, 2018



SMB 브로드캐스트 비활성화

sudo defaults write /System/Library/LaunchDaemons/com.apple.mDNSResponder ProgramArguments -array-add "-NoMulticastAdvertisements"
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist

특정 파일을 파인더에서 안 보이게 속성 수정

chflags -s hidden 파일경로

확장자에 대한 연결 프로그램 DB 재작성

DB 손상으로 인해 파인더에서 ‘다음으로 열기’가 작동하지 않을 때 수행

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -seed -r -f -v -domain local -domain user -domain system

블루투스 음질 향상

defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" 58

Flush DNS Cache

sudo killall -HUP mDNSResponder
sudo killall mDNSResponderHelper
sudo dscacheutil -flushcache

VNC On/Off

# On
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart \
-activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes \
-clientopts -setvncpw -vncpw PASSWORD -restart -agent -privs -all

# Off
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart \
-deactivate -configure -access -off