SPB Git

Repository Public MIT Research preview

S11-F01-quatre-pieces.tex 2.9 KB 40 lines latex

1% S11-F01 — Terminal, shell, processus, système de fichiers (figure phare 16).2% Idée : quatre pièces distinctes. Le terminal n'interprète rien ; le shell interprète la SYNTAXE3% de la ligne (mots, « > », « | », « && ») ; le SYSTÈME D'EXPLOITATION fait exister le processus4% et les fichiers. Détail qui surprend : c'est le shell, pas grep, qui ouvre le fichier de « > ».5% Exemple suivi et nombres : S11-F01-donnees.tex (généré par le simulateur de la séance).6\input{S11-F01-donnees.tex}%7\begin{tikzpicture}[x=1mm, y=1mm]8  % Les deux territoires9  \draw[atlas region] (41,7.5) rectangle (81,45.5);10  \node[atlas tag=atlasFlow, anchor=west] at (44,45.5) {SYNTAXE DU SHELL};11  \draw[atlas region] (86,7.5) rectangle (142,45.5);12  \node[atlas tag=atlasMuted, anchor=west] at (89,45.5) {SYSTÈME D'EXPLOITATION};13  % Les pièces14  \pic[atlasFlow, scale=.5] at (4,29.5) {atlas person};15  \node[atlas label] at (4,23) {Vous};16  \node[atlas block, text width=19mm, minimum height=15mm] (t) at (23.5,27)17    {\textbf{Terminal}\\ la fenêtre : clavier et écran};18  \node[atlas block strong, text width=23mm, minimum height=15mm] (s) at (61,27)19    {\textbf{Shell}\\ interprète la ligne (Bash, Zsh…)};20  \node[atlas block flow, text width=19mm, minimum height=15mm] (p) at (102,27)21    {\textbf{Processus}\\ \texttt{\AtlasFigArchCommande} en cours d'exécution};22  \node[atlas store, text width=13mm, minimum height=15mm] (f) at (131.5,27) {\textbf{Fichiers}\\ et dossiers};23  \pic[atlasMuted, scale=.42] at (15.2,39.5) {atlas terminal};24  % Flux25  \draw[atlas arrow] (7.5,29.5) -- (t.west |- 0,29.5);26  \draw[atlas arrow] ([yshift=3.2mm]t.east) -- node[atlas note, above, pos=.42] {ligne} ([yshift=3.2mm]s.west);27  \draw[atlas arrow] ([yshift=3.2mm]s.east) -- node[atlas note, above] {lance} ([yshift=3.2mm]p.west);28  \draw[atlas arrow valid] ([yshift=-3.2mm]p.west) -- node[atlas note, below, text=atlasValid] {code \AtlasFigArchCode} ([yshift=-3.2mm]s.east);29  \draw[atlas arrow] (p.east) -- node[atlas note, above] {lit} (f.west);30  \draw[atlas arrow] (p.north) -- (102,40.2) -- node[atlas note, fill=atlasBg, inner sep=1.4pt, pos=.6] {sortie (1) et erreurs (2) : affichées par le terminal} (23.5,40.2) -- (t.north);31  \draw[atlas arrow] (s.south) -- (61,11.5) -- (131.5,11.5) -- (f.south);32  \node[atlas note, anchor=south west] at (88,12) {« > » : c'est le shell qui ouvre le fichier};33  % Rôles34  \node[atlas note, anchor=north, align=center, text width=24mm] at (23.5,18.3) {n'interprète rien : il transmet};35  \node[atlas note, anchor=north west] at (86.5,18.3) {reçoit \AtlasFigArchArguments\ arguments, rend un code};36  \node[atlas note, anchor=west] at (0,2.5) {Ligne suivie :};37  \node[atlas note, anchor=west, text=atlasFg, font=\ttfamily\AtlasSizeTiny] at (19.5,2.5) {\AtlasFigArchExemple};38  \node[atlas note, anchor=east] at (142,2.5) {Schéma conceptuel, simplifié.};39\end{tikzpicture}40
Files main
Menu

Theme