Opening PDF Files in Bash Shell on Macs

3 replies · 3K views · last reply
hoffmann
Messages
65
Reaction score
0
how do i open a PDF file in the bash shell on a mac?
 
D H said:
Code:
open -a /Applications/Preview.app path/to/file.pdf

Actually, it should be simpler than that. On mine (Leopard), the following does the trick:

Code:
open path/to/file.pdf
 
thanks guys -- i actually had to use port forwarding since the file was located on another computer cluster.