In this post, I demonstrated how to . That’s it, thanks for your reading.
If we want to open
sublime text application, we can do this:
open -a "sublime text" 2022.md
or you can create an alias for above command as follows:
alias mdopen='open -a "sublime text"
then just use the shortcut command:
3. The theory
Let’s see the options that provided with
Usage: open [-e] [-t] [-f] [-W] [-R] [-n] [-g] [-h] [-s
][-b ] [-a ] [filenames] [--args arguments]
Help: Open opens files from a shell.
By default, opens each file using the default application for that file. If the file is in the form of a URL, the file will be opened as a URL.
-a Opens with the specified application.