From d59ec45b8354f261030b36d53e90c4a766255bf2 Mon Sep 17 00:00:00 2001 From: Kenneth Odle Date: Fri, 1 Sep 2023 15:12:53 -0400 Subject: [PATCH] Added directory commands --- linux-cheat-sheet.tex | 78 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 linux-cheat-sheet.tex diff --git a/linux-cheat-sheet.tex b/linux-cheat-sheet.tex new file mode 100644 index 0000000..f8770e4 --- /dev/null +++ b/linux-cheat-sheet.tex @@ -0,0 +1,78 @@ +\documentclass[letter, landscape]{article} +\usepackage[ + margin=0.5in +]{geometry} + +\usepackage{lmodern} + +\usepackage{enumitem} +\setlist[description]{ + style=nextline, + font={\bfseries\ttfamily} + } + +\usepackage{multicol} +\setlength{\columnseprule}{1pt} +\setlength{\columnsep}{1cm} + +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage{tikz} +\usetikzlibrary{shadows} + +% See https://tex.stackexchange.com/questions/5226/keyboard-font-for-latex +\newcommand*\keystroke[1]{% + \tikz[baseline=(key.base)] + \node[% + draw, + fill=white, + drop shadow={shadow xshift=0.4ex,shadow yshift=-0.2ex,fill=black,opacity=0.35}, + rectangle, + rounded corners=2pt, + inner xsep=3pt, + inner ysep=0.5pt, + line width=0.5pt, + font=\footnotesize\ttfamily + ](key) {#1\strut} + ; +} + +\begin{document} + +\section*{A Linux Cheat Sheet} + + +\begin{multicols*}{3} + +\subsection*{Directory} + +\begin{description} + \item[cd] Change the current directory + \item[cd..] Move one directory up + \item[cd-] Move to your previous directory + \item[pwd] Show the current directory (relative to \texttt{\$HOME}) + \item[scp ] Securely copy a specific file to a server directory + \item[mkdir] Create a new directory + \item[rmdir] Delete an empty directory + \item[rsyng -a ] Synchronize the contents of a specific direcotry with a backup directory +\end{description} + +\subsection*{Disk Usage} + +\subsection*{File} + +\subsection*{System} + +\subsection*{Network} + +\subsection*{User} + +\subsection*{Keyboard Shortcuts} + +\begin{description} + \item[\keystroke{ctrl} + \keystroke{e}]Move to the end of the line +\end{description} + +\end{multicols*} + +\end{document} \ No newline at end of file