how to open file from command line ubuntu code example Example: ubuntu open file from terminal xdg-open file-name # xdg-open myPicture.png