InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Mac Command Line tutorials

  • Bulk convert jpeg files to png using sips on mac
  • Custom terminal tab title and ssh on mac
  • How to convert text to speech on Mac using command line utility say
  • How to join multiple pdf files on Mac
  • How to use qpdf to add/remove password from pdf on mac
  • Install redis on Mac
  • Mac - find which process is listening on a port
  • Mac - hide and unhide a file or directory
  • Mac - open a terminal from a folder
  • Mac - print java home on command line
  • Mac - search files on command line using mdfind
  • Mac command line convert svg to png
  • Mac command line utility open - some handy tips for better productivity
  • Mac terminal - how to close shell on exit
  • mac pkgutil - quick start guide
 
  • Home
  • > Tutorials
  • > Mac
  • > Mac Command Line

Mac command line utility open – some handy tips for better productivity

By admin | Last updated on Mar 20, 2016

Mac command line utility open can be use to open files, folders, etc. It is pretty handy if you use terminal quite often on mac. Also typing a command is much faster as compare to using gui. Here are few things you can do with open on command line to increase productivity.
mac-utility-open

Mac – use “open” to open finder window

To open finder window with current directory:

open .

To open finder window with a specific directory:

open [dirname]

Mac – use “open” to open a file with its default application

To open a png file with preview:

open img.png

Mac – use “open” to open a url in default browser

open http://www.google.co.in/

In case default browser is Chrome, it will open new Chrome window or open a new tab if Chrome window is already there.

Few points to note about mac “open”

  1. You can visit open manual page for detailed documentation on mac open.
  2. You can also specify a specific application using -a application. Otherwise the default application as determined via LaunchServices is used.

Suggested posts:

  1. Mac – how to take timed screenshot
  2. How to upload closed captions for your youtube video
  3. How to remove hard drive icon from mac desktop
  4. How to write custom php in wordpress
  5. AngularJS hello world example
  6. Convert mp3 to ogg on Mac using ffmpeg
  7. PHP execute command and capture shell exit status
  8. Iterate over specific file extension in a dir in shell script
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Mac, Mac Command Line, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress