diff options
author | 2022-05-11 18:12:19 +0200 | |
---|---|---|
committer | 2022-05-11 18:12:19 +0200 | |
commit | 1508c40a92f4472231b976c6dd8d3e2c24daef72 (patch) | |
tree | 21a5a4c9d58d47b4fdfcc0dd6186784dbb8eb543 | |
parent | dfd94540d6d024efe9c08b48efe922591d92cae9 (diff) | |
download | website-1508c40a92f4472231b976c6dd8d3e2c24daef72.tar.gz website-1508c40a92f4472231b976c6dd8d3e2c24daef72.zip |
Add docs/shell/
-rw-r--r-- | docs/shell/commands.rhtml | 4 | ||||
-rw-r--r-- | docs/shell/commands.rhtml.config | 4 | ||||
-rw-r--r-- | docs/shell/index.rhtml | 7 | ||||
-rw-r--r-- | docs/shell/index.rhtml.config | 4 | ||||
-rw-r--r-- | docs/shell/jq.rhtml | 8 | ||||
-rw-r--r-- | docs/shell/jq.rhtml.config | 4 | ||||
-rw-r--r-- | docs/shell/shell.tmpl | 89 |
7 files changed, 120 insertions, 0 deletions
diff --git a/docs/shell/commands.rhtml b/docs/shell/commands.rhtml new file mode 100644 index 0000000..3a029d2 --- /dev/null +++ b/docs/shell/commands.rhtml @@ -0,0 +1,4 @@ +<h1>Elenco dei comandi della shell</h1> +<ul> + <li><a href="/docs/shell/jq.html">jq</a></li> +</ul>
\ No newline at end of file diff --git a/docs/shell/commands.rhtml.config b/docs/shell/commands.rhtml.config new file mode 100644 index 0000000..9664c1b --- /dev/null +++ b/docs/shell/commands.rhtml.config @@ -0,0 +1,4 @@ +title: "Shell" +category: notes +pageNames: [shell, shell-commands, Comandi] +master: [docs/shell/shell.tmpl, master.rhtml]
\ No newline at end of file diff --git a/docs/shell/index.rhtml b/docs/shell/index.rhtml new file mode 100644 index 0000000..4e64bed --- /dev/null +++ b/docs/shell/index.rhtml @@ -0,0 +1,7 @@ +<h1>Shell</h1> + +<p>La shell è uno strumento fondamentale che consente l'interazione con il sistema operativo. Con essa è + possibile eseguire comandi e applicazioni. Sostanzialmente, la shell è un interprete, quindi viene "usata" con + un linguaggio di scripting. Le shell più note sono <i>sh</i>, <i>csh</i>, <i>tsh</i>, <i>zsh</i> e + <i>bash</i>.</p> + diff --git a/docs/shell/index.rhtml.config b/docs/shell/index.rhtml.config new file mode 100644 index 0000000..35b84b0 --- /dev/null +++ b/docs/shell/index.rhtml.config @@ -0,0 +1,4 @@ +title: "Shell" +category: notes +pageNames: [shell, shell-index, Indice] +master: [docs/shell/shell.tmpl, master.rhtml]
\ No newline at end of file diff --git a/docs/shell/jq.rhtml b/docs/shell/jq.rhtml new file mode 100644 index 0000000..8605b76 --- /dev/null +++ b/docs/shell/jq.rhtml @@ -0,0 +1,8 @@ +<h1>Shell</h1> +<h2>jq - Command-line JSON processor</h2> +<p> + FreeBSD: <i>pkg install jq</i> +</p> +<p>Un comando molto utile per chi lavora in ambito enterprise è <code>jq</code>. Consente di navigare il JSON in + maniera molto semplice. Di seguito viene riportato un esempio di utilizzo:</p> +<pre>curl -X GET http://example.com/rest-endpoint | jq ".someField"</pre> diff --git a/docs/shell/jq.rhtml.config b/docs/shell/jq.rhtml.config new file mode 100644 index 0000000..c937145 --- /dev/null +++ b/docs/shell/jq.rhtml.config @@ -0,0 +1,4 @@ +title: "Shell [jq]" +category: notes +pageNames: [shell, shell-commands, jq] +master: [docs/shell/shell.tmpl, master.rhtml]
\ No newline at end of file diff --git a/docs/shell/shell.tmpl b/docs/shell/shell.tmpl new file mode 100644 index 0000000..d65f0bc --- /dev/null +++ b/docs/shell/shell.tmpl @@ -0,0 +1,89 @@ +<ul class="nav justify-content-end"> + <li class="nav-item"> + <a class="btn btn-primary" + data-bs-toggle="offcanvas" + href="#contents" + role="button" + aria-controls="offcanvasContents">Contenuti</a> + </li> +</ul> + +<div class="offcanvas offcanvas-start" + tabindex="-1" id="contents" + aria-labelledby="contentsLabel"> + <div class="offcanvas-header"> + <h5 class="offcanvas-title" id="contentsLabel">Shell</h5> + <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button> + </div> + <div class="offcanvas-body"> + <div> + Qui di seguito puoi trovare una lista di tutti i comandi trattati nella guida. + </div> + <div class="mt-3"> + + <!-- Sidebar --> + <ul class="list-unstyled ps-0"> + <li class="mb-1"> + <button class="btn btn-toggle align-items-center rounded collapsed" + data-bs-toggle="collapse" + data-bs-target="#commands-collapse" + aria-expanded="true">Comandi + </button> + <div class="collapse show" id="commands-collapse"> + <ul class="btn-toggle-nav list-unstyled fw-normal pb-1 small"> + <li><a href="/docs/shell/jq.html" class="link-dark rounded"><b>jq</b> - Command-line JSON processor</a></li> + <li><a href="#" class="link-dark rounded">Updates</a></li> + <li><a href="#" class="link-dark rounded">Reports</a></li> + </ul> + </div> + </li> + <li class="mb-1"> + <button class="btn btn-toggle align-items-center rounded collapsed" data-bs-toggle="collapse" data-bs-target="#dashboard-collapse" aria-expanded="false"> + Dashboard + </button> + <div class="collapse" id="dashboard-collapse"> + <ul class="btn-toggle-nav list-unstyled fw-normal pb-1 small"> + <li><a href="#" class="link-dark rounded">Overview</a></li> + <li><a href="#" class="link-dark rounded">Weekly</a></li> + <li><a href="#" class="link-dark rounded">Monthly</a></li> + <li><a href="#" class="link-dark rounded">Annually</a></li> + </ul> + </div> + </li> + <li class="mb-1"> + <button class="btn btn-toggle align-items-center rounded collapsed" data-bs-toggle="collapse" data-bs-target="#orders-collapse" aria-expanded="false"> + Orders + </button> + <div class="collapse" id="orders-collapse"> + <ul class="btn-toggle-nav list-unstyled fw-normal pb-1 small"> + <li><a href="#" class="link-dark rounded">New</a></li> + <li><a href="#" class="link-dark rounded">Processed</a></li> + <li><a href="#" class="link-dark rounded">Shipped</a></li> + <li><a href="#" class="link-dark rounded">Returned</a></li> + </ul> + </div> + </li> + <li class="border-top my-3"></li> + <li class="mb-1"> + <button class="btn btn-toggle align-items-center rounded collapsed" data-bs-toggle="collapse" data-bs-target="#account-collapse" aria-expanded="false"> + Account + </button> + <div class="collapse" id="account-collapse"> + <ul class="btn-toggle-nav list-unstyled fw-normal pb-1 small"> + <li><a href="#" class="link-dark rounded">New...</a></li> + <li><a href="#" class="link-dark rounded">Profile</a></li> + <li><a href="#" class="link-dark rounded">Settings</a></li> + <li><a href="#" class="link-dark rounded">Sign out</a></li> + </ul> + </div> + </li> + </ul> + + + + </div> + </div> +</div> + + +<%= render @pageFileName %> |