\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{Juanma Gutiérrez (Romeodol)} \pdfinfo{ /Title (comandos-de-terminal-linux.pdf) /Creator (Cheatography) /Author (Juanma Gutiérrez (Romeodol)) /Subject (Comandos de terminal 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}{444444} \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{Comandos de terminal Linux Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Juanma Gutiérrez (Romeodol)} via \textcolor{DarkBackground}{\uline{cheatography.com/146220/cs/37182/}}} \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}Juanma Gutiérrez (Romeodol) \\ \uline{cheatography.com/romeodol} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 27th February, 2023.\\ Updated 16th March, 2023.\\ 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.8 cm} x{5.2 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Comandos para archivos y directorios}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{ls}} & {\bf{Lista el contenido de un directorio}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} ls -l & Muestra la salida en formato largo \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} ls -r & Lista un directorio en orden inverso \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} ls -R & Lista recursivamente un directorio \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} ls -a & Muestra ficheros ocultos \tn % Row Count 9 (+ 1) % Row 5 \SetRowColor{white} ls -h & Muestra el tamaño de forma legible \tn % Row Count 11 (+ 2) % Row 6 \SetRowColor{LightBackground} ls -i & Muestra el identificador del i-nodo asociado \tn % Row Count 13 (+ 2) % Row 7 \SetRowColor{white} {\bf{cd alias}} & {\bf{Cambiar el directorio actual por {\emph{alias}}}} \tn % Row Count 15 (+ 2) % Row 8 \SetRowColor{LightBackground} cd .. & Cambia al directorio padre \tn % Row Count 16 (+ 1) % Row 9 \SetRowColor{white} cd \textasciitilde{} & Cambia al directorio base ({\emph{home}}) \tn % Row Count 18 (+ 2) % Row 10 \SetRowColor{LightBackground} {\bf{pwd}} & {\bf{Muestra el directorio en el que estamos}} \tn % Row Count 20 (+ 2) % Row 11 \SetRowColor{white} {\bf{mkdir alias}} & {\bf{Crea un nuevo directorio {\emph{alias}}}} \tn % Row Count 22 (+ 2) % Row 12 \SetRowColor{LightBackground} mkdir -p alias/alias2 & Crea los directorios intermedios si no existieran \tn % Row Count 24 (+ 2) % Row 13 \SetRowColor{white} mkdir \{alias1,alias2\} & Crea varios directorios a la vez \tn % Row Count 26 (+ 2) % Row 14 \SetRowColor{LightBackground} {\bf{mv fuente destino}} & {\bf{Mueve o renombra de {\emph{fuente}} a {\emph{destino}}}} \tn % Row Count 28 (+ 2) % Row 15 \SetRowColor{white} mv -i & Pregunta antes de sobreescribir \tn % Row Count 30 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{x{2.8 cm} x{5.2 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Comandos para archivos y directorios (cont)}} \tn % Row 16 \SetRowColor{LightBackground} mv -u & Actualiza el destino sólo si es más reciente \tn % Row Count 2 (+ 2) % Row 17 \SetRowColor{white} {\bf{cp fuente destino}} & {\bf{Copia un fichero de {\emph{fuente}} a {\emph{destino}}}} \tn % Row Count 4 (+ 2) % Row 18 \SetRowColor{LightBackground} cp -R & Copia recursivamente un directorio \tn % Row Count 6 (+ 2) % Row 19 \SetRowColor{white} cp -i & Pregunta antes de sobreescribir \tn % Row Count 8 (+ 2) % Row 20 \SetRowColor{LightBackground} cp -l & Hace enlaces fuertes en lugar de copiarlos \tn % Row Count 10 (+ 2) % Row 21 \SetRowColor{white} cp -p alias /dir1/dir2 & Copia {\emph{alias}} en dir2 creando dir1 si no existe \tn % Row Count 12 (+ 2) % Row 22 \SetRowColor{LightBackground} cp *alias*{[}!A{]} dest & Copia los archivos que incluyan {\emph{alias}} y no terminen en A en destino \tn % Row Count 15 (+ 3) % Row 23 \SetRowColor{white} {\bf{rm alias}} & {\bf{Borra archivos o directorios}} \tn % Row Count 17 (+ 2) % Row 24 \SetRowColor{LightBackground} rm -r & Borra recursivamente un directorio \tn % Row Count 19 (+ 2) % Row 25 \SetRowColor{white} rm -f & Fuerza el borrado \tn % Row Count 20 (+ 1) % Row 26 \SetRowColor{LightBackground} rm -i & Pregunta antes de borrar \tn % Row Count 21 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{mkdir -p a/\{b1,b2/\{c1,c2\}\} \newline \{\{fa-check-square\}\} Crea el directorio {\emph{a}} \{\{fa-check-square\}\} En {\emph{a}} crea {\emph{b1}} y {\emph{b2}} \{\{fa-check-square\}\} En {\emph{b2}} crea {\emph{c1}} y {\emph{c2}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.56 cm} x{5.44 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Paginar, visualizar y editar ficheros}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{echo HelloWorld}} & {\bf{Escribe en la salida estandar}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{cat alias}} & {\bf{Muestra el contenido de {\emph{alias}}}} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} cat alias alias2 & Concatena el contenido de los dos ficheros \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} cat \textgreater{} alias & Escribimos y graba lo escrito en {\emph{alias}} \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} {\bf{more alias}} & {\bf{Pagina el fichero alias}} \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} cat alias | more & Muestra el contenido de {\emph{alias}} paginado \tn % Row Count 12 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.64 cm} x{5.36 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Búsquedas de ficheros y patrones}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{grep}}\{\{width=30\}\} & {\bf{Sirve para buscar patrones en ficheros}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} grep -c & Muestra la cantidad de líneas \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} grep -i & Ignora diferencias en mayúsculas y minúsculas \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} grep -H & Imprime el nombre del fichero \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} grep -l & Cuando son múltiples ficheros sólo muestra los nombres y no las líneas correspondientes \tn % Row Count 12 (+ 4) % Row 5 \SetRowColor{white} grep -v & Devuelve las que no contienen el patrón \tn % Row Count 14 (+ 2) % Row 6 \SetRowColor{LightBackground} grep -r & Busca de forma recursiva \tn % Row Count 15 (+ 1) % Row 7 \SetRowColor{white} grep -n & Imprime el número de cada línea \tn % Row Count 17 (+ 2) % Row 8 \SetRowColor{LightBackground} grep "\textasciicircum{}alias" file & Busca en {\emph{file}} las líneas que comienzan por {\emph{alias}} \tn % Row Count 20 (+ 3) % Row 9 \SetRowColor{white} {\bf{find}} & {\bf{Sirve para buscar archivos de forma recursiva}} \tn % Row Count 22 (+ 2) % Row 10 \SetRowColor{LightBackground} find -name alias & Busca los archivos con nombre {\emph{alias}} \tn % Row Count 24 (+ 2) % Row 11 \SetRowColor{white} find -user usuario & Busca los archivos de {\emph{usuario}} \tn % Row Count 26 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.04 cm} x{4.96 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Comandos para compactar y agrupar ficheros}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{gzip}}\{\{width=30\}\} & {\bf{Sirve para comprime archivos o directorios}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} gzip alias & Comprime el archivo {\emph{alias}} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} gzip {[}-1...-9 {]} alias & Indica el nivel de compresión (1 menor, 9 mayor) \tn % Row Count 7 (+ 3) % Row 3 \SetRowColor{white} gzip -r alias & Comprime de modo recursivo \tn % Row Count 9 (+ 2) % Row 4 \SetRowColor{LightBackground} gzip -l alias & Muestra información de la compresión \tn % Row Count 11 (+ 2) % Row 5 \SetRowColor{white} gzip -S .zip alias & Indica un sufijo al fichero de salida \tn % Row Count 13 (+ 2) % Row 6 \SetRowColor{LightBackground} gzip -c alias \textgreater{} alias.gz & Crea un archivo alias.gz manteniendo alias \tn % Row Count 15 (+ 2) % Row 7 \SetRowColor{white} gzip -d alias & Descomprime un archivo (como gunzip) \tn % Row Count 17 (+ 2) % Row 8 \SetRowColor{LightBackground} gunzip alias & Descomprime el archivo {\emph{alias}} \tn % Row Count 19 (+ 2) % Row 9 \SetRowColor{white} gunzip -r alias & Descomprime de modo recursivo \tn % Row Count 21 (+ 2) % Row 10 \SetRowColor{LightBackground} {\bf{tar}} & {\bf{Sirve para compactar archivos o directorios}} \tn % Row Count 23 (+ 2) % Row 11 \SetRowColor{white} tar -c alias & Permite crear (tarear) \tn % Row Count 24 (+ 1) % Row 12 \SetRowColor{LightBackground} tar -x alias & Permite extraer (destarear) \tn % Row Count 26 (+ 2) % Row 13 \SetRowColor{white} tar -v alias & Activa el modo debug \tn % Row Count 27 (+ 1) % Row 14 \SetRowColor{LightBackground} tar -f alias & Agrupa o desagrupa hacia el destino {\emph{alias}} \tn % Row Count 29 (+ 2) % Row 15 \SetRowColor{white} tar -z alias & Compacta o descompacta el fichero resultante una vez agrupado o desagrupado con gzip y gunzip \tn % Row Count 33 (+ 4) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{x{3.04 cm} x{4.96 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Comandos para compactar y agrupar ficheros (cont)}} \tn % Row 16 \SetRowColor{LightBackground} tar -t alias & Lista el contenido de un fichero agrupado \tn % Row Count 2 (+ 2) % Row 17 \SetRowColor{white} tar -M alias & Agrupa en volúmenes \tn % Row Count 3 (+ 1) % Row 18 \SetRowColor{LightBackground} tar -czvf alias.gz alias & Empaqueta y comprime {\emph{alias}} \tn % Row Count 5 (+ 2) % Row 19 \SetRowColor{white} tar -tzvf alias & Muestra el contenido de {\emph{alias}} \tn % Row Count 7 (+ 2) % Row 20 \SetRowColor{LightBackground} tar -xzvf alias.gz & Desempaqueta y descomprime {\emph{alias}} \tn % Row Count 9 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.16 cm} x{5.84 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Comandos para filtrar ficheros}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{file alias}} & {\bf{Determina el tipo de fichero}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{stat alias}} & {\bf{Muestra información de un fichero}} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{sort alias}} & {\bf{Ordena las líneas de un fichero}} \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} sort -r & Ordena al revés \tn % Row Count 7 (+ 1) % Row 4 \SetRowColor{LightBackground} sort -f & Trata mayúsculas y minúsculas por igual \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} {\bf{wc}} & {\bf{Contador de palabras}} \tn % Row Count 10 (+ 1) % Row 6 \SetRowColor{LightBackground} wc -l alias & Cuenta las líneas \tn % Row Count 12 (+ 2) % Row 7 \SetRowColor{white} wc -w alias & Cuenta las palabras \tn % Row Count 14 (+ 2) % Row 8 \SetRowColor{LightBackground} wc -c alias & Cuenta los bytes \tn % Row Count 16 (+ 2) % Row 9 \SetRowColor{white} {\bf{uniq alias}} & {\bf{Borra las líneas repetidas del fichero {\emph{alias}}}} \tn % Row Count 18 (+ 2) % Row 10 \SetRowColor{LightBackground} uniq -c alias & Utiliza como prefijo en cada línea el número de ocurrencias \tn % Row Count 21 (+ 3) % Row 11 \SetRowColor{white} uniq -d alias & Sólo imprime las líneas duplicadas \tn % Row Count 23 (+ 2) % Row 12 \SetRowColor{LightBackground} {\bf{head alias}} & {\bf{Muestra las 10 primeras líneas (por defecto) de alias}} \tn % Row Count 25 (+ 2) % Row 13 \SetRowColor{white} head -\textless{}n\textgreater{} alias & Muestra las {\emph{n}} primeras líneas \tn % Row Count 27 (+ 2) % Row 14 \SetRowColor{LightBackground} {\bf{tail alias}} & {\bf{Muestra las 10 últimas líneas (por defecto) de alias}} \tn % Row Count 29 (+ 2) % Row 15 \SetRowColor{white} tail -f alias & Se ejecuta continua hasta que se pulse Ctrl+C \tn % Row Count 31 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{x{2.16 cm} x{5.84 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Comandos para filtrar ficheros (cont)}} \tn % Row 16 \SetRowColor{LightBackground} tail -q alias & No muestra los nombres de los ficheros cuando son varios \tn % Row Count 2 (+ 2) % Row 17 \SetRowColor{white} tail -\textless{}n\textgreater{} & Muestra las {\emph{n}} últimas líneas \tn % Row Count 4 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.72 cm} x{5.28 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Redireccionamiento}} \tn % Row 0 \SetRowColor{LightBackground} ls \textgreater{} lista & Crea el archivo {\emph{lista}} o lo sobreescribe \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} ls \textgreater{}\textgreater{} lista & Añade a continuación del archivo {\emph{lista}} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} sort \textless{} lista & Ordena {\emph{lista}}y lo muestra \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} sort \textless{} lista \textgreater{} lista2 & Ordena {\emph{lista}} y lo almacena en {\emph{lista2}} \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} ls -l | less & Hace ls y le aplica less \tn % Row Count 8 (+ 1) % Row 5 \SetRowColor{white} ls -l | grep a & Hace ls y le aplica grep a \tn % Row Count 10 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4.48 cm} x{3.52 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Obtener ayuda}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{help}}\{\{width=30\}\} & {\bf{help alias}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{man}} & {\bf{man alias}} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} {\bf{info}} & {\bf{info alias}} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} {\bf{whatis}} & {\bf{whatis alias}} \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.48 cm} x{5.52 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Ejecución de archivos .sh}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{sh}}\{\{width=30\}\} & {\bf{Sirve para ejecutar archivos sh}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} sh alias.sh & Ejecuta el contenido del archivo alias.sh \tn % Row Count 4 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.56 cm} x{5.44 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Enlaces}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{ln}} & {\bf{Sirve para crear enlaces físicos o simbólicos}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} ln origen nombre & Crea un enlace físico a origen \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} ln -s origen nombre & Crea un enlace simbólico a origen \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{{\bf{Enlace físico (duro):}} Un fichero puede tener varios nombres. Un enlace físico es un nombre más para un fichero en otra ubicación diferente. El fichero solamente será eliminado cuando todos los nombres se hayan borrado. Solamente se pueden crear enlaces físicos de ficheros, no para directorios. \newline {\bf{Enlace simbólico (blando):}} Es un puntero hacia un fichero o directorio. Si el archivo destino se elimina, el enlace quedará inutilizable.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.4 cm} x{5.6 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Comandos para desconectarse del sistema}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{exit}} & Permite terminar el shell actual. Si se tiene un único shell es equivalente a desconectarse del sistema, pero si se está en un subshell, sólo se terminará éste, retornando al shell anterior. \tn % Row Count 7 (+ 7) % Row 1 \SetRowColor{white} {\bf{logout}} & Permite desconectarse del sistema a partir de un login shell. {\emph{Ctrl-D}} permite terminar el shell actual. \tn % Row Count 11 (+ 4) % Row 2 \SetRowColor{LightBackground} {\bf{shutdown}} & Sirve para apagr totalmente el sistema. \tn % Row Count 13 (+ 2) % Row 3 \SetRowColor{white} shutdown -h now & Apaga el sistema (-halt) ahora (now) \tn % Row Count 15 (+ 2) % Row 4 \SetRowColor{LightBackground} shutdown -h 18:45 & Se apagará a las 18:45 \tn % Row Count 17 (+ 2) % Row 5 \SetRowColor{white} shutdown -r -g5 & Reiniciará (-r) en 5 minutos (-g5) \tn % Row Count 19 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}