Page 1 of 1

MacOS – How to open System Preferences from Terminal

macOS – How to open System Preferences from Terminal

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.
Examples: "MacOS X - Your question", "MS Word - Your Tip or Trick".

Please note that switching to another language when reading a post will not work!
Posts will not have a translated counterpart.




RSS Feed

Home Forums Software MacOS X Software macOS – How to open System Preferences from Terminal

Viewing 1 post (of 1 total)
  • Author
    Posts
  • 12585

    hans
    Keymaster

    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"
Viewing 1 post (of 1 total)



You must be logged in to reply to this topic.