\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{lapatchakjrj} \pdfinfo{ /Title (system-admin-c-s-jpljr.pdf) /Creator (Cheatography) /Author (lapatchakjrj) /Subject (System Admin C.S. JPLjr 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}{A30000} \definecolor{LightBackground}{HTML}{FCF7F7} \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{System Admin C.S. JPLjr Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{lapatchakjrj} via \textcolor{DarkBackground}{\uline{cheatography.com/89665/cs/20409/}}} \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}lapatchakjrj \\ \uline{cheatography.com/lapatchakjrj} \\ \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 6th 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}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{File Commands Cont.}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{cp file1 file2}} - used to copy the contents of one file into another file \newline {\bf{mv}} - used to rename files and directories \newline {\bf{cat filename}} - it allows us to create, view and concatenate files \newline {\bf{head filename}}- prints the first 10 lines of a file \newline {\bf{tail filename}} - prints the last 10 lines of a file \newline {\bf{sort}} - will sort the contents of a text file line by line \newline {\bf{more/less}} - two similar commands that both show info a page at a time, less is faster more allows user to scroll} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Systems Related}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{systemctl cat}} - views the content of a unit file \newline {\bf{systemctl status}} - shows the status of a system \newline {\bf{Systemctl list-units -{}-type=service -{}-state=running}} - will list active services \newline {\bf{Sudo systemctl start}} - this will start the service \newline {\bf{Sudo systemctl stop}} - this will stop the service \newline {\bf{Sudo systemctl reload}}- reloads the unit files for the service} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{FILE COMPRESSION}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{tar xzf file.tar.gz}} - Extracts a tar using Gzip} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{To Downlaod a File}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{wget file}} non-interactive network downloader which is used to download files from the server even when the user has not logged on to the system and it can work in the background without hindering the current process} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Misc SSH Commands}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{ssh-keygen}} - creates a key pair for public key authentication \newline {\bf{ssh-copy-id}} - configures a public key as authorized on a server \newline {\bf{ssh-agent}} - agent to hold private key for single sign-on \newline {\bf{ssh-add}} - tool to add a key to the agent \newline {\bf{scp}} - file transfer client with RCP-like command interface \newline {\bf{sftp}} - file transfer client with FTP-like command interface \newline {\bf{sshd}} - OpenSSH server} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{File Commands}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{ls}} - lists the content of a directory \newline {\bf{cd}} - command is used to change directories \newline {\bf{pwd}} - displays the present working directory you are currently in \newline {\bf{mkdir}} - will create a new directory so long as it does not already exist \newline {\bf{rm filename}} - used to delete a file \newline {\bf{rm -r dir}} - used to delete a directory recursively along with its contents} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Other ls commands}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{-a}} -lists all files even hidden \newline {\bf{-R}} -Recursively list subdirectories encountered \newline {\bf{ -r }} - lists reverse order \newline {\bf{ -S}} - sorts list by file size \newline {\bf{ -t}} - sorts by last modified \newline {\bf{ -1 }} - lists one file per line \newline {\bf{ -l }} - lists in long listing format} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{SSH}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{SSH}} -Secure Shell or Secure Socket Shell, is a network protocol that gives users, particularly system administrators, a secure way to access a computer over an unsecured network \newline {\bf{ ssh user@host }} connects the user to host} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Variables}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{env}} \newline Show environment variables \newline {\bf{echo \$NAME}} \newline Output value of \$NAME variable \newline export NAME=value \newline Set \$NAME to value \newline {\bf{\$PATH}} \newline Executable search path \newline {\bf{\$HOME}} \newline Home directory \newline {\bf{\$SHELL}} \newline Current shell} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Kernel Information}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{uname}} - When the uname command is used the kernel name is returned. \newline {\bf{uname -r}}- The uname -r command will display the release number of the kernel \newline {\bf{uname -v}} - The uname -v will display the version number of the kernel} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Notable Directories}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{/bin}} - Holds essential Unix commands \newline {\bf{/sbin}}- holds commands for superuser, useful for system administration \newline {\bf{/boot}}- Location where the kernel and other boot files are stored \newline {\bf{/etc}} -files used by subsystems, ie. networking and mail, usually network services or disks to mount on \newline {\bf{/dev}} - Contains device files for the interface between the file system and hardware \newline {\bf{/proc}} - the interface between the filesystem and running processes} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Disk and System Info}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{du}}-this command is used to track the files and directories which are consuming space on the hard disk drive \newline {\bf{free}} - Displays the total amount of free space available on the system \newline {\bf{df}} - Displays information related to file systems about total space and available space \newline {\bf{lsblk}} - Lists information about all of the specified block devices \newline {\bf{cat/proc/cpuinfo}} - This is a short read-only text file that contains information about the CPUs} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Network Tools}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{ifconfig \textless{}interface\textgreater{} \textless{}address\textgreater{} {[}up{]}}} : start the interface \newline {\bf{ifconfig \textless{}interface\textgreater{} {[}down|delete{]} }}: stop the interface \newline {\bf{netstat –w {[}seconds{]} –I {[}interface{]}}} : display network settings and statistics \newline {\bf{udpmt –p {[}port{]} –s {[}bytes{]} target\_host }}: it creates UDP traffic \newline {\bf{udptarget –p {[}port{]}}} : it's able to receive UDP traffic \newline {\bf{tcpmt –p {[}port{]} –s {[}bytes{]} target\_host}}: it creates TCP traffic \newline tcptarget –p {[}port{]}** it's able to receive TCP traffic} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Search Commands}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{grep pattern file}} - searches for a pattern in files \newline {\bf{Grep }} \newline {\bf{ -r}} - will search recusively \newline {\bf{ -v}} - performs inverted search \newline {\bf{ - i}} - performs insensitive search \newline {\bf{ -o}} - shows a matched part of the file\textbackslash{} \newline {\bf{find /dir/ -name " "* }} - finds files with " " in directory \newline {\bf{find /dir/-user " " }} -finds files owned by " " in directory \newline {\bf{whereis " " }} - will find binary source \newline {\bf{ locate " " }} - finds file searched by a system index} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Shortcuts Continued}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{!abc}} \newline Run last command starting with abc \newline {\bf{!abc:p}} \newline Print last command starting with abc \newline {\bf{!\$}} \newline Last argument of previous command \newline {\bf{ALT-.}} \newline Last argument of previous command \newline {\bf{!* }} \newline All arguments of previous command} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Working with Users}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{useradd}} -used to create a new user \newline {\bf{passwd}} - used to set a password for a new user \newline {\bf{userdel}} - to remove a user \newline {\bf{whoami}}- this will show the user information \newline {\bf{su "user" passwd}} - allows the user to change their password} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Package Management}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{dnf check-update}} - this will show a list of packages that are available but it will not perform any updates \newline {\bf{dnf upgrade}}- update the system and all of its packages \newline {\bf{dnf search "software"}}- to search for new software \newline {\bf{dnf install "software"}}- installs new software packages \newline {\bf{dnf remove}} - to remove a package from the system} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Alias Command}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{Alias}} - The command allows you to define your own commands or command shortcuts} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{File permissions}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{chmod octal file}} - Changes the permissions of file to octal, this can be found seperately for user, group, and world. \newline {\bf{4}}- read (r) \newline {\bf{2}}- write (w) \newline {\bf{1}}- execute (x) \newline {\bf{chmod 777}} - allows all users to read, write and execute \newline {\bf{chmod 755}} - example, lets owner read write and execute while the group and the world can read and execute} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Help And Useful Shortcuts}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{MAN PAGES}} \newline {\bf{ man "command"}} - a user manual the is built into the terminal shows configuration files, system calls, library routines. \newline {\bf{ctrl c}}-stop current command \newline {\bf{ctrl z}} - stop the current command, resume with fg in the foreground or bg in the background \newline {\bf{ctrl d}} - log out of current session \newline {\bf{ctrl w}} - will erase one word on the line \newline {\bf{ctrl u}} - erases whole line \newline {\bf{ctrl r}} - brings up a recent command \newline {\bf{!!}} - repeat last cmd \newline {\bf{exit }} - log out of session} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Networking}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{ifconfig -a}} - Displays network interfaces and ip address \newline {\bf{ifconfig eth0}} - displays eth0 address and details \newline {\bf{ethtool eth0}} - Query or control network driver and hardware settings \newline {\bf{ping host}} - Send ICMP echo request to host \newline {\bf{whois domain}} - Display whois info for domain \newline {\bf{dig domain}} - Display DNS info for domain} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Networking Cont'd}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{dig -x IP\_ADDRESS}} - Reverse lookup of IP\_ADDRESS \newline {\bf{host domain}} - Display DNS ip address for domain \newline {\bf{hostname -I}} - Display all local ip addresses \newline {\bf{hostname -i}} - Display the network address of the host name \newline {\bf{netstat -nutlp}} - Display listening tcp and udp ports and programs} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Nano Commands}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{Ctrl-R}} \newline Read file \newline {\bf{Ctrl-O}} \newline Save file \newline {\bf{Ctrl-X}} \newline Close file \newline Cut and Paste \newline {\bf{ALT-A}} \newline Start marking text \newline {\bf{CTRL-K}} \newline Cut marked text or line \newline {\bf{CTRL-U}} \newline Paste text \newline Navigate File \newline {\bf{ALT-/}} \newline End of file \newline {\bf{CTRL-A}} \newline Beginning of line \newline {\bf{CTRL-E}} \newline End of line \newline {\bf{CTRL-C}} \newline Show line number \newline {\bf{CTRL-\_}} \newline Go to line number \newline Search File \newline {\bf{CTRL-W}} \newline Find \newline {\bf{ALT-W}} \newline Find next \newline {\emph{*CTRL-*}} \newline Search and replace} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}