Ubuntu open file from terminal

In this article let’s discuss about Ubuntu open file from terminal. Let’s go through the following methods without any delay.

Method 1:

xdg-open file-name

# xdg-open myPicture.png

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!

Method 2 :

open ~/Desktop/filename.txt

Hope the above solution works.

Realted Posts : Error: couldn’t connect to docker daemon at http+docker://localhost – is it running?