There are a series of latex related commands. A usual latex sequence is
pdflatex can produce .pdf file directly from the .tex file and latex2html can be used to convert your latex file to HTML format. Another command dvipdfm, usually available in Linux distributions, can be used to convert dvi files to pdf format. Note that pdflatex can not deal with eps inserts while dvipdfm can.
example purpose
latex file.tex