open video from terminal in ubuntu 18

C++
prashad@ubuntu:~/test$ xdg-open MyVideo.aviprashad@ubuntu:~/test$ xdg-open MyVideo.avi
Source

Also in C++: