\documentclass[10pt,a4paper]{article}

% Packages
\usepackage{fancyhdr}           % For header and footer
\usepackage{multicol}           % Allows multicols in tables
\usepackage{tabularx}           % Intelligent column widths
\usepackage{tabulary}           % Used in header and footer
\usepackage{hhline}             % Border under tables
\usepackage{graphicx}           % For images
\usepackage{xcolor}             % For hex colours
%\usepackage[utf8x]{inputenc}    % For unicode character support
\usepackage[T1]{fontenc}        % Without this we get weird character replacements
\usepackage{colortbl}           % For coloured tables
\usepackage{setspace}           % For line height
\usepackage{lastpage}           % Needed for total page number
\usepackage{seqsplit}           % Splits long words.
%\usepackage{opensans}          % Can't make this work so far. Shame. Would be lovely.
\usepackage[normalem]{ulem}     % For underlining links
% Most of the following are not required for the majority
% of cheat sheets but are needed for some symbol support.
\usepackage{amsmath}            % Symbols
\usepackage{MnSymbol}           % Symbols
\usepackage{wasysym}            % Symbols
%\usepackage[english,german,french,spanish,italian]{babel}              % Languages

% Document Info
\author{plaguedoctor}
\pdfinfo{
  /Title (informationen-sammeln.pdf)
  /Creator (Cheatography)
  /Author (plaguedoctor)
  /Subject (Informationen sammeln Cheat Sheet)
}

% Lengths and widths
\addtolength{\textwidth}{6cm}
\addtolength{\textheight}{-1cm}
\addtolength{\hoffset}{-3cm}
\addtolength{\voffset}{-2cm}
\setlength{\tabcolsep}{0.2cm} % Space between columns
\setlength{\headsep}{-12pt} % Reduce space between header and content
\setlength{\headheight}{85pt} % If less, LaTeX automatically increases it
\renewcommand{\footrulewidth}{0pt} % Remove footer line
\renewcommand{\headrulewidth}{0pt} % Remove header line
\renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit
% This two commands together give roughly
% the right line height in the tables
\renewcommand{\arraystretch}{1.3}
\onehalfspacing

% Commands
\newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour
\newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols
\newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns
\newcommand{\tn}{\tabularnewline} % Required as custom column type in use

% Font and Colours
\definecolor{HeadBackground}{HTML}{333333}
\definecolor{FootBackground}{HTML}{666666}
\definecolor{TextColor}{HTML}{333333}
\definecolor{DarkBackground}{HTML}{032573}
\definecolor{LightBackground}{HTML}{F7F8FA}
\renewcommand{\familydefault}{\sfdefault}
\color{TextColor}

% Header and Footer
\pagestyle{fancy}
\fancyhead{} % Set header to blank
\fancyfoot{} % Set footer to blank
\fancyhead[L]{
\noindent
\begin{multicols}{3}
\begin{tabulary}{5.8cm}{C}
    \SetRowColor{DarkBackground}
    \vspace{-7pt}
    {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent
        \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}}
    }
\end{tabulary}
\columnbreak
\begin{tabulary}{11cm}{L}
    \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Informationen sammeln Cheat Sheet}}}} \\
    \normalsize{by \textcolor{DarkBackground}{plaguedoctor} via \textcolor{DarkBackground}{\uline{cheatography.com/209408/cs/45003/}}}
\end{tabulary}
\end{multicols}}

\fancyfoot[L]{ \footnotesize
\noindent
\begin{multicols}{3}
\begin{tabulary}{5.8cm}{LL}
  \SetRowColor{FootBackground}
  \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}}  \\
  \vspace{-2pt}plaguedoctor \\
  \uline{cheatography.com/plaguedoctor} \\
  \end{tabulary}
\vfill
\columnbreak
\begin{tabulary}{5.8cm}{L}
  \SetRowColor{FootBackground}
  \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}}  \\
   \vspace{-2pt}Not Yet Published.\\
   Updated 15th November, 2024.\\
   Page {\thepage} of \pageref{LastPage}.
\end{tabulary}
\vfill
\columnbreak
\begin{tabulary}{5.8cm}{L}
  \SetRowColor{FootBackground}
  \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}}  \\
  \SetRowColor{white}
  \vspace{-5pt}
  %\includegraphics[width=48px,height=48px]{dave.jpeg}
  Measure your website readability!\\
  www.readability-score.com
\end{tabulary}
\end{multicols}}




\begin{document}
\raggedright
\raggedcolumns

% Set font size to small. Switch to any value
% from this page to resize cheat sheet text:
% www.emerson.emory.edu/services/latex/latex_169.html
\footnotesize % Small font.

\begin{multicols*}{2}

\begin{tabularx}{8.4cm}{x{2.56 cm} x{5.44 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Benutzerinformationen}}  \tn
% Row 0
\SetRowColor{LightBackground}
whoami  & Zeigt den Benutzernamen des aktuell angemeldeten Benutzers an.  \tn 
% Row Count 3 (+ 3)
% Row 1
\SetRowColor{white}
id & Zeigt detaillierte Informationen über den aktuellen Benutzer, einschlie{\ss}lich Benutzer-ID (UID), Gruppen-ID (GID) und die Gruppen, zu denen der Benutzer geh{\"o}rt.  \tn 
% Row Count 10 (+ 7)
% Row 2
\SetRowColor{LightBackground}
groups & Zeigt die Gruppen an, zu denen der aktuelle Benutzer geh{\"o}rt.  \tn 
% Row Count 13 (+ 3)
% Row 3
\SetRowColor{white}
getent {[}group-list{]} & Zeigt Informationen über alle Gruppen im System an. Du kannst auch eine spezifische Gruppe angeben, um detaillierte Informationen zu dieser Gruppe zu erhalten.  \tn 
% Row Count 20 (+ 7)
% Row 4
\SetRowColor{LightBackground}
cat \seqsplit{/etc/passwd } & Zeigt eine Liste aller Benutzerkonten auf dem System an. Jede Zeile in dieser Datei repr{\"a}sentiert einen Benutzer.  \tn 
% Row Count 25 (+ 5)
% Row 5
\SetRowColor{white}
who  & Zeigt eine Liste der aktuell angemeldeten Benutzer an.  \tn 
% Row Count 28 (+ 3)
% Row 6
\SetRowColor{LightBackground}
w & Zeigt eine detaillierte Liste der aktuell angemeldeten Benutzer sowie deren Aktivit{\"a}ten an.  \tn 
% Row Count 32 (+ 4)
\end{tabularx}
\par\addvspace{1.3em}

\vfill
\columnbreak
\begin{tabularx}{8.4cm}{x{2.56 cm} x{5.44 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Benutzerinformationen (cont)}}  \tn
% Row 7
\SetRowColor{LightBackground}
user & Zeigt eine einfache Liste der aktuell angemeldeten Benutzer an.  \tn 
% Row Count 3 (+ 3)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Suchfunktionen}}  \tn
% Row 0
\SetRowColor{LightBackground}
find {[}pfad{]} {[}optionen{]} {[}such-parameter{]}  & Durchsucht Verzeichnisse rekursiv nach Dateien und Verzeichnissen, die bestimmten Kriterien entsprechen. Er ist sehr flexibel und kann nach Dateinamen, Dateitypen, Änderungszeiten und vielen anderen Attributen suchen.  \tn 
% Row Count 12 (+ 12)
% Row 1
\SetRowColor{white}
locate {[}optionen{]} {[}such-parameter{]}  & Verwendet eine vorab erstellte Datenbank, um Dateien schnell zu finden. Diese Datenbank muss regelm{\"a}{\ss}ig aktualisiert werden (z.B. \seqsplit{mit updatedb). locate ist} schneller als find, da es nicht das Dateisystem durchsucht, sondern die Datenbank abfragt.  \tn 
% Row Count 25 (+ 13)
% Row 2
\SetRowColor{LightBackground}
updatedb  & Aktualisiert den Index  \tn 
% Row Count 27 (+ 2)
% Row 3
\SetRowColor{white}
whereis  & Findet Systemdateien und Manpages  \tn 
% Row Count 29 (+ 2)
% Row 4
\SetRowColor{LightBackground}
which  & Suchen Sie die Pfade der ausführbaren Dateien in der Umgebung des Benutzers. Er durchsucht die Verzeichnisse, die in der Umgebungsvariablen \$PATH aufgeführt sind, um das erste Vorkommen der angegebenen ausführbaren Datei zu finden.  \tn 
% Row Count 41 (+ 12)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{8.4cm}{x{2.8 cm} x{5.2 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{\seqsplit{Betriebssysteminformationen}}}  \tn
% Row 0
\SetRowColor{LightBackground}
uname {[}options{]} & Zeigt grundlegende Informationen über das Betriebssystem an.  \tn 
% Row Count 3 (+ 3)
% Row 1
\SetRowColor{white}
cat \seqsplit{/etc/os-release } & Zeigt Informationen über die installierte Linux-Distribution an.  \tn 
% Row Count 6 (+ 3)
% Row 2
\SetRowColor{LightBackground}
\seqsplit{hostnamectl } & Zeigt Informationen über den Hostnamen und das Betriebssystem an.  \tn 
% Row Count 9 (+ 3)
% Row 3
\SetRowColor{white}
lsblk & Zeigt Informationen über die Blockger{\"a}te (Festplatten, Partitionen) an.  \tn 
% Row Count 12 (+ 3)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{8.4cm}{X}
\SetRowColor{DarkBackground}
\mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Brace Expansion}}  \tn
\SetRowColor{white}
\mymulticolumn{1}{x{8.4cm}}{Brace Expansion ist eine Technik in der Bash-Shell, die es erm{\"o}glicht, Listen von Zeichenfolgen zu generieren. Diese Technik kann verwendet werden, um mehrere Dateien oder Verzeichnisse mit einem einzigen Befehl zu erstellen oder zu manipulieren. Die Syntax verwendet geschweifte Klammern \{\} \newline % Row Count 6 (+ 6)
Beispiel: {\bf{`echo \{a,b,c\}`}} oder {\bf{`echo \{1..5\}`}}% Row Count 8 (+ 2)
} \tn 
\hhline{>{\arrayrulecolor{DarkBackground}}-}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{8.4cm}{X}
\SetRowColor{DarkBackground}
\mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Globbing}}  \tn
\SetRowColor{white}
\mymulticolumn{1}{x{8.4cm}}{Globbing ist eine Technik, die es erm{\"o}glicht, Dateinamen oder Pfadnamen mit Hilfe von Platzhaltern (Wildcards) zu finden.  \newline % Row Count 3 (+ 3)
Die h{\"a}ufigsten Platzhalter sind {\bf{*}}, {\bf{?}} und {\bf{{[} {]}}}.% Row Count 5 (+ 2)
} \tn 
\hhline{>{\arrayrulecolor{DarkBackground}}-}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{8.4cm}{p{0.88 cm} x{7.12 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Dateisystem (FSH)}}  \tn
% Row 0
\SetRowColor{LightBackground}
/ & Root Verzeichnis \tn 
% Row Count 1 (+ 1)
% Row 1
\SetRowColor{white}
/bin & Programmdateien / Ausführbare Dateien / Bin{\"a}rverzeichnis  \tn 
% Row Count 3 (+ 2)
% Row 2
\SetRowColor{LightBackground}
/boot & Bootinformationen  \& alle n{\"o}tigen Dateien um zu booten (Kerneldateien, initrd, initramfs, Bootloader) \tn 
% Row Count 6 (+ 3)
% Row 3
\SetRowColor{white}
/dev & Ger{\"a}tedateien für s{\"a}mtliche physische/virtuelle Ger{\"a}te \tn 
% Row Count 8 (+ 2)
% Row 4
\SetRowColor{LightBackground}
/etc & \seqsplit{Konfigurationsdateien /} Systemkonfiguration \tn 
% Row Count 10 (+ 2)
% Row 5
\SetRowColor{white}
/home & Homeverzeichnis für User \tn 
% Row Count 12 (+ 2)
% Row 6
\SetRowColor{LightBackground}
/lib & enth{\"a}lt alle Bibliotheken, die zum Booten des Systems und zum Ausführen von Befehlen in /bin und /sbin erforderlich sind  und Kernel-Module \tn 
% Row Count 17 (+ 5)
% Row 7
\SetRowColor{white}
/sbin & Systemverwaltung  / essenzielle Bin{\"a}rdateien des Systems \tn 
% Row Count 19 (+ 2)
% Row 8
\SetRowColor{LightBackground}
/root & Homeverzeichnis root  \tn 
% Row Count 21 (+ 2)
% Row 9
\SetRowColor{white}
/opt & enth{\"a}lt Bibliotheken und Bin{\"a}rdateien zu Paketen, die nicht von den Paketmanagern des Systems, sondern über Drittanbieter installiert werden \tn 
% Row Count 26 (+ 5)
% Row 10
\SetRowColor{LightBackground}
/proc & Prozesse \tn 
% Row Count 28 (+ 2)
% Row 11
\SetRowColor{white}
/var & Variable Dateien / Logdateien  \tn 
% Row Count 29 (+ 1)
% Row 12
\SetRowColor{LightBackground}
/tmp & Enth{\"a}lt tempor{\"a}re Dateien der aktuell laufenden Prozesse. Diese Daten werden auch nach jedem Bootvorgang gel{\"o}scht \tn 
% Row Count 33 (+ 4)
\end{tabularx}
\par\addvspace{1.3em}

\vfill
\columnbreak
\begin{tabularx}{8.4cm}{p{0.88 cm} x{7.12 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Dateisystem (FSH) (cont)}}  \tn
% Row 13
\SetRowColor{LightBackground}
/usr & sekund{\"a}re Hierarchie \tn 
% Row Count 1 (+ 1)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{8.4cm}{p{0.88 cm} x{7.12 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{File System Types}}  \tn
% Row 0
\SetRowColor{LightBackground}
ext2 & Das zweite erweiterte Dateisystem, bekannt für seine Stabilit{\"a}t und einfache Struktur.  \tn 
% Row Count 3 (+ 3)
% Row 1
\SetRowColor{white}
ext3 & Eine journalisierte Version von ext2, die Datenintegrit{\"a}t verbessert.  \tn 
% Row Count 6 (+ 3)
% Row 2
\SetRowColor{LightBackground}
ext4 & Eine Weiterentwicklung von ext3 mit Unterstützung für gr{\"o}{\ss}ere Dateisysteme und verbesserter Leistung.  \tn 
% Row Count 10 (+ 4)
% Row 3
\SetRowColor{white}
xfs & Hochleistungsf{\"a}higes Dateisystem, ideal für gro{\ss}e Dateien und hohe I/O-Lasten.  \tn 
% Row Count 13 (+ 3)
% Row 4
\SetRowColor{LightBackground}
zfs & Kombiniertes Dateisystem und Volume-Manager, bekannt für Datenintegrit{\"a}t und Skalierbarkeit.  \tn 
% Row Count 16 (+ 3)
% Row 5
\SetRowColor{white}
jfs & Von IBM entwickeltes Dateisystem, bekannt für Zuverl{\"a}ssigkeit und Leistung.  \tn 
% Row Count 19 (+ 3)
% Row 6
\SetRowColor{LightBackground}
f2fs & Speziell für NAND-Flash-Speicher entwickelt, bietet hohe Leistung auf SSDs.  \tn 
% Row Count 22 (+ 3)
% Row 7
\SetRowColor{white}
nilfs & Log-strukturiertes Dateisystem, das kontinuierliche Snapshots unterstützt.  \tn 
% Row Count 25 (+ 3)
% Row 8
\SetRowColor{LightBackground}
btrfs & Ein \seqsplit{Copy-on-Write-Dateisystem}, bekannt für Flexibilit{\"a}t, Snapshots und RAID-Unterstützung.  \tn 
% Row Count 28 (+ 3)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}


% That's all folks
\end{multicols*}

\end{document}