how to open a file in ubuntu using terminal code example Example: ubuntu open file from terminal xdg-open file-name # xdg-open myPicture.png