\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{Matias Sosa (fxsosa)} \pdfinfo{ /Title (ayuda-de-comandos-en-linux.pdf) /Creator (Cheatography) /Author (Matias Sosa (fxsosa)) /Subject (Ayuda de comandos en linux 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}{A3A3A3} \definecolor{LightBackground}{HTML}{F3F3F3} \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{Ayuda de comandos en linux Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Matias Sosa (fxsosa)} via \textcolor{DarkBackground}{\uline{cheatography.com/146030/cs/31527/}}} \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}Matias Sosa (fxsosa) \\ \uline{cheatography.com/fxsosa} \\ \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 11th May, 2022.\\ 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*}{4} \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{Sintaxis simple de un comando}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{comando {[}opciones...{]} {[}argumentos...{]}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{Generalmente las opciones alteran el comportamiento del comando. \newline Los argumentos son elementos o valores sobre los que debe actuar el comando} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.20155 cm} x{2.23145 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Descripcion de los argumentos}} \tn % Row 0 \SetRowColor{LightBackground} \textless{}arg\textgreater{} & El argumento es obligatorio \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {[}arg{]} & El argumento es opcional \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} args... & Se puede incluir un numero arbitrario de argumentos \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} \{\{nobreak\}\}\{arg1,arg2\} & Contiene solo los argumentos permitidos \tn % Row Count 7 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{Help}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{help {[}-dms{]} {[}comando ...{]}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{Muestra informacion acerca de los comandos integrados.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{0.85825 cm} x{2.57475 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Argumentos}} \tn % Row 0 \SetRowColor{LightBackground} \{\{nobreak\}\}-d & (Description) decribe la funcion del comando \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \{\{nobreak\}\}-m & (man-page like) muestra en formato parecido al comando man \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \{\{nobreak\}\}-s & (short) Descripcion de la sintaxis del comando \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{Otras formas de ver la ayuda de un comando}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{-h \newline -{}-help \newline -?} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{Ejemplos}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{help cd \newline help -d cd \newline ls -{}-help \newline bc -h \newline vim -?} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{man}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{man {[}option{]} {[}section number{]} {[}command name{]}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{Muestra los manuales de referencia de un comando o una utilidad del sistema.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{p{0.3433 cm} x{3.0897 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Secciones del comando man}} \tn % Row 0 \SetRowColor{LightBackground} 1 & General commands \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} 2 & System calls \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} 3 & Library functions \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} 4 & Special files \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} 5 & File formats and conventions \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} 6 & Games \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} 7 & Miscellaneous \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} 8 & System administration commands \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} 9 & Kernel Routines \tn % Row Count 9 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.20155 cm} x{2.23145 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Algunas cabeceras de la documentacion}} \tn % Row 0 \SetRowColor{LightBackground} \{\{nobreak\}\}Name & nombre del comando \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \{\{nobreak\}\}Synopsis & Sintaxis del comando \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \{\{nobreak\}\}Description & Descripcion del comando \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \{\{nobreak\}\}Examples & Ejemplos del comando \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \{\{nobreak\}\}Defaults & Valores predeterminados del comando y como se pueden anular \tn % Row Count 11 (+ 3) % Row 5 \SetRowColor{white} \{\{nobreak\}\}Options & Lista de opciones y banderas \tn % Row Count 13 (+ 2) % Row 6 \SetRowColor{LightBackground} \{\{nobreak\}\}Exit Status & Posibles valores de su estado de salida \tn % Row Count 15 (+ 2) % Row 7 \SetRowColor{white} \{\{nobreak\}\}Environment & Variables de entorno que afectan el comando \tn % Row Count 17 (+ 2) % Row 8 \SetRowColor{LightBackground} \{\{nobreak\}\}Files & Lista de archivos utilizados por el comando \tn % Row Count 19 (+ 2) % Row 9 \SetRowColor{white} \{\{nobreak\}\}See also & Comandos relacionados \tn % Row Count 21 (+ 2) % Row 10 \SetRowColor{LightBackground} \{\{nobreak\}\}Notes & Notas que incluyen los permisos necesarios, las dependencias, etc \tn % Row Count 24 (+ 3) % Row 11 \SetRowColor{white} \{\{nobreak\}\}Bugs & Cualquier problema conocido en esta version del programa \tn % Row Count 27 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.33887 cm} x{2.09413 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Convenciones para la synopsis}} \tn % Row 0 \SetRowColor{LightBackground} \{\{nobreak\}\}{\bf{bold text}} & exactamente como se indica \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \{\{nobreak\}\}{\emph{italic text}} & reemplazar con el argumento apropiado \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \{\{nobreak\}\}{[}-abc{]} & Cualquiera o todos los argumentos que estan dentro del corchete son opcionales \tn % Row Count 8 (+ 4) % Row 3 \SetRowColor{white} \{\{nobreak\}\}-a | -b & opciones delimitadas por | no se pueden usar en conjunto \tn % Row Count 11 (+ 3) % Row 4 \SetRowColor{LightBackground} \{\{nobreak\}\}argumento ... & El argumento es repetible \tn % Row Count 13 (+ 2) % Row 5 \SetRowColor{white} \{\{nobreak\}\}{[}expression{]}... & toda la expresion dentro del corchete es repetible \tn % Row Count 16 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{0.85825 cm} x{2.57475 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Opciones}} \tn % Row 0 \SetRowColor{LightBackground} \{\{nobreak\}\}-f & Busca las paginas que tengan como nombre el argumento que le sigue \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \{\{nobreak\}\}-k & Busca las paginas que tengan como nombre y descripción el argumento(regex) que le sigue \tn % Row Count 6 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{p{0.3433 cm} x{3.0897 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Atajos del teclado}} \tn % Row 0 \SetRowColor{LightBackground} q & salir \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} h & despliega la ayuda de navegacion \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} j & una linea abajo \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} k & una linea arriba \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} d & media pagina adelante \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} u & media pagina atras \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} g & Inicio \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} G & fin \tn % Row Count 8 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{p{0.58361 cm} x{2.84939 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Busqueda de palabras}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{/palabra} & Busqueda hacia adelante de la palabra \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{?palabra} & Busqueda hacia atras de la palabra \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} /\textbackslash{}-h & Caracter de escape \textbackslash{} , se saltea el significado especial del caracter - \tn % Row Count 7 (+ 3) % Row 3 \SetRowColor{white} n & siguiente ocurrencia \tn % Row Count 8 (+ 1) % Row 4 \SetRowColor{LightBackground} N & ocurrencia anterior \tn % Row Count 9 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{Info}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{info {[}OPTION{]}... {[}MENU-ITEM...{]}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{Permite consultar ayuda y documentación en formato hipertexto multipágina(tiene mas informacion que man)} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.13289 cm} x{2.30011 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Opciones}} \tn % Row 0 \SetRowColor{LightBackground} \{\{nobreak\}\}-k & Buscar los manuales que contengan la palabra clave(regex) pasada como argumento \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} \{\{nobreak\}\}-{}-vi-keys & Activa la navegacion al estilo vi \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{p{0.78959 cm} x{2.64341 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Atajos sin el modo vi}} \tn % Row 0 \SetRowColor{LightBackground} Ctrl-n & una linea abajo \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Ctrl-p & una linea arriba \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Ctrl-f & un caracter adelante \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Ctrl-b & un caracter atras \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} n & siguiente pagina \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} p & pagina anterior \tn % Row Count 6 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{3.833cm}}{Usa los atajos de emacs en su mayoria} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}