2022-2023/1NSI/03_Systeme_dexploitation/2B_command_memo.tex

250 lines
5.9 KiB
TeX
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

\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 dun 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}