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
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
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
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.