Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

The terminal is where everything gets done in linux.

So if this is true, how can I play an AVI video (.avi extension) from the Terminal?

share|improve this question

In general you start any command from a terminal by entering the command.

So to edit a file with gedit

gedit file_to_edit

An .avi is no different, just a different command

banshee your.avi

You may use any media player you wish.

the only thing is an avi itself is a container, so you may need to install some codecs. codecs are the tools to play mp3 and other audio visual files.

this link may help


share|improve this answer
cool thanks for the link. – ubuntu-nerd Dec 11 '11 at 4:32
general syntax is <program> <file to be played> – Vineet Menon Dec 11 '11 at 5:01

The syntax to open any file in its default application is

xdg-open <file_name>

If you mean play the video in the terminal video, install mplayer (sudo apt-get install mplayer) and run

mplayer -vo caca <movie_file>

It doesn't run directly in the terminal window, but it does display in ASCII characters.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.