LPI Exam Questions

Which of the following commands should you use to accomplish the task?

You work as the Network administrator for McNeil Inc. The company has a Linux-based network.
You are working as a root user on the Linux operating system. You have created a PostScript file
on your system. You want to convert this file to a PDF file. Which of the following commands
should you use to accomplish the task?

A.
ps2pdf

B.
evince

C.
pdf2ps

D.
enscript

Explanation:

The ps2pdf utility is used to convert PostScript to a PDF file.
What is a ps2pdf command?
The ps2pdf command creates PDF files. It is used to convert a PostScript file to a PDF file.
There are a number of versions of this program, some are as follows:

Answer option D is incorrect. The enscript utility converts a text to a PostScript format and sends it
to a file or the print queue.
Answer option B is incorrect. The evince utility is used to view a PDF file, not to create a PDF file.
What is the evince command?
The evince command is a document viewer capable of displaying multiple and single page
document formats such as PDF and Postscript.
Syntax: evince [Options] [Filename]