bof_presentation/linux_intro.tex

235 lines
5.7 KiB
TeX
Raw Normal View History

2022-10-05 17:58:22 +02:00
\documentclass[aspectratio=169,16pt]{beamer}
\usetheme[department=FakIM,pageNumbers]{OTHR}
% document language and hyphenation
\usepackage[ngerman]{babel}
% \usepackage[utf8]{luainputenc}
% \usepackage{filecontents}
\usepackage{subfigure}
% code listings
\usepackage{listings}
\usepackage{minted}
\usepackage{enumerate}
\usepackage{calc}
\usepackage[plain]{fancyref}
% math stuff
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{mathtools}
\usepackage{chronology}
\usepackage[backend=biber,style=alphabetic]{biblatex}
\addbibresource{bibliography.bib}
% \bibliographystyle{amsalpha}
% acronyms
\usepackage{acro}
% \acsetup{single,make-links=true}
\acsetup{make-links=true}
\input{acronyms}
% custom commands
\input{commands}
\graphicspath{{assets/linux_intro/}}
2022-10-21 15:20:33 +02:00
\useDepartmentLogo{}
2022-10-05 17:58:22 +02:00
\AtBeginSection[]
{%
2022-10-21 16:50:48 +02:00
\begin{frame}[shrink]{Inhalt}
2022-10-05 17:58:22 +02:00
\tableofcontents[
currentsection,
hideothersubsections,
2022-10-21 16:50:48 +02:00
sectionstyle=show/shaded,
2022-10-21 15:20:33 +02:00
subsectionstyle=show/hide/hide,
2022-10-05 17:58:22 +02:00
]
\end{frame}
\addtocounter{framenumber}{-1}% If you don't want them to affect the slide number
}
2022-10-21 15:20:33 +02:00
\newcommand{\genemail}[1]{\href{mailto:#1}{\textless\nolinkurl{#1}\textgreater}}%
2022-10-21 16:50:48 +02:00
\begin{document}
2022-10-05 17:58:22 +02:00
\title{Linux Einführung}
\author{Magdalena Reif \inst{1} \and Valentin Brandl \inst{2}}
\institute{Fakultät Informatik und Mathematik \and \inst{1} \genemail{magdalena.reif@st.oth-regensburg.de} \and \inst{2} \genemail{mail@vbrandl.net}}
\date{\today}
\maketitle
2022-10-21 16:50:48 +02:00
\begin{frame}[shrink]{Inhalt}
2022-10-05 17:58:22 +02:00
\tableofcontents[
sectionstyle=show/show,
subsectionstyle=hide/hide,
]
2022-10-21 16:50:48 +02:00
\end{frame}
2022-10-05 17:58:22 +02:00
2022-10-21 15:20:33 +02:00
\section{Linux}
2022-10-21 16:50:48 +02:00
\begin{frame}{Ganz kurze Geschichte}
2022-10-21 15:20:33 +02:00
\begin{itemize}
\item ab 1991 von dem Finnen Linux Torvalds entwickelt
\item organisiert Kernelentwicklung bis heute
\item UNIX-ähnliches, POSIX-kompatibles OS
\end{itemize}
\end{frame}
\section{Filesystem}
\begin{frame}
\begin{figure}
\centering
\includegraphics[width=.85\textwidth]{dirstruct.png}
\caption{Verzeichnisstruktur~\cite{directoryStructure}}
\end{figure}
\end{frame}
\section{Navigation im Terminal}
2022-10-21 16:50:48 +02:00
\begin{frame}{whoami? whereami? whenami?}
2022-10-21 15:20:33 +02:00
\begin{itemize}
\item \mintinline{bash}{whoami}
\item \mintinline{bash}{pwd} (print working directory)
\item \mintinline{bash}{history}
\item \mintinline{bash}{date}
\end{itemize}
\end{frame}
2022-10-21 16:50:48 +02:00
\begin{frame}{looking around}
2022-10-21 15:20:33 +02:00
\begin{itemize}
\item \mintinline{bash}{tree}
\item \mintinline{bash}{ls} (list)
\item \mintinline{bash}{ls -a -l}
\end{itemize}
\end{frame}
2022-10-21 16:50:48 +02:00
\begin{frame}{Change directories}
2022-10-21 15:20:33 +02:00
\begin{itemize}
\item \mintinline{bash}{cd} \mintinline{bash}{cd ..} \mintinline{bash}{cd ../../..}
\item absolute path
\item relative path
\end{itemize}
\end{frame}
\section{Inhalt bearbeiten}
\begin{frame}
\begin{itemize}
\item \mintinline{bash}{touch}
\item \mintinline{bash}{nano}, \mintinline{bash}{vim} und \mintinline{bash}{emacs}
\item \mintinline{bash}{mkdir}
\item \mintinline{bash}{rm}
\item \mintinline{bash}{chmod}
\item \mintinline{bash}{file}
\end{itemize}
\end{frame}
2022-10-05 17:58:22 +02:00
\section{Unix Stuff}
2022-10-21 16:50:48 +02:00
\begin{frame}{Aktueller Benutzer --- \emph{id}}
2022-10-05 17:58:22 +02:00
\includegraphics[width=\textwidth]{id.png}
\end{frame}
2022-10-21 16:50:48 +02:00
\begin{frame}{Aktuell aktive Benutzer --- \emph{w}}
2022-10-05 17:58:22 +02:00
\includegraphics[width=\textwidth]{w.png}
\end{frame}
2022-10-21 16:50:48 +02:00
\begin{frame}{\emph{man}, where is my car}
2022-10-05 17:58:22 +02:00
\includegraphics[width=\textwidth]{man.png}
\end{frame}
\section{Dateien Analysieren}
2022-10-21 16:50:48 +02:00
\begin{frame}{Dateiinhalt einsehen}
2022-10-05 17:58:22 +02:00
\begin{description}
\item[\emph{cat}] Für Textdateien
\item[\emph{xxd}] Für Binärdateien
\end{description}
\end{frame}
2022-10-21 16:50:48 +02:00
\begin{frame}{Dateiinhalt einsehen --- \emph{cat}}
2022-10-05 17:58:22 +02:00
\includegraphics[width=.7\textwidth]{cat.png}
\end{frame}
2022-10-21 16:50:48 +02:00
\begin{frame}{Dateiinhalt einsehen --- \emph{xxd}}
2022-10-05 17:58:22 +02:00
\includegraphics[width=\textwidth]{xxd.png}
\end{frame}
2022-10-21 16:50:48 +02:00
\begin{frame}{In Dateien Suchen --- \emph{grep}}
2022-10-05 17:58:22 +02:00
\begin{itemize}
\item \mintinline{bash}{grep regex datainame}
\item \mintinline{bash}{grep --ignore-case regex datainame}
\item \mintinline{bash}{grep -F kein-regex datainame}
\end{itemize}
\end{frame}
2022-10-21 16:50:48 +02:00
\begin{frame}{In Dateien Suchen --- \emph{grep}}
2022-10-05 17:58:22 +02:00
\centering
2022-10-21 15:20:33 +02:00
\begin{tabular}{@{}c@{}}
\begin{tabular}{c}
\includegraphics[width=.4\linewidth]{grep00.png} \\ %\small (a)
\end{tabular} %\qquad
\begin{tabular}{c}
\includegraphics[width=.5\linewidth]{grep01.png} \\ %\small (b)
\end{tabular} \\
\end{tabular}
2022-10-05 17:58:22 +02:00
\end{frame}
2022-10-21 16:50:48 +02:00
\begin{frame}{Ausgaben Umleiten und Wiederverwenden}
2022-10-21 15:20:33 +02:00
\begin{itemize}
\item Ausgabe in Datei umleiten: \mintinline{bash}{>}
\item Verketten durch pipes: \mintinline{bash}{|}
\item Ausgabe von \mintinline{bash}{cmdA} als temporäre Datei für \mintinline{bash}{cmdB}: \mintinline{bash}{cmdB <(cmdA)}
\end{itemize}
2022-10-05 17:58:22 +02:00
\end{frame}
2022-10-21 16:50:48 +02:00
\begin{frame}{Ausgaben Umleiten und Wiederverwenden}
2022-10-05 17:58:22 +02:00
\includegraphics[width=\linewidth]{redirect_pipe.png}
\end{frame}
2022-10-21 16:50:48 +02:00
\begin{frame}{Ausgabe als temporäre Datei}
2022-10-05 17:58:22 +02:00
\includegraphics[width=\textwidth]{temp_file.png}
\end{frame}
2022-10-21 16:50:48 +02:00
\begin{frame}{Strings in Binärdateien finden --- \emph{strings}}
2022-10-05 17:58:22 +02:00
\includegraphics[width=\textwidth]{strings.png}
\end{frame}
\section{Networking}
2022-10-21 16:50:48 +02:00
\begin{frame}{Dateien Herunterladen --- \emph{wget}}
2022-10-05 17:58:22 +02:00
\includegraphics[width=\textwidth]{wget.png}
\end{frame}
2022-10-21 16:50:48 +02:00
\begin{frame}{Dateien Herunterladen --- \emph{curl}}
2022-10-05 17:58:22 +02:00
\includegraphics[width=\textwidth]{curl.png}
\end{frame}
2022-10-21 16:50:48 +02:00
\begin{frame}{Portscan --- \emph{nmap}}
2022-10-05 17:58:22 +02:00
\includegraphics[width=\textwidth]{nmap.png}
\end{frame}
2022-10-21 16:50:48 +02:00
\begin{frame}{DNS Lookups --- \emph{dig}}
2022-10-05 17:58:22 +02:00
\includegraphics[width=.9\textwidth]{dig.png}
\end{frame}
\appendix
% \nocite{*}
\section*{Quellen}
2022-10-21 16:50:48 +02:00
\begin{frame}[allowframebreaks]{Quellen}
2022-10-05 17:58:22 +02:00
\printbibliography[heading=none]{}
\end{frame}
\end{document}
% vim: set filetype=tex ts=2 sw=2 tw=0 et spell :