Bertrand Benjamin
270398bf16
All checks were successful
continuous-integration/drone/push Build is passing
250 lines
5.9 KiB
TeX
Executable File
250 lines
5.9 KiB
TeX
Executable File
\documentclass[a4paper,10pt]{article}
|
||
\usepackage{myXsim}
|
||
\usepackage{minted}
|
||
|
||
\author{Bertrand Benjamin}
|
||
\title{Système d'exploitation - Cours}
|
||
\date{octobre 2022}
|
||
|
||
\pagestyle{empty}
|
||
|
||
\begin{document}
|
||
|
||
\maketitle
|
||
|
||
\setcounter{section}{1}
|
||
|
||
\section{Commandes shell}
|
||
|
||
\begin{definition}[ Commande shell ]
|
||
Une commande shell est constituée du nom de la commande suivi d’un ou plusieurs arguments. Des options peuvent être ajoutées pour modifier le comportement de la commande
|
||
|
||
|
||
\begin{center}
|
||
\begin{minipage}{0.5\linewidth}
|
||
\begin{minted}[bgcolor=base3]{bash}
|
||
commande -option1 -option2 ... arg1 arg2...
|
||
\end{minted}
|
||
\end{minipage}
|
||
\end{center}
|
||
\end{definition}
|
||
|
||
\subsection*{Mémo des commandes shell}
|
||
|
||
\setlength{\columnseprule}{0pt}
|
||
|
||
\begin{multicols}{2}
|
||
\begin{encadre}{\mintinline{bash}{ssh}}
|
||
\bigskip
|
||
\textbf{Description:} \dotfill \\[0.2cm] .\dotfill \\
|
||
|
||
\textbf{Exemples:}
|
||
|
||
\dotfill \\[0.2cm]
|
||
.\dotfill \\[0.2cm]
|
||
.\dotfill \\[0.2cm]
|
||
.\dotfill \\
|
||
\bigskip
|
||
\end{encadre}
|
||
|
||
\begin{encadre}{\mintinline{bash}{pwd}}
|
||
\bigskip
|
||
\textbf{Description:} \dotfill \\[0.2cm] .\dotfill \\
|
||
|
||
\textbf{Exemples:}
|
||
|
||
\dotfill \\[0.2cm]
|
||
.\dotfill \\[0.2cm]
|
||
.\dotfill \\[0.2cm]
|
||
.\dotfill \\
|
||
\bigskip
|
||
\end{encadre}
|
||
|
||
\begin{encadre}{\mintinline{bash}{cd [DOSSIER]}}
|
||
\bigskip
|
||
\textbf{Description:}
|
||
\dotfill \\[0.2cm]
|
||
.\dotfill \\
|
||
|
||
\textbf{Exemples:}
|
||
\begin{itemize}[leftmargin=*]
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\end{itemize}
|
||
\bigskip
|
||
\end{encadre}
|
||
|
||
\begin{encadre}{\mintinline{bash}{tree [OPTION]... [DOSSIER]...}}
|
||
\bigskip
|
||
\textbf{Description:}
|
||
\dotfill \\[0.2cm]
|
||
.\dotfill \\
|
||
|
||
\textbf{Options courantes:}
|
||
\begin{itemize}[leftmargin=*]
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\end{itemize}
|
||
\bigskip
|
||
\textbf{Exemples:}
|
||
\begin{itemize}[leftmargin=*]
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\end{itemize}
|
||
\bigskip
|
||
\end{encadre}
|
||
|
||
\begin{encadre}{\mintinline{bash}{cat [OPTION]... [FICHIER]...}}
|
||
\bigskip
|
||
\textbf{Description:}
|
||
\dotfill \\[0.2cm]
|
||
.\dotfill \\
|
||
|
||
\textbf{Options courantes:}
|
||
\begin{itemize}[leftmargin=*]
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\end{itemize}
|
||
\bigskip
|
||
\textbf{Exemples:}
|
||
\begin{itemize}[leftmargin=*]
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\end{itemize}
|
||
\bigskip
|
||
\end{encadre}
|
||
|
||
\begin{encadre}{\mintinline{bash}{mv [OPTION]... [SOURCE] [CIBLE]}}
|
||
\bigskip
|
||
\textbf{Description:}
|
||
\dotfill \\[0.2cm]
|
||
.\dotfill \\
|
||
|
||
\textbf{Options courantes:}
|
||
\begin{itemize}[leftmargin=*]
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\end{itemize}
|
||
\bigskip
|
||
\textbf{Exemples:}
|
||
\begin{itemize}[leftmargin=*]
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\end{itemize}
|
||
\bigskip
|
||
\end{encadre}
|
||
|
||
\begin{encadre}{\mintinline{bash}{cp [OPTION]... [SOURCE] [CIBLE]}}
|
||
\bigskip
|
||
\textbf{Description:}
|
||
\dotfill \\[0.2cm]
|
||
.\dotfill \\
|
||
|
||
\textbf{Options courantes:}
|
||
\begin{itemize}[leftmargin=*]
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\end{itemize}
|
||
\bigskip
|
||
\textbf{Exemples:}
|
||
\begin{itemize}[leftmargin=*]
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\end{itemize}
|
||
\bigskip
|
||
\end{encadre}
|
||
|
||
\begin{encadre}{\mintinline{bash}{touch [FICHIER]...}}
|
||
\bigskip
|
||
\textbf{Description:}
|
||
\dotfill \\[0.2cm]
|
||
.\dotfill \\
|
||
|
||
\textbf{Exemples:}
|
||
\begin{itemize}[leftmargin=*]
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\end{itemize}
|
||
\bigskip
|
||
\end{encadre}
|
||
|
||
\begin{encadre}{\mintinline{bash}{rm [OPTION]... [DOSSIER]...}}
|
||
\bigskip
|
||
\textbf{Description:}
|
||
\dotfill \\[0.2cm]
|
||
.\dotfill \\
|
||
|
||
\textbf{Options courantes:}
|
||
\begin{itemize}[leftmargin=*]
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\end{itemize}
|
||
\bigskip
|
||
\textbf{Exemples:}
|
||
\begin{itemize}[leftmargin=*]
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\end{itemize}
|
||
\bigskip
|
||
\end{encadre}
|
||
|
||
\begin{encadre}{\mintinline{bash}{mkdir [OPTION]... [DOSSIER]...}}
|
||
\bigskip
|
||
\textbf{Description:}
|
||
\dotfill \\[0.2cm]
|
||
.\dotfill \\
|
||
|
||
\textbf{Options courantes:}
|
||
\begin{itemize}[leftmargin=*]
|
||
\item \dotfill
|
||
\end{itemize}
|
||
\bigskip
|
||
\textbf{Exemples:}
|
||
\begin{itemize}[leftmargin=*]
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\end{itemize}
|
||
\bigskip
|
||
\end{encadre}
|
||
|
||
\begin{encadre}{\mintinline{bash}{nano [FICHIER]...}}
|
||
\bigskip
|
||
\textbf{Description:}
|
||
\dotfill \\[0.2cm]
|
||
.\dotfill \\
|
||
|
||
\textbf{Exemples:}
|
||
\begin{itemize}[leftmargin=*]
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\item \dotfill
|
||
\end{itemize}
|
||
\bigskip
|
||
\end{encadre}
|
||
|
||
\end{multicols}
|
||
|
||
\end{document}
|