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