view pdf command line linux code example Example: open a pdf on linux xdg-open <name-of-the-file-to-open>