From: Mart Lubbers Date: Tue, 2 Sep 2014 09:00:46 +0000 (+0200) Subject: small transfer commit X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=e346d9091b57d2cc7e9a3de5f342f9913b6e7f76;p=linuxnijmegen-bash.git small transfer commit --- diff --git a/part1/basis.tex b/part1/basis.tex index e69de29..e7062fc 100644 --- a/part1/basis.tex +++ b/part1/basis.tex @@ -0,0 +1,2 @@ +% 3. Basic commands: echo, cat, cp, date, df, du, file, file, help, +% history(!!, !a), kill, ln, ls, man, mkdir, mv, pwd, rm, sudo, which, >>, > diff --git a/part1/exit.tex b/part1/exit.tex index e69de29..5f40328 100644 --- a/part1/exit.tex +++ b/part1/exit.tex @@ -0,0 +1 @@ +% 2. Exit codes, special variables ($? $!) diff --git a/part1/syntax.tex b/part1/syntax.tex index 6ef5ccd..494fd4f 100644 --- a/part1/syntax.tex +++ b/part1/syntax.tex @@ -1,6 +1,64 @@ +% 1. Syntax, quoting, manpage, unix philosophy, ampersand/fork. % een frame moet fragile als het listings bevat \begin{frame}[fragile] + \frametitle{Syntax} + \begin{enumerate} + \item Long option + \item Short options + \item Arguments + \item ... + \end{enumerate} \begin{lstlisting}[style=bashregel] -$ cd .. +ls -a -l -h --color=auto /home/frobnicator/directory + \end{lstlisting} + \begin{lstlisting}[style=bashregel] +ls --all -lh + \end{lstlisting} +\end{frame} + +\begin{frame}[fragile] + \frametitle{Speciale karakters} + \begin{lstlisting}[style=bashregel] +mkdir /home/frobnicator/map + \end{lstlisting} + \begin{lstlisting}[style=bashregel] +mkdir "/home/frobnicator/mooie map" +mkdir /home/frobnicator/mooie\ map +mkdir '/home/frobnicator/mooie map' + \end{lstlisting} + \begin{lstlisting}[style=bashregel] +mkdir /home/frobnicator/mooiste\ map\ '!' +mkdir '/home/frobnicator/mooiste map!' + \end{lstlisting} +\end{frame} + +\begin{frame}[fragile] + \frametitle{Radeloos? Manpage} + \begin{lstlisting}[style=bashregel] +LS(1) User Commands LS(1) + +NAME + ls - list directory contents + +SYNOPSIS + ls [OPTION]... [FILE]... + +DESCRIPTION + List information about the FILEs (the current directory by default). Sort entries alphabeti- + cally if none of -cftuvSUX nor --sort is specified. + + Mandatory arguments to long options are mandatory for short options too. + + -a, --all + do not ignore entries starting with . + + -A, --almost-all + do not list implied . and .. + + --author + with -l, print the author of each file + + -b, --escape + print C-style escapes for nongraphic characters \end{lstlisting} \end{frame}