open pdf on linux code example Example 1: open pdf command line linux xdg-open file2open.xxx Example 2: open a pdf on linux xdg-open <name-of-the-file-to-open>