Even though I can find this command hiding somewhere on the internet, I though it might be useful to have it up here for the LaTeX community in general.
How does one run TeX from the command line interface (Terminal) in Linux? Are there any required parameters? What if the command is part of a bigger script, how does the script knows when the TeX processing is done to continue with any subsequent actions needed? Is there a clear manual for this somewhere?
A starting point might be:
pdflatex [options] filename.tex
latex [options] filename.tex
xelatex [options] filename.tex