Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to run movie files or executable file in linux.

Which command is used run these two filetypes?

share|improve this question

migrated from Jan 21 '13 at 9:22

This question came from our site for professional and enthusiast programmers.

wine to run .exe (windows executables). Any of the tens of linux media players will play your movie files of unspecified format. – Jonathon Reinhart Jan 21 '13 at 9:07

You can run some .exe files using:

wine myfile.exe

and to open movie files (as well as most other file types) you can use:

xdg-open mymovie.ogg
share|improve this answer
+1 for xdg-open. – Fred Foo Jan 21 '13 at 9:10

This question is a bit non-sensical and could depend on your window manager or shell.

The problem here is you don't execute a movie file, you play it. You do, however execute scripts and programs.

Some information is generally stored in the first few bytes of the file to help determine what it is, and provide hints on how to run it. For example, any well written script will start #! XXXXXXX where XXXXXXX is the shell which is used to run the script.

A Window manager may pick up on these hints, or the file extension (and mime type file) and automagically launch an appropriate piece of software to operate on the file.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .