Mac Terminal: open Command

View open Man(ual Page)
man open
Create a Blank File
touch file.txt
Open File in TextEdit
open -e file.txt
Open a Photo in Default Viewer
open photo.jpg
Open a Photo in a Specific Application
open -a /Applications/Affinity\ photo.jpg
Open a URL
open ""
Open a Google Search
open ""
Read from Standard Input to Default Text Editor
ls | open -f
Open the Current Directory
open ./
Open a Specific Directory
open /Library/

Leave a comment

Your email address will not be published. Required fields are marked *