\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{jj973} \pdfinfo{ /Title (sysadmin-juan-s-cheatsheet.pdf) /Creator (Cheatography) /Author (jj973) /Subject (sysadmin Juan's cheatsheet 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}{3D12A3} \definecolor{LightBackground}{HTML}{F2F0F9} \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{sysadmin Juan's cheatsheet Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{jj973} via \textcolor{DarkBackground}{\uline{cheatography.com/89671/cs/20410/}}} \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}jj973 \\ \uline{cheatography.com/jj973} \\ \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 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*}{4} \begin{tabularx}{3.833cm}{x{1.30454 cm} x{2.12846 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{commands miscellanea}} \tn % Row 0 \SetRowColor{LightBackground} the ps command, & which shows the status of running processes \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} vimtutor & tutorial for vim \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} rmdir & erases directory \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} whoami & tells what kind of user you are \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} passwd & set up password or change the one you have \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} xemacs ".bashrc" & calls text editor \tn % Row Count 10 (+ 2) % Row 6 \SetRowColor{LightBackground} cat & scan docs. from conCATenate \tn % Row Count 12 (+ 2) % Row 7 \SetRowColor{white} ln & let you make links between files \tn % Row Count 14 (+ 2) % Row 8 \SetRowColor{LightBackground} stty "funtion key" & lets you set up the function keys \tn % Row Count 16 (+ 2) % Row 9 \SetRowColor{white} stty -a & show the current function key \tn % Row Count 18 (+ 2) % Row 10 \SetRowColor{LightBackground} stty sane & fix the shell \tn % Row Count 19 (+ 1) % Row 11 \SetRowColor{white} ls {\emph{{[}"range"{]}}}.{[}"range"{]} & looks for combinations that satisfy specification \tn % Row Count 22 (+ 3) % Row 12 \SetRowColor{LightBackground} tail -"\#" & displays the last \# of lines of a text file \tn % Row Count 24 (+ 2) % Row 13 \SetRowColor{white} head -"\#" & displays the first \#of lines of a text file \tn % Row Count 26 (+ 2) % Row 14 \SetRowColor{LightBackground} less & show less of a text file \tn % Row Count 27 (+ 1) % Row 15 \SetRowColor{white} awk & organize data in in columns and rows \tn % Row Count 29 (+ 2) % Row 16 \SetRowColor{LightBackground} sort & sort lines of text files \tn % Row Count 30 (+ 1) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{3.833cm}{x{1.30454 cm} x{2.12846 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{commands miscellanea (cont)}} \tn % Row 17 \SetRowColor{LightBackground} clear & cleans the screen \tn % Row Count 1 (+ 1) % Row 18 \SetRowColor{white} man & manual \tn % Row Count 2 (+ 1) % Row 19 \SetRowColor{LightBackground} du & estimates the file memory usage \tn % Row Count 4 (+ 2) % Row 20 \SetRowColor{white} free & displays the amount of free and used memory in the system \tn % Row Count 7 (+ 3) % Row 21 \SetRowColor{LightBackground} df & report file system disk space usage \tn % Row Count 9 (+ 2) % Row 22 \SetRowColor{white} lsblk & command used to report info about block devices as follows \tn % Row Count 12 (+ 3) % Row 23 \SetRowColor{LightBackground} fdisk & manipulate disk partion table \tn % Row Count 14 (+ 2) % Row 24 \SetRowColor{white} uname & print system info \tn % Row Count 15 (+ 1) % Row 25 \SetRowColor{LightBackground} cat /proc/cpuinfo & cpu info \tn % Row Count 17 (+ 2) % Row 26 \SetRowColor{white} lscpu & cpu info \tn % Row Count 18 (+ 1) % Row 27 \SetRowColor{LightBackground} sudo & gets root authority \tn % Row Count 19 (+ 1) % Row 28 \SetRowColor{white} grep & search for a string in a file \tn % Row Count 21 (+ 2) % Row 29 \SetRowColor{LightBackground} tar & creates, view or extracts from archive \tn % Row Count 23 (+ 2) % Row 30 \SetRowColor{white} find & find files with a pattern \tn % Row Count 25 (+ 2) % Row 31 \SetRowColor{LightBackground} ssh & remotely login \tn % Row Count 26 (+ 1) % Row 32 \SetRowColor{white} awk & controls output \tn % Row Count 27 (+ 1) % Row 33 \SetRowColor{LightBackground} gzip & creates a *.gz compressed file \tn % Row Count 29 (+ 2) % Row 34 \SetRowColor{white} shutdow & turn off the machine \tn % Row Count 30 (+ 1) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{3.833cm}{x{1.30454 cm} x{2.12846 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{commands miscellanea (cont)}} \tn % Row 35 \SetRowColor{LightBackground} kill & terminates a process \tn % Row Count 1 (+ 1) % Row 36 \SetRowColor{white} mount & it mounts file \tn % Row Count 2 (+ 1) % Row 37 \SetRowColor{LightBackground} ifconfig & view the newtwork interrface \tn % Row Count 4 (+ 2) % Row 38 \SetRowColor{white} whereis & find the address of a specific command \tn % Row Count 6 (+ 2) % Row 39 \SetRowColor{LightBackground} uptime & show the running time of the system \tn % Row Count 8 (+ 2) % Row 40 \SetRowColor{white} hostname & displays the system hostname \tn % Row Count 10 (+ 2) % Row 41 \SetRowColor{LightBackground} cal & show the month calender \tn % Row Count 11 (+ 1) % Row 42 \SetRowColor{white} bg & sends a process to the background \tn % Row Count 13 (+ 2) % Row 43 \SetRowColor{LightBackground} df & shows file system disk space \tn % Row Count 15 (+ 2) % Row 44 \SetRowColor{white} diff & serves to find differences between to files \tn % Row Count 17 (+ 2) % Row 45 \SetRowColor{LightBackground} lspci & serves to visualize P.C.I. devices \tn % Row Count 19 (+ 2) % Row 46 \SetRowColor{white} top & used to manage top processes \tn % Row Count 21 (+ 2) % Row 47 \SetRowColor{LightBackground} ping host & send echo message to the host \tn % Row Count 23 (+ 2) % Row 48 \SetRowColor{white} dig domain & show the dns specification for the domain \tn % Row Count 25 (+ 2) % Row 49 \SetRowColor{LightBackground} scp & allows to remotely copy files from one machine to another machine \tn % Row Count 28 (+ 3) % Row 50 \SetRowColor{white} ip addr & shows ip address and related information \tn % Row Count 30 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{3.833cm}{x{1.30454 cm} x{2.12846 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{commands miscellanea (cont)}} \tn % Row 51 \SetRowColor{LightBackground} expr & allows to perform some mathematical operations \tn % Row Count 2 (+ 2) % Row 52 \SetRowColor{white} env & permit to see the current environment variables \tn % Row Count 4 (+ 2) % Row 53 \SetRowColor{LightBackground} history & shows the last one hundred commands execute in the system \tn % Row Count 7 (+ 3) % Row 54 \SetRowColor{white} iwlist & displays wireless devices plus configuration files \tn % Row Count 10 (+ 3) % Row 55 \SetRowColor{LightBackground} locate & find files by name \tn % Row Count 11 (+ 1) % Row 56 \SetRowColor{white} lshw & display some basic information about the machine \tn % Row Count 13 (+ 2) % Row 57 \SetRowColor{LightBackground} lsusb & display information about usb \tn % Row Count 15 (+ 2) % Row 58 \SetRowColor{white} nice & nice - run a program with modified scheduling priority \tn % Row Count 18 (+ 3) % Row 59 \SetRowColor{LightBackground} pidof & find the process ID of a running program. \tn % Row Count 20 (+ 2) % Row 60 \SetRowColor{white} split & serves to split large files in to smaller ones \tn % Row Count 22 (+ 2) % Row 61 \SetRowColor{LightBackground} sum & checksum and count the blocks in a file \tn % Row Count 24 (+ 2) % Row 62 \SetRowColor{white} watch & execute a program periodically, showing output fullscreen \tn % Row Count 27 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.7165 cm} x{1.7165 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{setting NFS tutorial}} \tn % Row 0 \SetRowColor{LightBackground} sudo yum install nfs-utils nfs-utils-lib & install NFS \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} sudo systemctl enable rpcbind; \$ sudo systemctl start rpcbind; \$ sudo systemctl enable nfs-server; \$ sudo systemctl start nfs-server; \$ sudo systemctl start nfs-lock; \$ sudo systemctl start nfs-idmap & commands to start the service in charge of the service's functionality \tn % Row Count 13 (+ 10) % Row 2 \SetRowColor{LightBackground} \$ sudo mkdir /NFSsharedFolder; \$ sudo chmod –R 0755 /NFSsharedFolder & commands to create and prepared a folder \tn % Row Count 17 (+ 4) % Row 3 \SetRowColor{white} \$ sudo nano /etc/export & open nano to modify the export file \tn % Row Count 19 (+ 2) % Row 4 \SetRowColor{LightBackground} /NFSsharedFolder 172.25.0.0/16(rw,sync,no\_root\_squash,no\_all\_squash) & add this line to the export line \tn % Row Count 23 (+ 4) % Row 5 \SetRowColor{white} \$ sudo systemctl restart nfs-server & restart the NFS server \tn % Row Count 25 (+ 2) % Row 6 \SetRowColor{LightBackground} \$ sudo firewall-cmd -{}-permanent -{}-add-port=111/tcp; \$ sudo firewall-cmd -{}-permanent -{}-add-port=875/tcp; \$ sudo firewall-cmd -{}-permanent -{}-add-port=2049/tcp; \$ sudo firewall-cmd -{}-permanent -{}-add-port=20048/tcp; \$ sudo firewall-cmd -{}-permanent -{}-add-port=42955/tcp; \$ sudo firewall-cmd -{}-permanent -{}-add-port=46666/tcp; \$ sudo firewall-cmd -{}-permanent -{}-add-port=54302/tcp; \$ sudo firewall-cmd -{}-reload & commands to open and configure appropriate ports \tn % Row Count 46 (+ 21) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{3.833cm}{x{1.7165 cm} x{1.7165 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{setting NFS tutorial (cont)}} \tn % Row 7 \SetRowColor{LightBackground} move to the client & to continue the configuration \tn % Row Count 2 (+ 2) % Row 8 \SetRowColor{white} \$ sudo yum install nfs-utils nfs-utils-lib & also need to install nfs in the client side of the relationship \tn % Row Count 6 (+ 4) % Row 9 \SetRowColor{LightBackground} \$ sudo systemctl enable rpcbind \$ sudo systemctl start rpcbind \$ sudo systemctl enable nfs-server \$ sudo systemctl start nfs-server \$ sudo systemctl start nfs-lock \$ sudo systemctl start nfs-idma & commands to start appropiate services \tn % Row Count 16 (+ 10) % Row 10 \SetRowColor{white} \$ sudo mkdir /NFSfolder \$ sudo chmod –R 755 /NFSfolder & create and set up share folder \tn % Row Count 19 (+ 3) % Row 11 \SetRowColor{LightBackground} \$ sudo nano /etc/fstab & open nano to edit fstab folder \tn % Row Count 21 (+ 2) % Row 12 \SetRowColor{white} \seqsplit{172.25.22.10:/NFSsharedFolder/} /NFSfolder/ nfs4 defaults 0 0 & add this line to the fstab folder \tn % Row Count 24 (+ 3) % Row 13 \SetRowColor{LightBackground} \$ sudo mount & use this command to check what was mounted in the specified NFS server \tn % Row Count 28 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.7165 cm} x{1.7165 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{File modification}} \tn % Row 0 \SetRowColor{LightBackground} chown USER FILE & changes the user ownership of a file to the specified user \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} chown USER: FILE & changes the user and the group to the specified user \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} chown USER:GROUP FILE & changes the user, and group ownership of the file to the specified user and group respectively \tn % Row Count 11 (+ 5) % Row 3 \SetRowColor{white} chown :GROUP FILE & changes the group ownership of the file to the specified group \tn % Row Count 15 (+ 4) % Row 4 \SetRowColor{LightBackground} chgrp GROUP FILE & changes the group ownership of the file to the specified group \tn % Row Count 19 (+ 4) % Row 5 \SetRowColor{white} chmod {[}0,1,2,4,7{]}{[}0,1,2,4,7{]}{[}0,1,2,4,7{]} & changes readability, writability, and executability of a file to owner, group owner, and everyone respectively \tn % Row Count 25 (+ 6) % Row 6 \SetRowColor{LightBackground} chmod {[}u(user),g(group),o(others), a(all){]}{[}+,-{]}{[}r(read),w(write),x(execute),t(write to not delete){]} File & adds or removes permission to r,w,x from u,g,o or a \tn % Row Count 31 (+ 6) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.7165 cm} x{1.7165 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{tutorial on how to setup Samba}} \tn % Row 0 \SetRowColor{LightBackground} \$ sudo cp /etc/samba/smb.conf \seqsplit{/etc/samba/smb.conf.backup} & creates backup file in case you mess it up \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} sudo mkdir /SharedFolder/ & create folder to be shared \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} \$ sudo chmod -R 755 /SharedFolder/ & set right permissions \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} \$ sudo firewall-cmd -{}-permanent -{}-zone=public -{}-add-service=samba & set firewall \tn % Row Count 11 (+ 4) % Row 4 \SetRowColor{LightBackground} \$ sudo firewall-cmd -{}-reload & set firewall \tn % Row Count 13 (+ 2) % Row 5 \SetRowColor{white} \$ sudo nano /etc/samba/smb.conf & open nano to start the file configuration \tn % Row Count 16 (+ 3) % Row 6 \SetRowColor{LightBackground} follow instruction in comment & then come back to this line and keep inputting the commands \tn % Row Count 19 (+ 3) % Row 7 \SetRowColor{white} \$ sudo smbpasswd –a user1 & set up password for user1 \tn % Row Count 21 (+ 2) % Row 8 \SetRowColor{LightBackground} \$ sudo systemctl enable smb.service; \$ sudo systemctl enable nmb.service; \$ sudo systemctl start smb.service; \$ sudo systemctl start nmb.service & commands to enter testing phase \tn % Row Count 29 (+ 8) % Row 9 \SetRowColor{white} Move to the client side & and continue \tn % Row Count 31 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{3.833cm}{x{1.7165 cm} x{1.7165 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{tutorial on how to setup Samba (cont)}} \tn % Row 10 \SetRowColor{LightBackground} \seqsplit{smb://server\_ip\_address} & type in the server connection screen \tn % Row Count 2 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{3.833cm}}{the configuration file should look like this: \newline \newline {[}Shared Folder{]} \newline path = /SharedFolder \newline read only = no \newline guest ok = yes \newline browsable =yes \newline writable = yes \newline create mask = 0755 \newline directory mask = 0755 \newline workgroup = WORKGROUP \newline \newline then save and create user1.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.54485 cm} x{1.88815 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{user and groups creations and modificaiton}} \tn % Row 0 \SetRowColor{LightBackground} groupadd GROUP & creates new group \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} groupmod -n NewGroupName & changes the group name \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} useradd USER & creates new user \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} useradd -d \seqsplit{/path/to/home/dir/} & creates a user with specified home directory \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} useradd -u USERID USER & allows to create user with personalized ID \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} useradd -G GROUP1, GROUP2... USER & allows to create user with multiples groups \tn % Row Count 10 (+ 2) % Row 6 \SetRowColor{LightBackground} cat /etc/passwd & lists all user and displays relevant information \tn % Row Count 13 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.51052 cm} x{1.92248 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{most used commands}} \tn % Row 0 \SetRowColor{LightBackground} pwd & outputs the present working directory \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} sudo + other command(s) & allows to gain root privileges \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} root & access root user and its privileges \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} cd + specific address & access a specific address \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} cd & move to home directory \tn % Row Count 9 (+ 1) % Row 5 \SetRowColor{white} cd .. & go back to parent directory \tn % Row Count 11 (+ 2) % Row 6 \SetRowColor{LightBackground} ls & outputs information of present directory \tn % Row Count 13 (+ 2) % Row 7 \SetRowColor{white} ls + specific address & shows files in the specific directory \tn % Row Count 15 (+ 2) % Row 8 \SetRowColor{LightBackground} ls -a & option a allows to show hidden files \tn % Row Count 17 (+ 2) % Row 9 \SetRowColor{white} ls -l & show deeper description of showed files \tn % Row Count 19 (+ 2) % Row 10 \SetRowColor{LightBackground} ls -h & shows files in human readable format \tn % Row Count 21 (+ 2) % Row 11 \SetRowColor{white} touch "fileName" & creates file with the specified fileName \tn % Row Count 23 (+ 2) % Row 12 \SetRowColor{LightBackground} echo \textgreater{} "insert desired text" & allows to write text to a file(if any, erase old text in file) \tn % Row Count 26 (+ 3) % Row 13 \SetRowColor{white} echo \textgreater{}\textgreater{} "insert text here" & allows to append text to a file \tn % Row Count 28 (+ 2) % Row 14 \SetRowColor{LightBackground} cp "file" "directory" & copy files to new address \tn % Row Count 30 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{3.833cm}{x{1.51052 cm} x{1.92248 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{most used commands (cont)}} \tn % Row 15 \SetRowColor{LightBackground} mv "file" "directory" & cut files to new address \tn % Row Count 2 (+ 2) % Row 16 \SetRowColor{white} mkdir "name" & creates a new directory inside the present directory \tn % Row Count 5 (+ 3) % Row 17 \SetRowColor{LightBackground} mkdir \seqsplit{/path/to/directory/"name"} & creates directory with a specific path \tn % Row Count 7 (+ 2) % Row 18 \SetRowColor{white} rm "file" & removes files from the system \tn % Row Count 9 (+ 2) % Row 19 \SetRowColor{LightBackground} rm -r "directory" & removes recursively the specified directory from the system \tn % Row Count 12 (+ 3) \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}{service related commands}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{journalctl} & prompts the user with the active services in the system \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{systemctl} & Control the systemd system and service manager \tn % Row Count 4 (+ 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 miscellanea 2}} \tn % Row 0 \SetRowColor{LightBackground} flock & manage locks from shell scripts \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} lockf & apply, test or remove a POSIX lock on an open file \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} fcntl & manipulate file descriptor \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} statd & NSM service daemon \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} stat & display file or file system status \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} samba & A Windows AD and SMB/CIFS fileserver for UNIX \tn % Row Count 10 (+ 2) % Row 6 \SetRowColor{LightBackground} \seqsplit{smbpasswd} & The Samba encrypted password file \tn % Row Count 12 (+ 2) % Row 7 \SetRowColor{white} sssd & System Security Services Daemon \tn % Row Count 14 (+ 2) % Row 8 \SetRowColor{LightBackground} setgid & set group identity \tn % Row Count 15 (+ 1) % Row 9 \SetRowColor{white} mktemp & create a temporary file or directory \tn % Row Count 17 (+ 2) % Row 10 \SetRowColor{LightBackground} true & do nothing, successfully \tn % Row Count 18 (+ 1) % Row 11 \SetRowColor{white} false & do nothing, unsuccessfully \tn % Row Count 19 (+ 1) % Row 12 \SetRowColor{LightBackground} if & "use" a Perl module if a condition holds \tn % Row Count 21 (+ 2) % Row 13 \SetRowColor{white} test & check file types and compare values \tn % Row Count 23 (+ 2) % Row 14 \SetRowColor{LightBackground} exit & self explanatory \tn % Row Count 24 (+ 1) % Row 15 \SetRowColor{white} w & displays who is logged in and what are they doing \tn % Row Count 26 (+ 2) % Row 16 \SetRowColor{LightBackground} fg & brings the most recent background job to the foreground \tn % Row Count 28 (+ 2) % Row 17 \SetRowColor{white} sleep & delay for a specified amount of time \tn % Row Count 30 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{3.833cm}{p{0.78959 cm} x{2.64341 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{commands miscellanea 2 (cont)}} \tn % Row 18 \SetRowColor{LightBackground} tac & concatenate and print files in reverse \tn % Row Count 2 (+ 2) % Row 19 \SetRowColor{white} wall & write a message to all users \tn % Row Count 3 (+ 1) % Row 20 \SetRowColor{LightBackground} whatis & display basic information about a command passed as parameter \tn % Row Count 6 (+ 3) % Row 21 \SetRowColor{white} yes "string" & infinitely outputs a string pass as parameter to the command \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}