# What commandline parameter to get pdf

I start latex via the commandline with latex filename. What do I have to do to get a pdf instead of a dvi?

-

pdflatex filename

-

If you have to pass a switch for some strange reason, latex -fmt pdflatex filename should do the same thing as pdflatex filename.

-