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?
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.
Even arguments can be used, in terminal:
videoplayer-name videoplayer-arguments path-to-file
Path to file can be easily entered by dragging and dropping the file onto the terminal window.
Example, to only listen to the music of a video concert:
mpv --no-video file-dropped-onto-terminal-window