\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{TME520 (TME520)} \pdfinfo{ /Title (cron.pdf) /Creator (Cheatography) /Author (TME520 (TME520)) /Subject (cron 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}{379FA3} \definecolor{LightBackground}{HTML}{F2F9F9} \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{cron Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{TME520 (TME520)} via \textcolor{DarkBackground}{\uline{cheatography.com/20978/cs/3876/}}} \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}TME520 (TME520) \\ \uline{cheatography.com/tme520} \\ \uline{\seqsplit{tme520}.com} \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 12th April, 2015.\\ Updated 13th May, 2016.\\ 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{3.12 cm} x{4.88 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Options}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{crontab -e}} & Modifier la {\emph{crontab}} de l'utilisateur courant. \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{crontab -l}} & Afficher le contenu de la {\emph{crontab}} de l'utilisateur courant. \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} {\bf{crontab -r}} & Supprimer la {\emph{crontab}} de l'utilisateur courant. \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} {\bf{crontab -v}} & Afficher la date de la dernière modification apportée à la {\emph{crontab}} de l'utilisateur courant. \tn % Row Count 12 (+ 5) % Row 4 \SetRowColor{LightBackground} {\bf{crontab -u utilisateur}} & Agir sur la {\emph{crontab}} d'un autre utilisateur. \tn % Row Count 14 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.36 cm} x{4.64 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Exemples}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Minutes Heures JM Mois JS}} & {\bf{Tournera à...}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} 30 0 1 1,6,12 * & 0h30 les premiers des mois de janvier, juin et décembre. \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} 0 20 * 10 1-5 & 20h du lundi au vendredi durant tout le mois d'octobre. \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} 15 0 1,10,15 * * & 0h15 les permier, dix et quinze de chaque mois. \tn % Row Count 11 (+ 3) % Row 4 \SetRowColor{LightBackground} 5,10 0 10 * 1 & 0h05 et 0h10 tous les lundis ainsi que le 10 de chaque mois. \tn % Row Count 14 (+ 3) % Row 5 \SetRowColor{white} */10 5-7 * 12 1-5 & Toutes les dix minutes de 5h à 7h, du lundi au vendredi en décembre. \tn % Row Count 18 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Organisation}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{- - - - - commande \newline | | | | | \newline | | | | +-{}-{}-{}-- jour de la semaine (0 - 6) (dimanche=0) \newline | | | +-{}-{}-{}-{}-{}-{}- mois (1 - 12) \newline | | +-{}-{}-{}-{}-{}-{}-{}-{}- jour dans le mois (1 - 31) \newline | +-{}-{}-{}-{}-{}-{}-{}-{}-{}-- heure (0 - 23) \newline +-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}- minute (0 - 59)} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{1.04 cm} x{6.96 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Syntaxe}} \tn % Row 0 \SetRowColor{LightBackground} * & Ce charactère indique à {\emph{cron}} d'utiliser toutes les valeurs valides pour le champs concerné (pour les minutes, toutes les minutes ; pour les heures, toutes les heures et ainsi de suite). \tn % Row Count 6 (+ 6) % Row 1 \SetRowColor{white} 1,6,12 & Il est possible de spécifier plusieurs valeurs pour un seul champs. Elles doivent être séparées par une virgule. \tn % Row Count 10 (+ 4) % Row 2 \SetRowColor{LightBackground} 1-5 & Il est également possible de spécifier une gamme de valeurs. Les deux bornes sont séparées par un tiret. \tn % Row Count 14 (+ 4) % Row 3 \SetRowColor{white} /2 & Indique à {\emph{cron}} de faire tourner la commande toutes les deux \{minutes,heures,jours\}. \tn % Row Count 17 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{Vous n'aurez pas manqué de remarquer qu'il est possible de spécifier le jour dans deux champs, respectivement "jour dans le mois" et "jour de la semaine". Ces données sont cumulatives : si les deux champs sont renseignés, la commande tournera pour chaque jour indiqué.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}