From f5562e57618bb229da0a043ce5c9e5de45257026 Mon Sep 17 00:00:00 2001 From: Jean-Claude Graf <mail@jeanclaudegraf.ch> Date: Sun, 10 Apr 2022 10:33:43 +0200 Subject: [PATCH] IMPROVE: minor things and add pdf --- FS22_ConsoleToolkit/main.pdf | 3 +++ FS22_ConsoleToolkit/main.tex | 36 +++++++++++++++++------------------- 2 files changed, 20 insertions(+), 19 deletions(-) create mode 100644 FS22_ConsoleToolkit/main.pdf diff --git a/FS22_ConsoleToolkit/main.pdf b/FS22_ConsoleToolkit/main.pdf new file mode 100644 index 0000000..13851fa --- /dev/null +++ b/FS22_ConsoleToolkit/main.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:021225c02801940bd0a9962592f9293c28cf8ced1a80ca1eb9324bcbe7e48820 +size 448888 diff --git a/FS22_ConsoleToolkit/main.tex b/FS22_ConsoleToolkit/main.tex index db8ef17..086885d 100644 --- a/FS22_ConsoleToolkit/main.tex +++ b/FS22_ConsoleToolkit/main.tex @@ -93,7 +93,7 @@ \item Can be customized \end{itemize} \end{frame} - + \part{Beginning} \section{File System Basics} @@ -576,7 +576,7 @@ drwxr-xr-x 4 alice alice 4.0K Nov 9 2019 home lrwxrwxrwx 1 root root 7 Dec 7 03:41 lib -> usr/lib -rwxr-xr-- 1 alice alice 64 Nov 29 12:34 .fehbg -rw-r--r-- 1 alice alice 25M Jan 27 2020 script.sh - \end{shell} + \end{shell} \end{frame} \begin{frame}[t,fragile]{Changing permissions} @@ -638,7 +638,7 @@ lrwxrwxrwx 1 root root 7 Dec 7 03:41 lib -> usr/lib \item Combine with \texttt{*} or \texttt{?} \end{itemize} \item Define several globbings: \texttt{\{glob1, glob2, ...\}} - \end{itemize} + \end{itemize} \column{0.65\textwidth} \SU{alice,pwd=~/Eth} \begin{shell} @@ -647,7 +647,7 @@ mv ex-1?.pdf exs/ mv ex-[0-9]*.pdf exs/ mv ../{IML, IS} sem6 rm {*.doc,*.docx} - \end{shell} + \end{shell} \end{columns} \end{frame} @@ -682,7 +682,7 @@ docker-compose down ; docker-compose up -d \item \todo{Move task to bg etc.} \end{itemize} \end{frame} - + \part{Advanced} \section{Piping and Redirection} @@ -745,7 +745,7 @@ cat numbers | grep "t" `\StartConsole` two three \end{shellcomp} - + \end{minipage} \end{frame} @@ -861,7 +861,7 @@ killall -SIGKILL firefox \begin{frame}[t,fragile]{HTOP} \begin{itemize} \item \todo{htop} - \end{itemize} + \end{itemize} \end{frame} \section{PATH} @@ -879,9 +879,9 @@ killall -SIGKILL firefox \end{itemize} \column{0.5\textwidth} \begin{shell} -echo \$PATH `\StartConsole +echo $PATH `\StartConsole /usr/sbin:/usr/bin - \end{shell}\todo{Escaping} + \end{shell}\todo{\$ breaks highlighting} \end{columns} \end{frame} @@ -1081,7 +1081,7 @@ You have mail. \begin{itemize} \item Generate an SSH key with \texttt{ssh-keygen} \item Copy key \texttt{\textasciitilde/.ssh/id\_rsa.pub} to \texttt{\textasciitilde/.ssh/authorized\_keys} on the server - \item Use \texttt{ssh-copy-id -i \textasciitilde/.ssh/id\_rsa USERNAME@REMOTE} \todo{Fix indentation} + \item Use \texttt{ssh-copy-id -i \textasciitilde/.ssh/id\_rsa USERNAME@REMOTE} \end{itemize} \end{frame} @@ -1175,15 +1175,6 @@ rsync_tmbackup.sh ~/ alice@homeserver:~/Backup/ ~/rsync_exclude_list \end{shellcomp} \end{frame} - \section{Further Commands} - \begin{frame}[t,fragile]{Commands I Find Useful} - \begin{itemize} - \item Recursively find occurrences of string: \verb+grep -Rni "linux"+ - \item Get filesize/directory size of current dir: \verb+du -d 1 -h+ - \end{itemize} - - \end{frame} - % \section{Ranger} % % \begin{frame}[t, fragile] @@ -1215,6 +1206,13 @@ rsync_tmbackup.sh ~/ alice@homeserver:~/Backup/ ~/rsync_exclude_list % \section{Epilogue} + \begin{frame}[t,fragile]{Commands I Find Useful} + \begin{itemize} + \item Recursively find occurrences of string: \verb+grep -Rni "linux"+ + \item Get filesize/directory size of current dir: \verb+du -d 1 -h+ + \item \todo{Complete} + \end{itemize} + \end{frame} \begin{frame}[t,fragile] \vspace{2cm} Feedback is very welcome: \url{https://feedback.thealternative.ch} -- GitLab