Opening PDF Files in Bash Shell on Macs

  • Thread starter Thread starter hoffmann
  • Start date Start date
  • Tags Tags
    files Pdf Shell
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 3K views
hoffmann
Messages
65
Reaction score
0
how do i open a PDF file in the bash shell on a mac?
 
Physics news on Phys.org
Code:
open -a /Applications/Preview.app path/to/file.pdf
 
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.