Browse Source

Added directory commands

main
Kenneth John Odle 9 months ago
parent
commit
d59ec45b83
  1. 78
      linux-cheat-sheet.tex

78
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 <file.text> <server/file.txt>] Securely copy a specific file to a server directory
\item[mkdir] Create a new directory
\item[rmdir] Delete an empty directory
\item[rsyng -a </path/to/file> </file>] 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}
Loading…
Cancel
Save