basic-group: updated files.

git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@94 a672b425-5310-4d7a-af5c-997e18724b81
This commit is contained in:
devitg 2018-11-11 11:00:42 +00:00
parent 00dddc82b8
commit b0ba24c642
6 changed files with 51 additions and 36 deletions

View file

@ -3,8 +3,9 @@ layout: page
category-title: Basic commands category-title: Basic commands
category-page: basic category-page: basic
tags: directory change navigate tags: directory change navigate
author: Marinelli Alessandro author: Alessandro Marinelli
title: CD title: cd
previous-page: pages/cmd/basic/cd.html
next-page: pages/cmd/basic/ls.html next-page: pages/cmd/basic/ls.html
--- ---

View file

@ -3,8 +3,8 @@ layout: page
category-title: Basic commands category-title: Basic commands
category-page: basic category-page: basic
tags: directory list tags: directory list
author: Marinelli Alessandro author: Alessandro Marinelli
title: LS title: ls
previous-page: pages/cmd/basic/cd.html previous-page: pages/cmd/basic/cd.html
--- ---

View file

@ -5,6 +5,8 @@ category-page: basic
tags: manual tags: manual
author: De Vita Gianmarco author: De Vita Gianmarco
title: man title: man
previous-page: pages/cmd/basic/cd.html
next-page: pages/cmd/basic/ls.html
--- ---
<p>The <code>man</code> tool allows you to explore the various utilities <p>The <code>man</code> tool allows you to explore the various utilities
of the Shell. To search for more information about a command, just write</p> of the Shell. To search for more information about a command, just write</p>

View file

@ -1,7 +1,10 @@
--- ---
layout: page layout: page
author: De Vita Gianmarco category_title: Basic commands
title: OPEN category-page: basic
tags: open
author: Gianmarco De Vita
title: open
--- ---
<p>You can open files and folder as new windows through the terminal. <p>You can open files and folder as new windows through the terminal.
The command is <code>open</code>. By writing the command open followed by the The command is <code>open</code>. By writing the command open followed by the

View file

@ -1,7 +1,11 @@
--- ---
layout: page layout: page
author: De Vita Gianmarco category_title: Basic commands
category-page: basic
tags: Open the Shell
author: Gianmarco De Vita
title: Open the Shell title: Open the Shell
next-page: pages/cmd/basic/ls.html
--- ---
<p>The tool that allows us to interact with the system with the shell is the terminal. <p>The tool that allows us to interact with the system with the shell is the terminal.
There are mainly two ways to access to the terminal on a MacOS system.</p> There are mainly two ways to access to the terminal on a MacOS system.</p>
@ -33,10 +37,10 @@ title: Open the Shell
<p> You can notice that the top lines in the window follow this structure:</p> <p> You can notice that the top lines in the window follow this structure:</p>
{% highlight ruby linenos %} <pre>
Last login: Day Month 2 hh:mm:ss on console Last login: Day Month 2 hh:mm:ss on console
Device-name:~ username$ Device-name:~ username$
{% endhighlight %} </pre>
<p>The tilde (~) just before your username means that the current position in <p>The tilde (~) just before your username means that the current position in
which the terminal is working is the Home directory. The gray spot next to which the terminal is working is the Home directory. The gray spot next to

View file

@ -1,15 +1,18 @@
--- ---
layout: page layout: page
author: De Vita Gianmarco category_title: Basic commands
title: SAY category-page: basic
tags: say
author: Gianmarco De Vita
title: say
--- ---
<p>You can convert text into audible speech just by writing the command <p>You can convert text into audible speech just by writing the command
<code>say</code> followed by a string. This is possible thanks to the <code>say</code> followed by a string. This is possible thanks to the
Speech Synthesis manager.</p> Speech Synthesis manager.</p>
{% highlight ruby linenos %} <pre>
Device-name:Current-position username$ say string Device-name:Current-position username$ say string
{% endhighlight %} </pre>
<p>Naturally, the wide presence of flags for this command allows you to use <p>Naturally, the wide presence of flags for this command allows you to use
this command for many different tasks. Notice that using more flag this command for many different tasks. Notice that using more flag
@ -20,52 +23,54 @@ title: SAY
of the string, by the path of a text file, you will get as output a voice of the string, by the path of a text file, you will get as output a voice
reading the content of that file.</p> reading the content of that file.</p>
{% highlight ruby linenos %} <pre>
Device-name:Current-position username$ say -f path/text.txt Device-name:Current-position username$ say -f path/text.txt
{% endhighlight %} </pre>
<h3>Specify the reading voice</h3> <h3>Specify the reading voice</h3>
<p>By writing the flag <code>-v</code> followed by a person name and a string, you <p>By writing the flag <code>-v</code> followed by a person name and a string, you
can decide which voice should read the string.</p> can decide which voice should read the string.</p>
{% highlight ruby linenos %} <pre>
Current-position username$ say -v name string Device-name:Current-position username$ say -v name string
{% endhighlight %} </pre>
<p><b>Notice.</b> Of course, you're not expected to know every possible voice, <p><b>Notice.</b> Of course, you're not expected to know every possible voice,
so, by writing "?" as argument of the command (including also the flag -v), so, by writing "?" as argument of the command (including also the flag -v),
you will get a list of all the available voices.</p> you will get a list of all the available voices.</p>
{% highlight ruby linenos %} <pre>
Current-position username$ say -v ? Device-name:Current-position username$ say -v ?
{% endhighlight %} </pre>
<h3>Specify the Speech Rate</h3> <h3>Specify the Speech Rate</h3>
<p>By writing the flag <code>-r</code> followed by a rate and then by a <p>By writing the flag <code>-r</code> followed by a rate and then by a
string, you can decide the reading speed in words per minute.</p> string, you can decide the reading speed in words per minute.</p>
{% highlight ruby linenos %} <pre>
Current-position username$ say -r rate string Device-name:Current-position username$ say -r rate string
{% endhighlight %} </pre>
<h3>Store the output in an audible file</h3> <h3>Store the output in an audible file</h3>
<p>You can save the result of the command in an audible file. To do that, <p>You can save the result of the command in an audible file. To do that,
you have just to write after the command the flag <code>-o</code> followed you have just to write after the command the flag <code>-o</code> followed
by the path/name of the output file and then the string that has to be read.</p> by the path/name of the output file and then the string that has to be read.</p>
{% highlight ruby linenos %} <pre>
Current-position username$ say -o path/audiofile.*format string Device-name:Current-position username$ say -o path/audiofile.*format string
{% endhighlight %} </pre>
<h3>Exercise - Flags combinations</h3> <h3>Try by yourself - Flags combinations</h3>
<p>As said above, you can use more flags in the same command, once you know <p>As said above, you can use more flags in the same command, once you know
well them. See the examples below and try to guess the output. You can well them. See the examples below and try to guess the output. You can
copy these commands into your terminal to verify your answers.</p> copy these commands into your terminal to verify your answers. Naturally,
you have to create the text files if they don't exist (with some text
inside), to make the work.</p>
{% highlight ruby linenos %} <pre>
Current-position username$ say -v Alex -f hello_world.txt Device-name:Current-position username$ say -v Alex -f hello_world.txt
{% endhighlight %} </pre>
{% highlight ruby linenos %} <pre>
Current-position username$ say -o hi.aac -f hello_world.txt Device-name:Current-position username$ say -o hi.aac -f hello_world.txt
{% endhighlight %} </pre>