Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Are there any Linux equivalent of the Mac OS X "open" command?

Answer:

The Mac OSX's open command is a very handy tool for opening file, without the need to sepcify the program name.

In Linux, you have two choices:

1. xdg-open

# xdg-open test.html

2. see

# see test.html

Both command will open the file by your default web browser.

  1. Quickly open to file and position a cursor with vim
  2. Get HTTP request with nc command
  3. Open UTF-8 file with Vim
  4. How to check if a file is locked in Linux?
  5. How do I run a web browser from linux command line?

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>