\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{bromono} \pdfinfo{ /Title (centos-cheat-sheet.pdf) /Creator (Cheatography) /Author (bromono) /Subject (CentOS 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{CentOS Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{bromono} via \textcolor{DarkBackground}{\uline{cheatography.com/20940/cs/3795/}}} \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}bromono \\ \uline{cheatography.com/bromono} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 1st April, 2015.\\ Updated 12th May, 2016.\\ 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}{Help Commands}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{{\bf{whatis}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Search whatis database for complete words; used to find short descriptions of system commands} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{{\bf{which}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Shows the full path to shell commands} \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{{\bf{whereis}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Locate binary, source and man pages for a command} \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{{\bf{apropos}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Search through a database of short description to find help and man pages containing certain terms and commands} \tn % Row Count 12 (+ 4) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{{\bf{man}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Manual pages for commands} \tn % Row Count 14 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.27021 cm} x{2.16279 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Bash Variables}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{env}} & List current environment variables \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{echo}} {\emph{\$NAME}} & Output value of {\emph{\$NAME}} variable \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{export}} {\emph{NAME=value}} & set {\emph{\$NAME}} to value in enviroment \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} {\bf{set}} & Change value of shell atrributes and positional parameters or display list of shell variables and functions \tn % Row Count 11 (+ 5) % Row 4 \SetRowColor{LightBackground} \$PATH & Exectuable search path \tn % Row Count 12 (+ 1) % Row 5 \SetRowColor{white} \$HOME & Home directory \tn % Row Count 13 (+ 1) % Row 6 \SetRowColor{LightBackground} \$SHELL & Current shell \tn % Row Count 14 (+ 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}{Partitions and Disk Management}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{{\bf{df}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Report file system disk space usage} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{{\bf{mount}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Show whats mounted or mount a file system} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{{\bf{unmount}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Unmount a file system} \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{{\bf{fuser}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Identifies processes using files or sockets} \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{{\bf{isof}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}list open files on the system} \tn % Row Count 10 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{0.89258 cm} x{2.54042 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Directory Operations}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{clear}} & clears your screen \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{pwd}} & Shows current directory \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} {\bf{cd}} & Change directories \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} {\bf{ls}} & List directory contents \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} {\bf{mkdir}} & Create a new directory \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} {\bf{rmdir}} & Delete an empty directory \tn % Row Count 6 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{p{0.61794 cm} x{2.81506 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{File Operations}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{cat}} & Print a file on the screen, concatenate files \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{touch}} & Create an empty file, change file timestamps \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{cp}} & Copy directories or files \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} {\bf{mv}} & Moves directories or files \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} {\bf{rm}} & Removes directories or files (This is how you remove recursively) \tn % Row Count 9 (+ 3) % Row 5 \SetRowColor{white} {\bf{ln}} & Creates a symbolic or hard link for a file \tn % Row Count 11 (+ 2) % Row 6 \SetRowColor{LightBackground} {\bf{less}} & View a file on page at a time, allows for going backwards \tn % Row Count 13 (+ 2) % Row 7 \SetRowColor{white} {\bf{head}} & Print the first 10 lines of a file \tn % Row Count 15 (+ 2) % Row 8 \SetRowColor{LightBackground} {\bf{tail}} & Print the last 10 lines of a file \tn % Row Count 17 (+ 2) % Row 9 \SetRowColor{white} {\bf{wc}} & Count the number of words or characters in a file \tn % Row Count 19 (+ 2) % Row 10 \SetRowColor{LightBackground} {\bf{stat}} & Display file of file system status \tn % Row Count 21 (+ 2) % Row 11 \SetRowColor{white} {\bf{cut}} & Remove sections from lines of input \tn % Row Count 23 (+ 2) % Row 12 \SetRowColor{LightBackground} {\bf{paste}} & Merge lines of files \tn % Row Count 25 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{p{0.6866 cm} x{2.7464 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Searching Files}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{grep}} & Search text files for lines containing a matching pattern \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{locate}} & Find files by matching the whole path name \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{find}} & search for files in a directory hierarchy \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}{Commands to know}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{uname}} & Prints information about a machine and operating system it is run on \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} {\bf{who}} & Print who is currently logged in \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{uptime}} & Prints system uptime and load \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} {\bf{sudo}} & Execute a command as another user, usually with higher permissions \tn % Row Count 10 (+ 3) % Row 4 \SetRowColor{LightBackground} {\bf{shutdown}} & Bring the system down in a safe way \tn % Row Count 12 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{p{0.61794 cm} x{2.81506 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{ls Options}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{-a}} & Show all (including hidden) \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{-R}} & Recursive list \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} {\bf{-r}} & Reverse order \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} {\bf{-t}} & Sort by last modified \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} {\bf{-S}} & Sort by file size \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} {\bf{-l}} & Long listing format \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} {\bf{-1}} & One file per line \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} {\bf{-m}} & Comma-separated output \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} {\bf{-Q}} & Quoted output \tn % Row Count 9 (+ 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}{grep Options}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{-i}} & Case insensitive search \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{-r}} & Recursive search \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} {\bf{-v}} & Inverted search \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} {\bf{-o}} & Show matched part of file only \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{p{0.75526 cm} x{2.67774 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Process Management}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{ps}} & Report on current processes \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{pstree}} & Display a tree of processes \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{top}} & Show real time processes \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} {\bf{kill}} & Terminate a process by PID \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} {\bf{killall}} & Kill a process by name \tn % Row Count 7 (+ 2) % Row 5 \SetRowColor{white} {\bf{pkill}} & Look up or signal processes based on same and other attributes \tn % Row Count 9 (+ 2) % Row 6 \SetRowColor{LightBackground} {\bf{pgrep}} & Grep for process information \tn % Row Count 11 (+ 2) % Row 7 \SetRowColor{white} {\bf{ctrl+z}} & Stop the job but don't end process \tn % Row Count 13 (+ 2) % Row 8 \SetRowColor{LightBackground} {\bf{\&}} & Place this after a command to put the process in the background \tn % Row Count 16 (+ 3) % Row 9 \SetRowColor{white} {\bf{jobs}} & Display all jobs \tn % Row Count 17 (+ 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}{File Permissions}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{{\bf{chmod}} 775 {\emph{file}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Change file permissions to 775} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{{\bf{chmod}} -R 600 {\emph{folder}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Recursively chmod {\emph{folder}} to 600} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{{\bf{chown}} {\emph{user.group file}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Change {\emph{file}} owner to {\emph{user}} and group to {\emph{group}}} \tn % Row Count 7 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{p{0.47394 cm} p{0.73724 cm} p{0.71091 cm} p{0.71091 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{3.833cm}}{\bf\textcolor{white}{File Permission Numbers}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{4}{x{3.833cm}}{First number is the {\bf{owner}} permission, second is {\bf{group}} and third is {\bf{everyone}}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{4}{x{3.833cm}}{Calculate permission digits by adding number below:} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} suid=4 & {\bf{421}} & {\bf{421}} & {\bf{421}} \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} sgid=2 & {\bf{rwx}} & {\bf{rwx}} & {\bf{rwx}} \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} flag=1 & {\bf{owner}} & {\bf{group}} & {\bf{world}} \tn % Row Count 7 (+ 1) % Row 5 \SetRowColor{white} \mymulticolumn{4}{x{3.833cm}}{`example`: {\bf{cmod}} 777 {\emph{/etc/file.txt}}} \tn % Row Count 8 (+ 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}{Networking Directories}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{{\bf{/etc/sysconfig/network-scripts}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}This folder contains the configuration files for each interface on the system; usually named ifcfg-eth0 or ifcfg-eth1.} \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{{\bf{/etc/resolv.conf}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}This file contains the permanent Domain Name Server (DNS) settings} \tn % Row Count 7 (+ 3) \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}{Networking}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{ifconfig}} & Configure network interface \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{route}} & Show/Manipulate the IP routing table \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{ip}} & Show/Manipulate routing, devices, policy and tunnels; replaces ifconfig, arp, and route \tn % Row Count 7 (+ 3) % Row 3 \SetRowColor{white} {\bf{ifup}} & Bring network interface up \tn % Row Count 8 (+ 1) % Row 4 \SetRowColor{LightBackground} {\bf{ifdown}} & Bring network interface down \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} {\bf{ping}} & Send ICMP ECHO\_REQUEST to network hosts \tn % Row Count 12 (+ 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}{Accounts and Security Administration}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{{\bf{groupadd}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Create a new group} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{{\bf{groupdel}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Delete a group} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{{\bf{groupmod}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Modify definition of a specified group} \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{{\bf{useradd}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Create a new user} \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{{\bf{userdel}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Delete a user} \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{{\bf{usermod}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Modify a user account} \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{{\bf{passwd}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Update a user's password} \tn % Row Count 14 (+ 2) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{{\bf{vipw}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Edit password, group, shadow-password (Updates etc/shadow)} \tn % Row Count 17 (+ 3) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{{\bf{vigr}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Edit password, group, shadow-group (Updates etc/gshadow)} \tn % Row Count 20 (+ 3) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{{\bf{chage}}} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Change password policy} \tn % Row Count 22 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}