view image from command line ubuntu code example Example: open image from terminal in ubuntu 18 prashad@ubuntu:~/test$ xdg-open output_image.jpg