\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{davidsykora} \pdfinfo{ /Title (linux-bash.pdf) /Creator (Cheatography) /Author (davidsykora) /Subject (Linux Bash 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}{2776A3} \definecolor{LightBackground}{HTML}{F1F6F9} \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 Bash Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{davidsykora} via \textcolor{DarkBackground}{\uline{cheatography.com/43180/cs/13163/}}} \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}davidsykora \\ \uline{cheatography.com/davidsykora} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 17th October, 2017.\\ Updated 28th November, 2017.\\ 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{tabularx}{17.67cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{17.67cm}}{\bf\textcolor{white}{Úvod}} \tn \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{{\bf{B}}ourne {\bf{A}}gain {\bf{SH}}ell je nejrozšířenější interpretr příkazů ve světě Linuxu, MacOS a je relativně nově dostupný i pro Windows. Zpracovává příkazy, které jsou zadávany v člověku porozumitelném formátu. Jeho výhodou oproti GUI je {\bf{efektivita}} a {\bf{rozšířenost}} napříč systémy. Na většině linuxových distribucích je bash výchozím interpretem.% Row Count 8 (+ 8) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{5.0083 cm} x{12.2617 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Prostředí}} \tn % Row 0 \SetRowColor{LightBackground} joe@server344:\textasciitilde{}\$ & první část {\bf{joe}} značí aktuálně přihlášeného uživatele \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} joe@server344:\textasciitilde{}\$ & část za zavináčem {\bf{server344}} značí název počítače \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} joe@server344:\textasciitilde{}\$ & část za dvojtečkou {\bf{\textasciitilde{}}} značí adresář, v kterém se přáve nacházíme (viz. pwd) \tn % Row Count 10 (+ 4) % Row 3 \SetRowColor{white} joe@server344:\textasciitilde{}\$ & poslední část {\bf{\$}} ukazuje zda-li jsme správce systému (root) nebo normální uživatel (\$ - normální uživatel; \# - správce systému) \tn % Row Count 16 (+ 6) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{V prosředí příkazové řádky se {\bf{vždy}} nacházíme v nějakém adresáři. Výchozím adresářem po přihlášení je většinou náš domovský adresář ({\emph{/home/joe/}} nebo {\emph{/root/}})} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{6.7353 cm} x{10.5347 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Správa balíčků (Debian, Ubuntu)}} \tn % Row 0 \SetRowColor{LightBackground} apt-get install \textless{}balicek\textgreater{} & Nainstaluje balíček i s jeho závislotmi \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} apt-cache search \textless{}balicek\textgreater{} & Vyhledá možné balíčky k instalaci \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} apt-get update & Aktualizuje lokální info o repozitářích \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} apt-get upgrade & Nainstaluje možné aktualizace pro všechny nainstalované balíčky \tn % Row Count 9 (+ 3) % Row 4 \SetRowColor{LightBackground} dpkg -l & Zobrazí nainstalované balíčky \tn % Row Count 11 (+ 2) % Row 5 \SetRowColor{white} apt-get remove \textless{}balicek\textgreater{} & Odinstaluje balíček \tn % Row Count 13 (+ 2) % Row 6 \SetRowColor{LightBackground} apt-get purge \textless{}balicek\textgreater{} & Odinstaluje balíček včetně konfiguračních souborů \tn % Row Count 16 (+ 3) % Row 7 \SetRowColor{white} apt-cache pkgnames & Zobrazí všechny možné balíčky k instalaci \tn % Row Count 18 (+ 2) % Row 8 \SetRowColor{LightBackground} dpkg -i \textless{}name\textgreater{}.deb & Nainstaluje balíček ze souboru (bez závislostí) \tn % Row Count 21 (+ 3) % Row 9 \SetRowColor{white} apt-get install \textless{}name\textgreater{}.deb & Nainstaluje balíček ze souboru včetně závislostí \tn % Row Count 24 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{5.8718 cm} x{11.3982 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Navigace v adresářové struktuře}} \tn % Row 0 \SetRowColor{LightBackground} ls -a & Výpis skrytých souborů \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} ls -R & Rekurzivní výpis \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} ls - t & Pořadí podle času úpravy \tn % Row Count 4 (+ 2) % Row 3 \SetRowColor{white} ls -S & Pořadí podle velikosti souboru \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} ls -l & Výpis souborů v seznamu \tn % Row Count 7 (+ 1) % Row 5 \SetRowColor{white} ls -H & Výpis s člověku čitelnými velikostmi souborů (M, kb, b atd.) \tn % Row Count 10 (+ 3) % Row 6 \SetRowColor{LightBackground} ls -laHt & Kombinaci výše uvedených \tn % Row Count 12 (+ 2) % Row 7 \SetRowColor{white} pwd & Vypíše absolutní cestu k adresáři \tn % Row Count 14 (+ 2) % Row 8 \SetRowColor{LightBackground} mkdir \textless{}adresář\textgreater{} & Vytvoří adresář \tn % Row Count 16 (+ 2) % Row 9 \SetRowColor{white} cd \textless{}adresář\textgreater{} & Změna aktuálního adresáře \tn % Row Count 18 (+ 2) % Row 10 \SetRowColor{LightBackground} cd \textasciitilde{} & cd do domovského adresáře \tn % Row Count 20 (+ 2) % Row 11 \SetRowColor{white} cd / & cd do kořenového adresáře \tn % Row Count 22 (+ 2) % Row 12 \SetRowColor{LightBackground} cd .. & cd do adresáře o jednu úroveň výše \tn % Row Count 24 (+ 2) % Row 13 \SetRowColor{white} cd - & cd do předchozího adresáře \tn % Row Count 26 (+ 2) % Row 14 \SetRowColor{LightBackground} man hier & Manuál k adresářové struktuře OS \tn % Row Count 28 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{4.4902 cm} x{12.7798 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Zkratky v prostřední Bash}} \tn % Row 0 \SetRowColor{LightBackground} CTRL-c & Ukončí aktuální příkaz \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} CTRL-a & Přesune kurzor na začátek řádku \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} CTRL-e & Přesune kurzor na konec řádku \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} CTRL-u & Vymaže obsah řádku před kurzorem \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} CTRL-k & Vymaže obsah řádku za kurzorem \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} CTRL-r & Vyhledávání v historii příkazů \tn % Row Count 11 (+ 2) % Row 6 \SetRowColor{LightBackground} CTRL-z & Pozastaví aktuálně vykonávaný příkaz \tn % Row Count 13 (+ 2) % Row 7 \SetRowColor{white} \seqsplit{CTRL-SHITF-c} & Zkopíruje zvýrazněný text \tn % Row Count 15 (+ 2) % Row 8 \SetRowColor{LightBackground} \seqsplit{CTRL-SHITF-p} & Vloží text \tn % Row Count 17 (+ 2) % Row 9 \SetRowColor{white} \seqsplit{CTRL-SHITF-t} & Vytvoří novou záložku \tn % Row Count 19 (+ 2) % Row 10 \SetRowColor{LightBackground} \seqsplit{CTRL-SHITF-tab} & Přepne do následující záložky \tn % Row Count 21 (+ 2) % Row 11 \SetRowColor{white} {\bf{TAB}} & {\bf{Automatické doplňování}} Důležité!! \tn % Row Count 23 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{5.3537 cm} x{11.9163 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Nápověda \& Dokumentace}} \tn % Row 0 \SetRowColor{LightBackground} man \textless{}příkaz\textgreater{} & Vypíše dokumentaci k příkazu \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} man -k \textless{}tag\textgreater{} & Vyhledá záznamy v dokumentaci podle tagu \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} man -k network & Vyhledá všechny záznamy týkající se sítě \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} whatis \textless{}program\textgreater{} & Vypíše krátký popis programu \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} whereis \textless{}program\textgreater{} & Vypíše absolutní cestu k programu \tn % Row Count 10 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{7.5988 cm} x{9.6712 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Operace se soubory}} \tn % Row 0 \SetRowColor{LightBackground} touch \textless{}soubor\textgreater{} & Vytvoří soubor \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} cat \textless{}soubor\textgreater{} & Vypíše obsah souboru \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} less \textless{}soubor\textgreater{} & Vypíše obsah souboru s rozšířenými možnostmi \tn % Row Count 6 (+ 3) % Row 3 \SetRowColor{white} file \textless{}soubor\textgreater{} & Vypíše typ souboru \tn % Row Count 7 (+ 1) % Row 4 \SetRowColor{LightBackground} cp \textless{}soubor\textgreater{} \textless{}cíl\textgreater{} & Zkopíruje soubor \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} cp -r \textless{} adresář \textgreater{} \textless{}cíl\textgreater{} & Zkopíruje adresář \tn % Row Count 11 (+ 2) % Row 6 \SetRowColor{LightBackground} mv \textless{}soubor\textgreater{} \textless{}cíl\textgreater{} & Přesune soubor/adresář \tn % Row Count 13 (+ 2) % Row 7 \SetRowColor{white} rm \textless{}soubor\textgreater{} & Smaže soubor \tn % Row Count 14 (+ 1) % Row 8 \SetRowColor{LightBackground} rm -r \textless{} adresář \textgreater{} & Smaže adresář \tn % Row Count 16 (+ 2) % Row 9 \SetRowColor{white} head \textless{}soubor\textgreater{} & Vypíše prvních 10 řádku ze souboru \tn % Row Count 18 (+ 2) % Row 10 \SetRowColor{LightBackground} tail \textless{}soubor\textgreater{} & Vypíše posledních 10 řádků ze souboru \tn % Row Count 20 (+ 2) % Row 11 \SetRowColor{white} tail -f \textless{}soubor\textgreater{} & Vypíše poslední řádky souboru a sleduje změny \tn % Row Count 23 (+ 3) % Row 12 \SetRowColor{LightBackground} wc \textless{}soubor\textgreater{} & Vypíše počet slov v souboru \tn % Row Count 25 (+ 2) % Row 13 \SetRowColor{white} wc -l \textless{}soubor\textgreater{} & Vypíše počet řádek v souboru \tn % Row Count 27 (+ 2) % Row 14 \SetRowColor{LightBackground} wc -c \textless{}soubor\textgreater{} & Vypíše počet bytů v souboru \tn % Row Count 29 (+ 2) % Row 15 \SetRowColor{white} paste \textless{}soubor\textgreater{} \textless{}soubor\textgreater{} & Spojí řádky dvou souborů \tn % Row Count 31 (+ 2) \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{7.5988 cm} x{9.6712 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Operace se soubory (cont)}} \tn % Row 16 \SetRowColor{LightBackground} nano \textless{}soubor\textgreater{} & Editace souboru \tn % Row Count 1 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{8.635 cm} x{8.635 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Oprávnění souboru}} \tn % Row 0 \SetRowColor{LightBackground} chmod 755 \textless{}soubor\textgreater{} & Změní oprávnění souboru - číselná reprezentace práv \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} chmod -R 600 \textless{}složka\textgreater{} & Změní oprávnění adresáře a všech podadresářů a souborů \tn % Row Count 7 (+ 4) % Row 2 \SetRowColor{LightBackground} chown \textless{}uzivatel\textgreater{}{[}:skupina{]} \textless{}soubor\textgreater{} & Změní majitele souboru a případně i skupinu \tn % Row Count 10 (+ 3) % Row 3 \SetRowColor{white} chgrp \textless{}skupina\textgreater{} \textless{}soubor\textgreater{} & Změní skupinu souboru \tn % Row Count 12 (+ 2) % Row 4 \SetRowColor{LightBackground} chmod \textless{}soubor\textgreater{} u+rw,g-rwx,o-rwx & Změna práv souboru: vlastníkovi přidá čtení a zápis všem ostatním ve skupině i mimo ní odebere všechna práva \tn % Row Count 19 (+ 7) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{8.635 cm} x{8.635 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Správa procesů}} \tn % Row 0 \SetRowColor{LightBackground} ps & Příkaz pro zobrazení spuštěných procesů \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} ps -ef & Vypíše spuštěné procesy \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} ps -ef -u root & Vypíše spuštěné procesy uživatele {\bf{root}} \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} ps -e -o pid,uname,pcpu,pmem,comm -{}-sort=comm & Vypíše jen určité informace a seřadí procesy podle jména příkazu \tn % Row Count 12 (+ 4) % Row 4 \SetRowColor{LightBackground} top & Vypisuje spuštěné procesy v reálném čase \tn % Row Count 15 (+ 3) % Row 5 \SetRowColor{white} kill \textless{}pid\textgreater{} & Ukončí proces s id \textless{}pid\textgreater{} \tn % Row Count 17 (+ 2) % Row 6 \SetRowColor{LightBackground} pkill \textless{}proces\textgreater{} & Ukončí proces s názvem \textless{}proces\textgreater{} \tn % Row Count 19 (+ 2) % Row 7 \SetRowColor{white} killall \textless{}proces\textgreater{} & Ukončí všechny procesy s názvem \textless{}proces\textgreater{} \tn % Row Count 22 (+ 3) % Row 8 \SetRowColor{LightBackground} lsof & Program pro výpis otevřených souborů, portů atd \tn % Row Count 25 (+ 3) % Row 9 \SetRowColor{white} lsof -i :8080 & Vypíše všechny procesy, které používají port 8080 \tn % Row Count 28 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{6.5626 cm} x{10.7074 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Správa uživatelů}} \tn % Row 0 \SetRowColor{LightBackground} cat /etc/passwd & Vypíše subor, ve kterém systém ukládá informace o uživatelích \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} cat /etc/group & Vypíše subor, ve kterém systém ukládá informace o skupiných \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} useradd joe & Přidá uživatele joe \tn % Row Count 7 (+ 1) % Row 3 \SetRowColor{white} useradd joe -m & + vytovří jeho domovský adresář \tn % Row Count 9 (+ 2) % Row 4 \SetRowColor{LightBackground} useradd joe -m –gajtaci & + přidá uživatele do skupiny ajtaci \tn % Row Count 11 (+ 2) % Row 5 \SetRowColor{white} userdel joe & Smaže uživatele joe \tn % Row Count 12 (+ 1) % Row 6 \SetRowColor{LightBackground} userdel joe -r & + smaže jeho domovský adresář \tn % Row Count 14 (+ 2) % Row 7 \SetRowColor{white} su joe & Přihlašení pod uživatele joe \tn % Row Count 16 (+ 2) % Row 8 \SetRowColor{LightBackground} passwd & Změní heslo aktuálního uživatele \tn % Row Count 18 (+ 2) % Row 9 \SetRowColor{white} passwd joe & Změní heslo uživatele joe \tn % Row Count 20 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{7.0807 cm} x{10.1893 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Vyhledávání v souborovém systému}} \tn % Row 0 \SetRowColor{LightBackground} find . & Vyhledá všechny soubory v aktuálním adresáři \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} find . -name *.docx & + vyhledá pouze soubory končící na docx \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} grep \textless{}fráze\textgreater{} \textless{}soubor\textgreater{} & Vyhledá frázi v souboru \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} grep -r \textless{}fráze\textgreater{} \textless{}adresář\textgreater{} & Vyhledá frázi v souborech v adresáři \tn % Row Count 9 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{8.2896 cm} x{8.9804 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Stahování souborů}} \tn % Row 0 \SetRowColor{LightBackground} curl \textless{}adresa\textgreater{} \textgreater{} \textless{}cíl\textgreater{} & Stáhne a uloží soubor \tn % Row Count 2 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \end{document}