# [Tex/LaTex] Displaying Linux commands in LaTeX

emphasislinux

Possible Duplicate:
Syntax Coloring in LaTeX
Unix Command Highlighting latex

I am after some advice on how to display Linux terminal commands into LaTeX, so that they are indented and look different from normal text.

I have tried to insert the following into LaTeX

  $\emph {wget http://etc...................}  this outputs the wget onto a single line and then the part starting http onto another line. I want it all to appear on one line. Can someone body please give me some advice. #### Best Answer You can use the features provided by the listings package. \documentclass{article} \usepackage{listings} \begin{document} \noindent See the following command : \begin{lstlisting}[language=bash]$ wget http://tex.stackexchange.com
\end{lstlisting}

\end{document}