\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{pka2412} \pdfinfo{ /Title (linux-commands.pdf) /Creator (Cheatography) /Author (pka2412) /Subject (Linux commands 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}{C4AAF0} \definecolor{LightBackground}{HTML}{F7F4FD} \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{Linux commands Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{pka2412} via \textcolor{DarkBackground}{\uline{cheatography.com/192189/cs/39963/}}} \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}pka2412 \\ \uline{cheatography.com/pka2412} \\ \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 22nd August, 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.64 cm} x{5.36 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Basic info}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{pwd}} & show present working directory \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{uname}} & show name of the kernel \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} {\bf{uname -r}} & show kernel version \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} {\bf{cd}} & change directory \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} {\bf{clear}} & clear the screen \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} {\bf{whoami}} & show current login user name \tn % Row Count 8 (+ 2) % Row 6 \SetRowColor{LightBackground} {\bf{history}} & show list of previously used commands \tn % Row Count 10 (+ 2) % Row 7 \SetRowColor{white} {\bf{date}} & show time and date \tn % Row Count 11 (+ 1) % Row 8 \SetRowColor{LightBackground} {\bf{echo}} {\emph{"Hello"}} & display {\emph{Hello}} text \tn % Row Count 13 (+ 2) % Row 9 \SetRowColor{white} {\bf{sudo}} & run commands as super user \tn % Row Count 14 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Working with directory and files}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{mkdir}} {\emph{dir}} & create single directory {\emph{dir}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{mkdir}} {\emph{dir1}} {\emph{dir2}} & create multiple directories {\emph{dir1}} {\emph{dir2}} \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} {\bf{mkdir -p}} {\emph{dir/a/b/c}} & create nested directory {\emph{dir/a/b/c}} \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} {\bf{mkdir}} {\emph{dir\{1..10\}}} & created 10 numbered directories from {\emph{dir1}} to {\emph{dir10}} \tn % Row Count 10 (+ 3) % Row 4 \SetRowColor{LightBackground} {\bf{rm -r}} {\emph{dir}} & remove {\emph{dir}} recursively \tn % Row Count 12 (+ 2) % Row 5 \SetRowColor{white} {\bf{touch}} {\emph{file}} & create empty file {\emph{file}} \tn % Row Count 14 (+ 2) % Row 6 \SetRowColor{LightBackground} {\bf{touch}} {\emph{file1}} {\emph{file2}} & create multiple files {\emph{file1}} {\emph{file2}} \tn % Row Count 16 (+ 2) % Row 7 \SetRowColor{white} {\bf{touch}} {\emph{file\{1..10\}}} & create 10 numbered files from {\emph{file1}} to {\emph{file10}} \tn % Row Count 19 (+ 3) % Row 8 \SetRowColor{LightBackground} {\bf{cp -rf}} {\emph{/dir/file1 /dir2}} & copy file {\emph{file1}} to {\emph{dir2}} directory recursively and forcefully \tn % Row Count 23 (+ 4) % Row 9 \SetRowColor{white} {\bf{mv}} {\emph{/dir/file1 /dir2}} & move file {\emph{file1}} to {\emph{dir2}} directory \tn % Row Count 25 (+ 2) % Row 10 \SetRowColor{LightBackground} {\bf{rm}} {\emph{file1}} & remove file {\emph{file1}} \tn % Row Count 26 (+ 1) % Row 11 \SetRowColor{white} {\bf{ls -al}} & show files - both regular \& hidden files and their permissions \tn % Row Count 30 (+ 4) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Working with directory and files (cont)}} \tn % Row 12 \SetRowColor{LightBackground} {\bf{cat}} {\emph{file1}} & display contents of {\emph{file1}} \tn % Row Count 2 (+ 2) % Row 13 \SetRowColor{white} {\bf{find}} {\emph{/dir1}} {\bf{-name}} {\emph{file1}} & find {\emph{file1}} under {\emph{/dir1}} directory \tn % Row Count 4 (+ 2) % Row 14 \SetRowColor{LightBackground} {\bf{find}} {\emph{/dir1}} {\bf{-perm}} 664 & find all files/directories with read, write permission to owner and group, read permission for others in directory {\emph{dir1}} \tn % Row Count 11 (+ 7) % Row 15 \SetRowColor{white} {\bf{find}} {\emph{/dir1}} {\bf{-empty -exec rm -r \{\}}}** & find and remove all empty files/directories from {\emph{/dir1}} \tn % Row Count 14 (+ 3) % Row 16 \SetRowColor{LightBackground} {\bf{wc -l}} {\emph{file1}} & count the number of lines in {\emph{file1}} \tn % Row Count 16 (+ 2) % Row 17 \SetRowColor{white} {\bf{wc -w}} {\emph{file1}} & count the number of words in "file1* \tn % Row Count 18 (+ 2) % Row 18 \SetRowColor{LightBackground} {\bf{head}} {\emph{file1}} & display top 10 lines of {\emph{file1}} \tn % Row Count 20 (+ 2) % Row 19 \SetRowColor{white} {\bf{head -n 20}} {\emph{file1}} & display top 20 lines of {\emph{file1}} \tn % Row Count 22 (+ 2) % Row 20 \SetRowColor{LightBackground} {\bf{tail}} {\emph{file1}} & display last 10 lines of {\emph{file1}} \tn % Row Count 24 (+ 2) % Row 21 \SetRowColor{white} {\bf{tail -n 20}} {\emph{file1}} & display last 20 lines of {\emph{file1}} \tn % Row Count 26 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.52 cm} x{4.48 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Networking}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{ifconfig}} or {\bf{ip addr}} & show ip address \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{nmcli con show}} & show list of connections \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{nslookup}} & queries the DNS server for information about a domain name or IP address \tn % Row Count 8 (+ 4) % Row 3 \SetRowColor{white} {\bf{iptables}} & sets up, maintains, and inspects the tables of IPv4/IPv6 packet filter rules in the Linux kernel firewall \tn % Row Count 13 (+ 5) % Row 4 \SetRowColor{LightBackground} {\bf{ping}} {\emph{host}} & send packets to {\emph{host}} to check the connectivity \tn % Row Count 16 (+ 3) % Row 5 \SetRowColor{white} {\bf{ping -c}} {\emph{5 host}} & send 5 packets to {\emph{host}} \tn % Row Count 18 (+ 2) % Row 6 \SetRowColor{LightBackground} {\bf{curl}} & facilitates the transfer of data to or from a server, using any of the protocols it supports \tn % Row Count 23 (+ 5) % Row 7 \SetRowColor{white} {\bf{netstat}} & Displays network connections and network statistics, such as active sockets, routing tables, and network interface statistics \tn % Row Count 29 (+ 6) % Row 8 \SetRowColor{LightBackground} {\bf{ss-keygen}} & Creates a pair of public and private authentication keys \tn % Row Count 32 (+ 3) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{x{3.52 cm} x{4.48 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Networking (cont)}} \tn % Row 9 \SetRowColor{LightBackground} {\bf{ssh}} {\emph{user@host}} & connect {\emph{user}} to {\emph{host}} using ssh \tn % Row Count 2 (+ 2) % Row 10 \SetRowColor{white} {\bf{scp}} {\emph{file1 user1@host:/dir}} & copy {\emph{file1}} from local to remote host {\emph{host}} to {\emph{/dir}} location \tn % Row Count 5 (+ 3) \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}{System and process monitoring}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{uptime}} & show current uptime \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{df}} & show disk usage \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} {\bf{du}} & show directory space usage \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} {\bf{free}} & show memory and swap usage \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} {\bf{ps}} & show all current active processes \tn % Row Count 6 (+ 2) % Row 5 \SetRowColor{white} {\bf{top}} & task manager program displays information about CPU and memory utilization \tn % Row Count 9 (+ 3) % Row 6 \SetRowColor{LightBackground} {\bf{kill}} {\emph{pid}} & kill process with process id {\emph{pid}} \tn % Row Count 11 (+ 2) % Row 7 \SetRowColor{white} {\bf{bg}} & list stopped or background jobs \tn % Row Count 13 (+ 2) % Row 8 \SetRowColor{LightBackground} {\bf{lsof}} & Lists all files opened by any process of a system \tn % Row Count 15 (+ 2) % Row 9 \SetRowColor{white} {\bf{lsof -u}} {\emph{user1}} & Lists all files opened by {\emph{user1}} \tn % Row Count 17 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.76 cm} x{4.24 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{File permissions}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{chmod {[}symbolic{]}}} {\emph{file1}} & change file permissions of file {\emph{file1}} based on {\emph{{[}symbolic{]}}} code \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} {\bf{chmod u+r}} {\emph{file1}} & add read permission to owner for {\emph{file1}} \tn % Row Count 6 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{chmod g+rw}} {\emph{file1}} & add read, write permission to group for {\emph{file1}} \tn % Row Count 9 (+ 3) % Row 3 \SetRowColor{white} {\bf{chmod o-r}} {\emph{file1}} & remove read permission to others for {\emph{file1}} \tn % Row Count 12 (+ 3) % Row 4 \SetRowColor{LightBackground} {\bf{chmod {[}octal{]}}} {\emph{file1}} & change file permissions of file {\emph{file1}} based on {\emph{{[}octal{]}}} code \tn % Row Count 15 (+ 3) % Row 5 \SetRowColor{white} {\bf{chmod 777}} {\emph{file1}} & add read, write, execute permission to owner, group, others for {\emph{file1}} \tn % Row Count 19 (+ 4) % Row 6 \SetRowColor{LightBackground} {\bf{chmod 754}} {\emph{file1}} & add read, write, execute persmission to owner, read and execute permission to group, read permission to others for {\emph{file1}} \tn % Row Count 25 (+ 6) % Row 7 \SetRowColor{white} {\bf{chown}} {\emph{user1}} {\emph{file1}} & change ownership of {\emph{file1}} to {\emph{user1}} \tn % Row Count 27 (+ 2) % Row 8 \SetRowColor{LightBackground} {\bf{chgrp}} {\emph{group1}} {\emph{file1}} & change group ownership of {\emph{file1}} to {\emph{group1}} \tn % Row Count 30 (+ 3) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{x{3.76 cm} x{4.24 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{File permissions (cont)}} \tn % Row 9 \SetRowColor{LightBackground} {\bf{setfacl -m}} {\emph{u:user1:rwx}} {\emph{file1}} & add read, write, execute permission to user {\emph{user1}} for {\emph{file1}} \tn % Row Count 3 (+ 3) % Row 10 \SetRowColor{white} {\bf{setfacl -x}} {\emph{u:user1:}} {\emph{file1}} & remove all permissions for {\emph{user1}} for {\emph{file1}} \tn % Row Count 6 (+ 3) % Row 11 \SetRowColor{LightBackground} {\bf{setfacl -b}} {\emph{file1}} & remove all acl permissions for {\emph{file1}} \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.76 cm} x{4.24 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{User and Group Management}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{useradd}} {\emph{user1}} & create {\emph{user1}} user account \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{passwd}} {\emph{user1}} & create password for {\emph{user1}} user \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{su}} & switch user account \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} {\bf{exit}} & logout user \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} {\bf{userdel}} {\emph{user1}} & delete user account {\emph{user1}} \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} {\bf{usermod -l}} {\emph{user2 user1}} & change {\emph{user1}} login name to {\emph{user2}} \tn % Row Count 10 (+ 2) % Row 6 \SetRowColor{LightBackground} {\bf{groupadd}} {\emph{group1}} & add group {\emph{group1}} \tn % Row Count 12 (+ 2) % Row 7 \SetRowColor{white} {\bf{groupdel}} {\emph{group1}} & delete group {\emph{group1}} \tn % Row Count 14 (+ 2) % Row 8 \SetRowColor{LightBackground} {\bf{gpasswd -a}} {\emph{user1 group1}} & add single user {\emph{user1}} to group {\emph{group1}} \tn % Row Count 16 (+ 2) % Row 9 \SetRowColor{white} {\bf{gpasswd -M }} {\emph{user1,user2 group1}} & add multiple users {\emph{user1 user2}} to group {\emph{group1}} \tn % Row Count 19 (+ 3) % Row 10 \SetRowColor{LightBackground} {\bf{gpasswd -d}} {\emph{user1 group1}} & remove user {\emph{user1}} from group {\emph{group1}} \tn % Row Count 21 (+ 2) % Row 11 \SetRowColor{white} {\bf{gpasswd -A}} {\emph{user1 group1}} & make {\emph{user1}} as admin of {\emph{group1}} \tn % Row Count 23 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.6 cm} x{4.4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Text search and manipulation}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{grep}} {\emph{text}} {\emph{file1}} & display the lines that contains {\emph{text}} in {\emph{file1}} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} {\bf{grep -ni}} {\emph{text}} {\emph{file1}} & ignore the case and display line numbers of the matched lines \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} {\bf{awk -F',' '\{print \$1"@"\$3\}'}} & print col1@col3 \tn % Row Count 8 (+ 2) % Row 3 \SetRowColor{white} {\bf{awk -F'\textbackslash{}t' '/str/ \{print \$0\}'}} & print line with str \tn % Row Count 10 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Compress and archive}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{tar -cf}} {\emph{/dir1/backup.tar /dir2}} & create tar archive file {\emph{/dir1/backup.tar}} for {\emph{/dir2}} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} {\bf{tar -xvf}} {\emph{/dir1/backup.tar}} {\bf{-C}} {\emph{/dir2/}} & extract tar archive file {\emph{/dir1/backup.tar}} to {\emph{/dir2/}} \tn % Row Count 6 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.68 cm} x{4.32 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{cron jobs}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{at}} {\emph{time}} & schedule command to run at {\emph{time}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{atq}} & view pending jobs \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} {\bf{atrm}} {\emph{2}} & remove job {\emph{2}} from the scheduled commands \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} {\bf{crontab -e}} & set cron jobs \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} {\bf{0 2 * * *}} {\emph{/dir1/script.sh}} & run script {\emph{/dir1/script.sh}} at 2pm daily \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} {\bf{crontab -l}} & show the list the cron jobs of current user \tn % Row Count 11 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.44 cm} x{4.56 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Package management}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{apt update}} & update the local package index with the latest changes made in the repositories \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} {\bf{apt upgrade}} & upgrade installed packages \tn % Row Count 6 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{apt install}} {\emph{package}} & install {\emph{package}} \tn % Row Count 8 (+ 2) % Row 3 \SetRowColor{white} {\bf{apt remove}} {\emph{package}} & remove installed {\emph{package}} \tn % Row Count 10 (+ 2) % Row 4 \SetRowColor{LightBackground} {\bf{systemctl start}} {\emph{service}} & start {\emph{service}} \tn % Row Count 12 (+ 2) % Row 5 \SetRowColor{white} {\bf{systemctl status}} {\emph{service}} & check the status of {\emph{service}} \tn % Row Count 14 (+ 2) % Row 6 \SetRowColor{LightBackground} {\bf{systemctl stop}} {\emph{service}} & stop {\emph{service}} \tn % Row Count 16 (+ 2) % Row 7 \SetRowColor{white} {\bf{systemctl enable}} {\emph{service}} & enable the {\emph{service}} to start at system startup \tn % Row Count 19 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}