Opening files from the command line on Mac OSX

If you need to open a file from the command line (e.g. a PDF file) you can use the open command:

open -a Preview filename.pdf

In general working from the console is fast and effective, specially if you combine it with bash scripting skills.

Share this post:

  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
Related posts:
  1. Send mail from the command line on Mac OSX
  2. Manage VMware virtual machines from the command line
  3. Show hidden files in Finder
  4. Convert EPS files to PNG images
  5. Source code snippets in Latex

Leave a Reply