summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkrisman <krisman.gabriel@gmail.com>2013-02-16 01:11:52 -0200
committerkrisman <krisman.gabriel@gmail.com>2013-02-16 01:11:52 -0200
commit4b8faf7e7b62c1b3b83c57ea7df53a9bc8c4f05a (patch)
treeb77784be57f6b7f81c74f221c925661b7810b611
parent5e116f78b45e6afcb0cf5765ed09ee6eedb58ca8 (diff)
parent0319017455d563444f9d97a38cdf30712a65892d (diff)
Merge branch 'master' of https://github.com/ISF/aulas_gpsl
-rw-r--r--bixos/shell.tex23
-rw-r--r--lib/shell.tex4
2 files changed, 25 insertions, 2 deletions
diff --git a/bixos/shell.tex b/bixos/shell.tex
index dcb3098..ddd7e04 100644
--- a/bixos/shell.tex
+++ b/bixos/shell.tex
@@ -71,6 +71,29 @@
\end{figure}
\end{frame}
+
+
+\begin{frame}{Elementos da linha de comando}
+ \begin{figure}[h]
+ \centering
+ \begin{shell}
+ %TODO marcar usuario, nome da maquina, diretorio e comando
+ \usercmd[bixo@maquina:$\mathtt{\sim}$/mc102]{comando}
+ \end{shell}
+ \end{figure}
+\end{frame}
+
+\begin{frame}{Principais comandos - ls}
+ \begin{itemize}
+ \item \emph{ls} : Lista todos os arquivos do diretório atual.
+ \end{itemize}
+ \begin{shell}
+ \usercmd{ls \\ calcI.pdf \;\; Desktop \;\; Documents \;\; \\ F129
+ \;\;\;\;\;\;\; lab03.c \;\;\;\;\; MC102}
+ \end{shell}
+\end{frame}
+
+
\begin{frame}{Principais comandos}
\begin{itemize}
\item \emph{echo ``Bixos 2013''} : Escreve na tela o argumento passado.
diff --git a/lib/shell.tex b/lib/shell.tex
index 5a4a927..7fb540d 100644
--- a/lib/shell.tex
+++ b/lib/shell.tex
@@ -26,8 +26,8 @@
\textcolor{white}{#1 \ #2}
}
-\newcommand{\usercmd}[1]{
- \shellcommand{\$}{#1}
+\newcommand{\usercmd}[2][]{
+ \shellcommand{#1\$}{#2}
}
\newcommand{\rootcmd}[1]{