Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is most likely no translated for the post!





macOS - How to open...
 
Share:
Notifications
Clear all

macOS - How to open System Preferences from Terminal  

  RSS

Hans
 Hans
(@hans)
Noble Member Admin
Joined: 7 years ago
Posts: 1363
October 10, 2019 4:42 AM  

There are a few tricks to open a specific pane in the "System Preferences", from Terminal. 
I found this to be the most effective:

open "x-apple.systempreferences:com.apple.preference.security"

but this works as well:

open -b com.apple.systempreferences /System/Library/PreferencePanes/Security.prefPane

(to find more preference panes, look at /System/Library/PreferencePanes)

The first one though offers the ability to open a specific tab on given pane as well.

This for example opens "System Preferences" -> "Security & Privacy" and then activates the "Privacy" tab:

open "x-apple.systempreferences:com.apple.preference.security?Privacy"

ReplyQuote
Share: