![Forrest logo](/images/logo.png)
duti:tldr:42d16
duti: Set Safari as the default handler for HTML documents.
$ duti -s ${com-apple-Safari} ${public-html} all
try on your machine
The duti command is a command-line utility on macOS that is used to set the default application for file types.
In this specific command, the -s
flag is used to set the default application for a specific file type.
${com-apple-Safari}
represents the bundle identifier of the application that you want to set as the default. In this case, it represents the Safari web browser.
${public-html}
represents the file type, or Uniform Type Identifier (UTI), for HTML files.
all
is used to specify that the default application should be set for all users on the system.
Overall, this command sets the Safari browser as the default application for handling HTML files for all users on the macOS system.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.