123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245 |
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Linux and shell</title>
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
- <link rel="stylesheet" href="/majo/reveal-js/css/reset.css">
- <link rel="stylesheet" href="/majo/reveal-js/css/reveal.css"><link rel="stylesheet" href="/majo/reveal-js/css/theme/black.css" id="theme">
- <link rel="stylesheet" href="/majo/highlight-js/solarized-dark.min.css"><link rel="stylesheet" href="/majo/style.css" id="custom_css">
-
- </head>
- <body>
-
- <div class="reveal">
- <div class="slides">
-
- <section><h3 id="intro-su-sistemi-operativi">intro su sistemi operativi</h3>
- <ul>
- <li>cosa sono?</li>
- <li>che fanno?</li>
- </ul>
- </section><section>
- <h3 id="software-libero-kernel-distro">software libero, kernel, distro.</h3>
- <ul>
- <li><a href="https://it.wikipedia.org/wiki/Software_libero">Software Libero</a></li>
- <li><a href="https://it.wikipedia.org/wiki/Distribuzione_Linux">Distribuzioni</a></li>
- </ul>
- </section><section>
- <h3 id="come-si-installa-un-os-boot">Come si installa un OS? BOOT</h3>
- </section><section>
- <table>
- <thead>
- <tr>
- <th>Marca</th>
- <th>Tasto</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Acer</td>
- <td>F12, F9, F2, Esc</td>
- </tr>
- <tr>
- <td>Apple</td>
- <td>Option</td>
- </tr>
- <tr>
- <td>Asus</td>
- <td>Esc</td>
- </tr>
- <tr>
- <td>Dell</td>
- <td>F12</td>
- </tr>
- <tr>
- <td>HP</td>
- <td>F9</td>
- </tr>
- <tr>
- <td>Huawei</td>
- <td>F12</td>
- </tr>
- <tr>
- <td>Lenovo</td>
- <td>F12</td>
- </tr>
- <tr>
- <td>others…</td>
- <td>F12, Esc</td>
- </tr>
- </tbody>
- </table>
- </section><section>
- <h3 id="metodi-di-interazione-ui-gui-cli">metodi di interazione, UI, GUI, CLI</h3>
- <p>Quando ci relazioniamo agli strumenti c’e’ un linguaggio che usiamo per interagire con loro, questo modo di relazionarsi è la <u>User Interface</u>: permette alle persone (user) di interfacciarsi ai computer.
- <a href="https://techlearningcollective.com/foundations/command-line-basics/commands-versus-buttons">link</a></p>
- </section><section>
- <h3 id="gui">GUI</h3>
- <p>punta e clicca, pochissima espressività.</p>
- <p>nelle gui devi manipolare gli oggetti a cui vuoi riferirti puntandoli direttamente, fisicamente.
- siamo obbligati ad usare un dito, il puntatore. inoltre non puoi accedere a cio’ che non e’ mostrato.
- se non si vede non puoi manipolarlo.</p>
- </section><section>
- <h3 id="cli">CLI</h3>
- <p>Tutta l’espressività e la potenza di un linguaggio naturale!</p>
- <aside class="notes"><ul>
- <li>esempio del ristorante, scelta del menu.</li>
- <li>come si descrivono le operazioni, nella gui ci si mette un sacco a scrivere e a ripetere</li>
- <li>per la cli e’ autoesplicativo quando si conosce il linguaggio, non c’e’ ambiguita’ e’ deterministico</li>
- </ul>
- </aside>
- </section><section>
- <h3 id="cli-base">CLI base</h3>
- <ul>
- <li>tutto imperativo, si chiama command line appunto</li>
- <li>ogni comando finisce con un invio</li>
- <li>spesso i comandi necessitano argomenti</li>
- </ul>
- </section><section>
- <h3 id="iniziamo">Iniziamo</h3>
- <pre tabindex="0"><code>ls
- </code></pre><p><a href="https://techlearningcollective.com/foundations/linux-journey/the-shell">link</a></p>
- </section><section>
- <h3 id="attributi">Attributi</h3>
- <pre tabindex="0"><code>ls --help
- ls --all
- ls -t
- </code></pre></section><section>
- <h3 id="argomenti">Argomenti</h3>
- <pre tabindex="0"><code>ls Musica
- </code></pre></section><section>
- <h3 id="autocompletamento">Autocompletamento</h3>
- <p>Usa il TAB!</p>
- </section><section>
- <h4 id="help">Help</h4>
- <pre tabindex="0"><code>man ls
- </code></pre></section><section>
- <h3 id="echo">echo</h3>
- <pre tabindex="0"><code>echo ciao
- </code></pre></section><section>
- <h3 id="che-giorno-è">che giorno è</h3>
- <pre tabindex="0"><code>????
- </code></pre></section><section>
- <h3 id="filesystem">Filesystem</h3>
- <pre tabindex="0"><code>pwd
- cd .
- cd ..
- cd ~
- cd -
- cd dir
- </code></pre></section><section>
- <h3 id="files">Files</h3>
- <pre tabindex="0"><code>less
- cat
- </code></pre></section><section>
- <h3 id="history">History</h3>
- <p>su e giù</p>
- <pre tabindex="0"><code>history
- </code></pre><p>ctrl+r</p>
- </section><section>
- <h4 id="ancora-files-e-dirs">Ancora files e dirs</h4>
- <pre tabindex="0"><code>cp
- mv
- rm
- tree
- mkdir
- </code></pre></section><section>
- <h4 id="cercare">Cercare</h4>
- <pre tabindex="0"><code>find
- grep
- </code></pre></section><section>
- <h4 id="redirect">Redirect</h4>
- <pre tabindex="0"><code>echo 120g zucchero > ricetta_tiramisu.txt
- </code></pre><p>la > è una redirezione, ci permette di cambiare dove finisce l’output</p>
- </section><section>
- <h4 id="redirect-ii">Redirect II</h4>
- <pre tabindex="0"><code>echo 120g zucchero >> ricetta_tiramisu.txt
- </code></pre></section><section>
- <h4 id="pipe">PIPE</h4>
- <pre tabindex="0"><code>grep
- sort
- wc
- tail
- head
- </code></pre></section>
-
- </div>
-
- </div>
- <script type="text/javascript" src=/majo/reveal-hugo/object-assign.js></script>
- <a href="/majo/reveal-js/css/print/" id="print-location" style="display: none;"></a>
- <script type="text/javascript">
- var printLocationElement = document.getElementById('print-location');
- var link = document.createElement('link');
- link.rel = 'stylesheet';
- link.type = 'text/css';
- link.href = printLocationElement.href + (window.location.search.match(/print-pdf/gi) ? 'pdf.css' : 'paper.css');
- document.getElementsByTagName('head')[0].appendChild(link);
- </script>
- <script type="application/json" id="reveal-hugo-site-params">{"custom_css":"style.css","highlight_theme":"solarized-dark"}</script>
- <script type="application/json" id="reveal-hugo-page-params">null</script>
- <script src="/majo/reveal-js/js/reveal.js"></script>
- <script type="text/javascript">
-
-
- function camelize(map) {
- if (map) {
- Object.keys(map).forEach(function(k) {
- newK = k.replace(/(\_\w)/g, function(m) { return m[1].toUpperCase() });
- if (newK != k) {
- map[newK] = map[k];
- delete map[k];
- }
- });
- }
- return map;
- }
-
- var revealHugoDefaults = { center: true, controls: true, history: true, progress: true, transition: "slide" };
- var revealHugoSiteParams = JSON.parse(document.getElementById('reveal-hugo-site-params').innerHTML);
- var revealHugoPageParams = JSON.parse(document.getElementById('reveal-hugo-page-params').innerHTML);
-
- var options = Object.assign({},
- camelize(revealHugoDefaults),
- camelize(revealHugoSiteParams),
- camelize(revealHugoPageParams));
- Reveal.initialize(options);
- </script>
-
-
- <script type="text/javascript" src="/majo/reveal-js/plugin/markdown/marked.js"></script>
-
- <script type="text/javascript" src="/majo/reveal-js/plugin/markdown/markdown.js"></script>
-
- <script type="text/javascript" src="/majo/reveal-js/plugin/highlight/highlight.js"></script>
-
- <script type="text/javascript" src="/majo/reveal-js/plugin/zoom-js/zoom.js"></script>
-
-
- <script type="text/javascript" src="/majo/reveal-js/plugin/notes/notes.js"></script>
-
-
- </body>
- </html>
|