\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{kosackm} \pdfinfo{ /Title (sys-admin.pdf) /Creator (Cheatography) /Author (kosackm) /Subject (Sys Admin 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{Sys Admin Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{kosackm} via \textcolor{DarkBackground}{\uline{cheatography.com/89661/cs/20408/}}} \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}kosackm \\ \uline{cheatography.com/kosackm} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 12th December, 2019.\\ Updated 12th December, 2019.\\ 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*}{3} \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Bash}} \tn % Row 0 \SetRowColor{LightBackground} \#!/bin/env bash & the shebang \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} ./ file-name.sh & how to run a bash script \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} X="hello" & set variables \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} \$X & use the variable \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} exit code & 1 for false, 0 for true \tn % Row Count 7 (+ 2) % Row 5 \SetRowColor{white} {[} {]} & shorthand for test \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} {[}{[} {]}{]} & better shorthand for test, handles spaces better \tn % Row Count 11 (+ 3) % Row 7 \SetRowColor{white} if {[}{[} {]}{]}; then; fi & basic if-then-exit statement \tn % Row Count 13 (+ 2) % Row 8 \SetRowColor{LightBackground} if {[}{[} {]}{]}; then; else; fi & basic if-then-else \tn % Row Count 15 (+ 2) % Row 9 \SetRowColor{white} if {[}{[} {]}{]}; then; elif {[}{[} {]}{]}; then; else; fi & basic if-elif \tn % Row Count 18 (+ 3) % Row 10 \SetRowColor{LightBackground} \$? & exit code of last run command \tn % Row Count 20 (+ 2) % Row 11 \SetRowColor{white} \$1, \$2 … \$9 & argument 1, arg 2, ... \tn % Row Count 22 (+ 2) % Row 12 \SetRowColor{LightBackground} env & see all variables already set \tn % Row Count 24 (+ 2) % Row 13 \SetRowColor{white} \_\_ -eq \_\_ & check if things are equal \tn % Row Count 26 (+ 2) % Row 14 \SetRowColor{LightBackground} bash -x \_\_\_\_ & debugger \tn % Row Count 27 (+ 1) % Row 15 \SetRowColor{white} for \_\_ in \_\_ ; do; commands; done & basic for loop, ; indicates new line \tn % Row Count 29 (+ 2) % Row 16 \SetRowColor{LightBackground} while true; do; commands; done & while loop \tn % Row Count 31 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Bash (cont)}} \tn % Row 17 \SetRowColor{LightBackground} until true; do; commands; done & until loop \tn % Row Count 2 (+ 2) % Row 18 \SetRowColor{white} break & exit a loop \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.33919 cm} x{2.63781 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Ownership}} \tn % Row 0 \SetRowColor{LightBackground} chown/chgrp {[}owner{]} {[}file{]} & change owner/group \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} chmod {[}u,g,o{]}+{[}permission{]} {[}file{]} & add permissions \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} chmod {[}u,g,o{]}-{[}permission{]} {[}file{]} & remove permission \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} {[}u, g, o{]} & user, group, other \tn % Row Count 7 (+ 1) % Row 4 \SetRowColor{LightBackground} {[}permission{]} & read (r), write (w), execute (x) \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} 7 & read, write and execute permissions \tn % Row Count 11 (+ 2) % Row 6 \SetRowColor{LightBackground} 6 & read and write permissions \tn % Row Count 13 (+ 2) % Row 7 \SetRowColor{white} 5 & read and execute permissions \tn % Row Count 15 (+ 2) % Row 8 \SetRowColor{LightBackground} 4 & read permissions \tn % Row Count 16 (+ 1) % Row 9 \SetRowColor{white} 3 & write and execute permissions \tn % Row Count 18 (+ 2) % Row 10 \SetRowColor{LightBackground} 2 & write permissions \tn % Row Count 19 (+ 1) % Row 11 \SetRowColor{white} 1 & execute permissions \tn % Row Count 20 (+ 1) % Row 12 \SetRowColor{LightBackground} 0 & no permissions \tn % Row Count 21 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.43873 cm} x{2.53827 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{How We Set Up Samba}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{sudo dnf install samba} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} sudo nano \seqsplit{/etc/samba/smb.conf} & add gloabals \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{map archive = no} \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{map hidden = no} \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{map read only = no} \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{map system = no} \tn % Row Count 7 (+ 1) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{store dos attributes = yes} \tn % Row Count 8 (+ 1) % Row 7 \SetRowColor{white} sudo firewall-cmd -{}-add-service=samba & open the firewall \tn % Row Count 10 (+ 2) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{sudo systemctl start smb.service} \tn % Row Count 11 (+ 1) % Row 9 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{sudo systemctl start nmb.service} \tn % Row Count 12 (+ 1) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{sudo systemctl enable smb.service} \tn % Row Count 13 (+ 1) % Row 11 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{sudo systemctl enable nmb.service} \tn % Row Count 14 (+ 1) % Row 12 \SetRowColor{LightBackground} sudo smbpasswd -a {[}user{]} & add the user and give password for samba \tn % Row Count 16 (+ 2) % Row 13 \SetRowColor{white} sudo setsebool -P \seqsplit{samba\_export\_all\_rw} 1 & need this to let samba run because of a se fedora setting \tn % Row Count 19 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Networking}} \tn % Row 0 \SetRowColor{LightBackground} TCP/IP & Transmission Control Protocol/Internet Protocol \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} ping {[}web address{]} & send packets to web address to test connection and speed \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} ping -s {[}number{]} {[}address{]} & change packet size sent \tn % Row Count 8 (+ 2) % Row 3 \SetRowColor{white} traceroute {[}web address{]} & shows route packets take when being sent \tn % Row Count 10 (+ 2) % Row 4 \SetRowColor{LightBackground} firewall-cmd -{}-remove-port={[}port \#{]}/{[}port type{]} & take down firewall for specified port \tn % Row Count 13 (+ 3) % Row 5 \SetRowColor{white} firewall-cmd -{}-add-port={[}port \#{]}/{[}port type{]} & put up firewall for specified port \tn % Row Count 16 (+ 3) % Row 6 \SetRowColor{LightBackground} firewall-cmd -{}-add-service={[}service{]} & some services are recognized by firewall command, use this to let them work \tn % Row Count 20 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.78712 cm} x{2.18988 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Secure Shell}} \tn % Row 0 \SetRowColor{LightBackground} ssh {[}name{]}@{[}system name{]} & using the secure shell \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} scp {[}dir{]}/{[}file{]} {[}name{]}@{[}system name{]}: & copy from local to other system \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} scp {[}name{]}@{[}system name{]}:{[}dir{]}/{[}file{]} . & copy from other system to local \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.04057 cm} x{2.93643 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Common Commands}} \tn % Row 0 \SetRowColor{LightBackground} sudo !! & run previous command as sudo \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} man {[}command{]} & for manpages (give info about command) \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} mkdir & make directory \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} rmdir & remove directory \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} cp -r {[}source{]} {[}destination{]} & copy file recursively \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} which {[}filename{]} & gives location of file \tn % Row Count 9 (+ 1) % Row 6 \SetRowColor{LightBackground} less & read files and able to scroll through, better than 'more' \tn % Row Count 12 (+ 3) % Row 7 \SetRowColor{white} grep & search text \tn % Row Count 13 (+ 1) % Row 8 \SetRowColor{LightBackground} cat {[}filename{]} & shows content of file \tn % Row Count 14 (+ 1) % Row 9 \SetRowColor{white} head & shows beginning of file \tn % Row Count 15 (+ 1) % Row 10 \SetRowColor{LightBackground} tail & shows end of file \tn % Row Count 16 (+ 1) % Row 11 \SetRowColor{white} find . -name *.{[}pP{]}{[}dD{]}{[}fF{]} & find file, use -iname for case-insensitive \tn % Row Count 18 (+ 2) % Row 12 \SetRowColor{LightBackground} history & give a list of previously entered commands \tn % Row Count 20 (+ 2) % Row 13 \SetRowColor{white} !{[}line \#{]} & (use this with history) run the command from the history on given line \tn % Row Count 24 (+ 4) % Row 14 \SetRowColor{LightBackground} history | grep {[}word{]} & search history for commands including the word \tn % Row Count 26 (+ 2) % Row 15 \SetRowColor{white} script & record output from entire session \tn % Row Count 28 (+ 2) % Row 16 \SetRowColor{LightBackground} yes "string" & repeat string until manually stopped \tn % Row Count 30 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.04057 cm} x{2.93643 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Common Commands (cont)}} \tn % Row 17 \SetRowColor{LightBackground} cal & ascii calendar \tn % Row Count 1 (+ 1) % Row 18 \SetRowColor{white} date & gives current date \tn % Row Count 2 (+ 1) % Row 19 \SetRowColor{LightBackground} \textasciicircum{}this\textasciicircum{}that & run previous command replacing "this" with "that" \tn % Row Count 5 (+ 3) % Row 20 \SetRowColor{white} uptime & show system uptime \tn % Row Count 6 (+ 1) % Row 21 \SetRowColor{LightBackground} whoami & display current user name \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.94103 cm} x{3.03597 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{DNF}} \tn % Row 0 \SetRowColor{LightBackground} **dnf \_\_\_\_ {[}package name{]} & \_\_\_\_ can be filled with the words below \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} update (or upgrade) & update a package \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} install & install a package \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} remove & remove a package \tn % Row Count 6 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.23965 cm} x{2.73735 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Systemctl}} \tn % Row 0 \SetRowColor{LightBackground} systemctl daemon-reload & Reload systemd manager configuration \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} journalctl {[}service name{]} & check the logs of a servide \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{systemctl \_\_\_\_ {[}service name{]}}} & \_\_\_\_ can be filled with the words below \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} start & start a system service \tn % Row Count 7 (+ 1) % Row 4 \SetRowColor{LightBackground} stop & stop a system service \tn % Row Count 8 (+ 1) % Row 5 \SetRowColor{white} status & check the status of a service \tn % Row Count 10 (+ 2) % Row 6 \SetRowColor{LightBackground} enable & let service start on boot \tn % Row Count 12 (+ 2) % Row 7 \SetRowColor{white} disable & make it so service does not start on boot \tn % Row Count 14 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.69218 cm} x{3.28482 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Other Info}} \tn % Row 0 \SetRowColor{LightBackground} * & any character any number of times \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} ? & any character one time \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} {[}cC{]} & one of these characters \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} /etc/skel & Sample startup files you can place in home directories for new users \tn % Row Count 7 (+ 3) % Row 4 \SetRowColor{LightBackground} {[}command{]} | {[}command{]} & piping \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} \$ & regular user \tn % Row Count 10 (+ 1) % Row 6 \SetRowColor{LightBackground} \# & root user \tn % Row Count 11 (+ 1) % Row 7 \SetRowColor{white} \textasciitilde{} & home directory \tn % Row Count 12 (+ 1) % Row 8 \SetRowColor{LightBackground} nano and vi & text editors \tn % Row Count 13 (+ 1) % Row 9 \SetRowColor{white} \& & run in background \tn % Row Count 14 (+ 1) % Row 10 \SetRowColor{LightBackground} ctrl+z & suspend process running \tn % Row Count 15 (+ 1) % Row 11 \SetRowColor{white} ctrl+c & kill process running \tn % Row Count 16 (+ 1) % Row 12 \SetRowColor{LightBackground} ctrl+s & stop output to terminal \tn % Row Count 17 (+ 1) % Row 13 \SetRowColor{white} ctrl+q & return from ctrl+s state \tn % Row Count 18 (+ 1) % Row 14 \SetRowColor{LightBackground} ctrl+a & go to start of a line \tn % Row Count 19 (+ 1) % Row 15 \SetRowColor{white} ctrl+e & go to end of a line \tn % Row Count 20 (+ 1) % Row 16 \SetRowColor{LightBackground} ctrl+k & cut from cursor to end of line \tn % Row Count 22 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.63781 cm} x{2.33919 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Git}} \tn % Row 0 \SetRowColor{LightBackground} git clone /path/to/repository & create copy of git repository \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} git add filename & add file to git repository \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} git commit -am "message" & send the changes to git repository \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} git push & makes the changes to git repository \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.68758 cm} x{2.28942 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Download/Extract}} \tn % Row 0 \SetRowColor{LightBackground} wget {[}url for file{]} & download file \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} tar -xzf {[}file{]} & extract tar file \tn % Row Count 2 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.34379 cm} x{3.63321 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Directories of Note}} \tn % Row 0 \SetRowColor{LightBackground} / & root directory \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} /bin & contains Unix commands \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} /boot & contains files needed to boot the system \tn % Row Count 4 (+ 2) % Row 3 \SetRowColor{white} /dev & device files \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} /etc & contains most configuration files \tn % Row Count 7 (+ 2) % Row 5 \SetRowColor{white} \seqsplit{/etc/passwd} & contains user information (name, password, id, ...) \tn % Row Count 9 (+ 2) % Row 6 \SetRowColor{LightBackground} /etc/skel & sample files for making a new home directory \tn % Row Count 11 (+ 2) % Row 7 \SetRowColor{white} /home & home folder for user \tn % Row Count 12 (+ 1) % Row 8 \SetRowColor{LightBackground} /lib & contains files for /bin and /sbin \tn % Row Count 14 (+ 2) % Row 9 \SetRowColor{white} /tmp & location of temporary files for the system \tn % Row Count 16 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}