how to view pdf in terminal code example Example: open a pdf on linux xdg-open <name-of-the-file-to-open>