\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{Lydia\_4} \pdfinfo{ /Title (linux-in-ubuntu-2024-2025-class.pdf) /Creator (Cheatography) /Author (Lydia\_4) /Subject (Linux in ubuntu (2024/2025 class) 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{Linux in ubuntu (2024/2025 class) Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Lydia\_4} via \textcolor{DarkBackground}{\uline{cheatography.com/208448/cs/45097/}}} \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}Lydia\_4 \\ \uline{cheatography.com/lydia-4} \\ \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 2nd December, 2024.\\ 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}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{podstawowe polecenia}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{echo} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{sudo} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{su} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{whoami} \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{whois} \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{groups} \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} sh & zmienia powłokę na sh \tn % Row Count 8 (+ 2) % Row 7 \SetRowColor{white} bash & zmiena powłokę na bash \tn % Row Count 10 (+ 2) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{/} \tn % Row Count 11 (+ 1) % Row 9 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{.} \tn % Row Count 12 (+ 1) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{..} \tn % Row Count 13 (+ 1) % Row 11 \SetRowColor{white} logout & wylogowanie \tn % Row Count 14 (+ 1) % Row 12 \SetRowColor{LightBackground} halt OR shutdown -h now & bezpieczne wyłączenue \tn % Row Count 16 (+ 2) % Row 13 \SetRowColor{white} shutdown -r now & restart \tn % Row Count 17 (+ 1) % Row 14 \SetRowColor{LightBackground} passwd (username) & zmiana hasła (innemu użytkownikowi) \tn % Row Count 19 (+ 2) % Row 15 \SetRowColor{white} pwd & wyświetl nazwe katalogu bieżącego \tn % Row Count 21 (+ 2) % Row 16 \SetRowColor{LightBackground} ls OR ls -l & wypisuje pozycje z katalogu bieżącego \tn % Row Count 23 (+ 2) % Row 17 \SetRowColor{white} cd\textbackslash{} cd .. \textbackslash{} cd/ /\textbackslash{}cd ścieżka\textbackslash{} cd ../KAT & katalog bieżący\textbackslash{} katalog nadrzedny \textbackslash{} katalog główny \textbackslash{} powrót do domowego \textbackslash{} zmiana gałęzi \tn % Row Count 28 (+ 5) % Row 18 \SetRowColor{LightBackground} history & wyświetla wcześniej wydawane polecenia \tn % Row Count 30 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{podstawowe polecenia (cont)}} \tn % Row 19 \SetRowColor{LightBackground} man polecenie & wyświetla instrukcję do wskazanego polecenia z dokumentacji \tn % Row Count 4 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{1.9908 cm} p{2.9862 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{operatory logiczne}} \tn % Row 0 \SetRowColor{LightBackground} -o & OR \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} ! & NOT \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} -a & AND \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.44333 cm} x{3.53367 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{przeglądanie zawartości plików}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{cat opcje nazwa\_pliku} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} -b & numeruje niepuste wiersze \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} -n & numeruje wszystkie wiersze \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} more \seqsplit{nazwa\_pliku} & przegląda duże pliki po jednej stronie \tn % Row Count 5 (+ 2) % Row 4 \SetRowColor{LightBackground} +\# & rozpoczyna wyświetlanie od wiersza nr \# \tn % Row Count 7 (+ 2) % Row 5 \SetRowColor{white} -s & zakazuje wyświetlać kilka sąsiednich pustych wierszy \tn % Row Count 9 (+ 2) % Row 6 \SetRowColor{LightBackground} klawisz enter & jeden wiersz w dół \tn % Row Count 11 (+ 2) % Row 7 \SetRowColor{white} klawisz spacja & przechodzi do następnej strony \tn % Row Count 13 (+ 2) % Row 8 \SetRowColor{LightBackground} klawisz b & cofa o jeden ekran \tn % Row Count 14 (+ 1) % Row 9 \SetRowColor{white} klawisz g & wychodzi z polecenia more \tn % Row Count 15 (+ 1) % Row 10 \SetRowColor{LightBackground} less \seqsplit{nazwa\_pliku} & wyświetla treść, którą można przeglądać strzałkami \tn % Row Count 18 (+ 3) % Row 11 \SetRowColor{white} wc opcje plik & zliczanie znaków w pliku tekstowym \tn % Row Count 20 (+ 2) % Row 12 \SetRowColor{LightBackground} -c & tylko liczba znaków \tn % Row Count 21 (+ 1) % Row 13 \SetRowColor{white} -l & tylko liczba wierszy \tn % Row Count 22 (+ 1) % Row 14 \SetRowColor{LightBackground} -w & tylko liczba słów \tn % Row Count 23 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{prawa dostepu}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{d rwx rwx rwx \newline % Row Count 1 (+ 1) d (właściciel) (grupa) (pozostali) \newline % Row Count 2 (+ 1) do plików: \newline % Row Count 3 (+ 1) r - do czytania \newline % Row Count 4 (+ 1) w - do modyfikacji \newline % Row Count 5 (+ 1) x - do uruchomienia \newline % Row Count 6 (+ 1) do katalogów: \newline % Row Count 7 (+ 1) r - do przeszukiwania \newline % Row Count 8 (+ 1) w - do zmiany zawartości \newline % Row Count 9 (+ 1) x - do wejścia \newline % Row Count 10 (+ 1) r=4 w=2 x=1 można je sumować i złożyć razem np: \newline % Row Count 12 (+ 2) chmod 644 plik1 \textless{}- nada te uprawnienia \newline % Row Count 13 (+ 1) gdzie: rw-r-r-{}- = 644 \newline % Row Count 14 (+ 1) rw - prawa dostepu właściciela \newline % Row Count 15 (+ 1) r- prawa dostepu grupy \newline % Row Count 16 (+ 1) r-{}- prawa innych użytkowników% Row Count 17 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{pliki i katalogi}} \tn % Row 0 \SetRowColor{LightBackground} mkdir nazwa & tworzy katalog \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} rmdir nazwa & usuwa pusty katalog \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} rm -r katalog\_podrz & usuwa niepusty katalog \tn % Row Count 4 (+ 2) % Row 3 \SetRowColor{white} mv nazwa\_star nazwa\_nowa & zmiana nazwy katalogu \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} touch plik\_pusty & tworzy nowy pusty plik \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} cat\textgreater{} plik\_z\_trescia \seqsplit{string\_z\_trescia\_pliku} !ctr+D na koniec & tworzy nowy plik z treścią \tn % Row Count 11 (+ 3) % Row 6 \SetRowColor{LightBackground} rm nazwa\_pliku & usuwa plik \tn % Row Count 12 (+ 1) % Row 7 \SetRowColor{white} rm wzorzec (* dowolny ciąg znaków, ? jeden znak) & usuwa pliki wg wzorca \tn % Row Count 15 (+ 3) % Row 8 \SetRowColor{LightBackground} rm* & usunięcie wszystkich plików w nowym katalogu \tn % Row Count 18 (+ 3) % Row 9 \SetRowColor{white} ls -l p* & wyświetla wszystkie pliki na literę p \tn % Row Count 20 (+ 2) % Row 10 \SetRowColor{LightBackground} cp plik1 plik2 & kopiuje pliki w katalogu bieżącym \tn % Row Count 22 (+ 2) % Row 11 \SetRowColor{white} cp ../plik1 plik2 & kopiuje plik z nadrzędnego do bieżącego \tn % Row Count 25 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.34379 cm} x{3.63321 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{vi text editor}} \tn % Row 0 \SetRowColor{LightBackground} vi \seqsplit{filename.txt} & tworzy nowy plik / otwiera istniejący \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} :wq or ZZ & write and quit (close) file \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} :w & save and continue editing \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} :q! & quit without saving \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} Esc key & return to command mode \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} i & enter insert mode (arrows for navigation) \tn % Row Count 8 (+ 2) % Row 6 \SetRowColor{LightBackground} yy & yank (copy) a line of text \tn % Row Count 9 (+ 1) % Row 7 \SetRowColor{white} y & paste yanked text below current line \tn % Row Count 11 (+ 2) % Row 8 \SetRowColor{LightBackground} o & new line under current \tn % Row Count 12 (+ 1) % Row 9 \SetRowColor{white} O & new line above current \tn % Row Count 13 (+ 1) % Row 10 \SetRowColor{LightBackground} A & Append to the end of line \tn % Row Count 14 (+ 1) % Row 11 \SetRowColor{white} a & append after cursor \tn % Row Count 15 (+ 1) % Row 12 \SetRowColor{LightBackground} I & insert text at the beginning of the current line \tn % Row Count 17 (+ 2) % Row 13 \SetRowColor{white} b & go to beginning of word \tn % Row Count 18 (+ 1) % Row 14 \SetRowColor{LightBackground} e & go to end of word \tn % Row Count 19 (+ 1) % Row 15 \SetRowColor{white} x & delete single character \tn % Row Count 20 (+ 1) % Row 16 \SetRowColor{LightBackground} dd & delete whole line \tn % Row Count 21 (+ 1) % Row 17 \SetRowColor{white} Xdd & delete X number of lines \tn % Row Count 22 (+ 1) % Row 18 \SetRowColor{LightBackground} Xyy & yank X number of lines \tn % Row Count 23 (+ 1) % Row 19 \SetRowColor{white} G & go to last line in a file \tn % Row Count 24 (+ 1) % Row 20 \SetRowColor{LightBackground} XG & go to line X in a file \tn % Row Count 25 (+ 1) % Row 21 \SetRowColor{white} gg & go to the first line in a file \tn % Row Count 27 (+ 2) % Row 22 \SetRowColor{LightBackground} :num & display the number of the current line \tn % Row Count 29 (+ 2) % Row 23 \SetRowColor{white} h & move left one character \tn % Row Count 30 (+ 1) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{1.34379 cm} x{3.63321 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{vi text editor (cont)}} \tn % Row 24 \SetRowColor{LightBackground} l & move right \tn % Row Count 1 (+ 1) % Row 25 \SetRowColor{white} k & move up \tn % Row Count 2 (+ 1) % Row 26 \SetRowColor{LightBackground} j & move down \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.64241 cm} x{3.33459 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{elementy wyrażeń regularnych}} \tn % Row 0 \SetRowColor{LightBackground} . & dow. poj. znak \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \$ & dopasuje poprzedzające wyrażenie do końca wiersza \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} \textasciicircum{} & dopasuje wyrażenie po operatorze do początku wiersza \tn % Row Count 6 (+ 3) % Row 3 \SetRowColor{white} * & dopasuje 0 lub więcej wyrażeń znaku poprzedzających operator \tn % Row Count 9 (+ 3) % Row 4 \SetRowColor{LightBackground} \textbackslash{} & omija specjalne znaczenie znaku \tn % Row Count 11 (+ 2) % Row 5 \SetRowColor{white} {[}{]} & dopasowuje dow znak w nawiasie \tn % Row Count 13 (+ 2) % Row 6 \SetRowColor{LightBackground} {[}-{]} & dop dow znak 0-9 \tn % Row Count 14 (+ 1) % Row 7 \SetRowColor{white} {[}\textasciicircum{}{]} & dop znak który nie znajduje się w nawiasie \tn % Row Count 16 (+ 2) % Row 8 \SetRowColor{LightBackground} ls -l | grep student & wyświetli tylko te pozycje w katalogu, gdzie znajduje się słowo "student" (nie tylko w nazwie) \tn % Row Count 20 (+ 4) % Row 9 \SetRowColor{white} grep & wyszukiwuje wzorzec \tn % Row Count 21 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.14011 cm} x{2.83689 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{aliasy w cmd}} \tn % Row 0 \SetRowColor{LightBackground} alias & wyświetla listę zdefiniowanych parametrów \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} alias \seqsplit{nazwa-aliasu='definicja'} & definicja nowego aliasu \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} unalias alias\_1 & usuwa alias o nazwie alias\_1 \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.84149 cm} x{3.13551 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{zarządzanie użytkownikami i dostepem}} \tn % Row 0 \SetRowColor{LightBackground} adduser opcje user\_name & dodaje nowego użytkownika \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} -e & data ważności, po której konto stanie się nieaktywne \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} -f & dni nieaktywności, po których wygaśnie bez aktualizacji hasła \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} -g & grupa początkowa \tn % Row Count 9 (+ 1) % Row 4 \SetRowColor{LightBackground} -G & lista grup do których będzie przypisany użytkownik \tn % Row Count 12 (+ 3) % Row 5 \SetRowColor{white} -s & określa powłokę dla użytkownika \tn % Row Count 14 (+ 2) % Row 6 \SetRowColor{LightBackground} userdel user\_name & usuwa konto, ale nie pliki które trzymał na kompie \tn % Row Count 17 (+ 3) % Row 7 \SetRowColor{white} userdel -r user\_name & usuwa też jego katalogo domowy wraz z plikami w nim \tn % Row Count 20 (+ 3) % Row 8 \SetRowColor{LightBackground} finger user\_name & informacje o użytkowniku (powłoka, przydzielone na dysku miejsce, czas ost logowania) \tn % Row Count 24 (+ 4) % Row 9 \SetRowColor{white} w & kto jest obecnie zalogowany \tn % Row Count 26 (+ 2) % Row 10 \SetRowColor{LightBackground} free opcje & info o pamięci systemowej \tn % Row Count 28 (+ 2) % Row 11 \SetRowColor{white} -b lub -k lub -m & w bajtach\textbackslash{}kilobajtach\textbackslash{}megabajtach \tn % Row Count 30 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{1.84149 cm} x{3.13551 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{zarządzanie użytkownikami i dostepem (cont)}} \tn % Row 12 \SetRowColor{LightBackground} groupadd grupa1 & dodaje nowa grupe \tn % Row Count 2 (+ 2) % Row 13 \SetRowColor{white} groupdel grupa1 & usuwa grupe \tn % Row Count 4 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.24425 cm} x{3.73275 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{rozmiary plików}} \tn % Row 0 \SetRowColor{LightBackground} df -m & podaje informacje w MB \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} du plik & ustala ile miejsca zajmuje plik \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} du -a katalog & pokazuje ile miejsca zajmuje katalog wraz z jego elementami \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} du -s -b & całkowita objętość danego elementu bez zbędnego info \tn % Row Count 7 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.14471 cm} x{3.83229 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{wyszukiwanie plików i katalogów}} \tn % Row 0 \SetRowColor{LightBackground} find & wyszukuje \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} whereis & podaje ścieżkę dostępu \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} which & podaje ścieżke i wykonuje \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} -size +100c & szuka tych o 100+ znaków \tn % Row Count 5 (+ 2) % Row 4 \SetRowColor{LightBackground} -size -100w & szuka mniejszych niż 100 słów \tn % Row Count 7 (+ 2) % Row 5 \SetRowColor{white} -mtime +3 & szuka zmodyfikowanych więcej niż 3 dni temu \tn % Row Count 9 (+ 2) % Row 6 \SetRowColor{LightBackground} -atime & szuka wg liczby dni od ostatniego dostępu \tn % Row Count 11 (+ 2) % Row 7 \SetRowColor{white} -user & szuka tych, których właścicielem jest użytkownik \tn % Row Count 13 (+ 2) % Row 8 \SetRowColor{LightBackground} -perm & szuka wg praw dostępu \tn % Row Count 14 (+ 1) % Row 9 \SetRowColor{white} -never plik1 & szuka modyfikowanych później niż plik 1 \tn % Row Count 16 (+ 2) % Row 10 \SetRowColor{LightBackground} !-name 'abc' & szuka o nazwach innych niż abc \tn % Row Count 18 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.09494 cm} x{3.88206 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{informacje o sprzęcie}} \tn % Row 0 \SetRowColor{LightBackground} arch & info o architekturze komp. (czyli rodzaj procesora) \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} uname opcje & info o wersji oprogramowania \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} -a & wszystkie informacje o systemie \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} -m & tylko architektura maszyny \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} -n & nazwa hosta komputera \tn % Row Count 7 (+ 1) % Row 5 \SetRowColor{white} -p & typ procesora \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} -r & wersja jądra linuksa \tn % Row Count 9 (+ 1) % Row 7 \SetRowColor{white} -s & nazwa systemu operacyjnego \tn % Row Count 10 (+ 1) % Row 8 \SetRowColor{LightBackground} -v & wersja systemu operacyjnego \tn % Row Count 11 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}