LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

open

opens files and URLs on macOS

TLDR

Open file with default app
$ open [file]
copy
Open URL in browser
$ open [https://example.com]
copy
Open with specific app
$ open -a [Safari] [file.html]
copy
Open directory in Finder
$ open [directory]
copy
Open current directory
$ open .
copy
Reveal in Finder
$ open -R [file]
copy

SYNOPSIS

open [options] [file...]

DESCRIPTION

open opens files and URLs on macOS. Uses default or specified applications.The command launches applications with files. macOS specific utility.

PARAMETERS

FILE

File or URL to open.
-a APP
Open with application.
-e
Open in TextEdit.
-t
Open in default text editor.
-R
Reveal in Finder.
-n
Open new instance.
--help
Display help information.

INSTALL

sudo dnf install kbd
copy
sudo pacman -S kbd
copy
sudo apk add kbd
copy
sudo zypper install kbd
copy
nix profile install nixpkgs#kbd
copy

CAVEATS

macOS specific. Use xdg-open on Linux. Application names case-sensitive.

HISTORY

open has been part of macOS for launching files with associated applications.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid