システム設定を開く
ターミナルからシステム設定を開くには以下のコマンドを実行します。
open -a "System Settings"
または
open "/System/Applications/System Settings.app"
システム設定の「一般」パネルが開きます。
特定のパネルを開く
以下のようにすると特定のパネルを指定して開けます。
open "/System/Library/PreferencePanes/パネル.prefPane"
「外観」パネルを開く場合は次のようになります。
open "/System/Library/PreferencePanes/Appearance.prefPane"
指定できるパネルの一覧はls /System/Library/PreferencePanes/
で取得できます。
$ ls /System/Library/PreferencePanes/
Accounts.prefPane/ Mouse.prefPane/
Appearance.prefPane/ Network.prefPane/
AppleIDPrefPane.prefPane/ Notifications.prefPane/
Battery.prefPane/ Passwords.prefPane/
Bluetooth.prefPane/ PrintAndFax.prefPane/
ClassKitPreferencePane.prefPane/ PrintAndScan.prefPane/
ClassroomSettings.prefPane/ Profiles.prefPane/
DateAndTime.prefPane/ ScreenTime.prefPane/
DesktopScreenEffectsPref.prefPane/ Security.prefPane/
DigiHubDiscs.prefPane/ SharingPref.prefPane/
Displays.prefPane/ SoftwareUpdate.prefPane/
Dock.prefPane/ Sound.prefPane/
EnergySaver.prefPane/ Speech.prefPane/
EnergySaverPref.prefPane/ Spotlight.prefPane/
Expose.prefPane/ StartupDisk.prefPane/
Extensions.prefPane/ TimeMachine.prefPane/
FamilySharingPrefPane.prefPane/ TouchID.prefPane/
InternetAccounts.prefPane/ Trackpad.prefPane/
Keyboard.prefPane/ UniversalAccessPref.prefPane/
Localization.prefPane/ Wallet.prefPane/