open
Opens files and URLs with the default application (macOS).
Syntax
$open [OPTIONS] [FILE|URL]
Examples
Examples
$open file.txt
Examples
$open -a TextEdit file.txt
Examples
$open https://example.com
Typical use cases
open --help
man open
Note
macOS-specific command to open files with the associated application.
Export