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?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
The syntax to open any file in its default application is
If you want to have some fun and play the video in the terminal itself, 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.
In general you start any command from a terminal by entering the command.
So to edit a file with gedit
An .avi is no different, just a different command
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
totem can be anoter option. On my fresh installed
Xenial it's the app that opens movie files from nautilus.
It's available from Precise.