code review fpr basic and advanced pages
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@169 a672b425-5310-4d7a-af5c-997e18724b81
This commit is contained in:
parent
9dda78a377
commit
ee255aac27
@ -7,31 +7,18 @@ tags: echo calculator print
|
|||||||
title: echo
|
title: echo
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<p>
|
||||||
|
In computing, <code>echo</code> is a command in Unix operating systems that outputs the
|
||||||
|
strings it is being passed as arguments.<br>
|
||||||
|
|
||||||
|
It is a command typically used to output status text to the screen or a
|
||||||
|
computer file, or as a source part of a pipeline.<br>
|
||||||
|
|
||||||
|
To use this simple command just type "echo" with the topic we want to
|
||||||
|
print. The computer will return your argument as a string
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
echo "hello world"
|
||||||
<p> In computing, echo is a command in Unix operating systems that outputs the
|
hello world
|
||||||
strings it is being passed as arguments. <br>
|
</pre>
|
||||||
It is a command typically used in
|
</p>
|
||||||
shell scripts and batch files to output status text to the screen or a
|
|
||||||
computer file, or as a source part of a pipeline.</p>
|
|
||||||
<br>
|
|
||||||
<h3>How to use</h3>
|
|
||||||
|
|
||||||
<p> To use this simple command just type "echo" with the topic we want to
|
|
||||||
print. The computer will return your argument as a string, for example,
|
|
||||||
<pre><code> echo hello world</pre></code>
|
|
||||||
will return hello world.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<br>
|
|
||||||
|
|
||||||
<h3>Skills</h3>
|
|
||||||
<br>
|
|
||||||
<ul>
|
|
||||||
<li><h4>bc:</h4> It permits you to make arithmetic calculation
|
|
||||||
through the terminal using this format:
|
|
||||||
<pre><code> echo 12+4 | bc</code></pre>
|
|
||||||
will return 16.</li>
|
|
||||||
|
@ -3,11 +3,16 @@ layout: page
|
|||||||
author: Domenico Votta
|
author: Domenico Votta
|
||||||
category-page: advanced
|
category-page: advanced
|
||||||
category-title: Advanced commands
|
category-title: Advanced commands
|
||||||
tags: search for occurences
|
tags: search for occurencies
|
||||||
title: grep
|
title: grep
|
||||||
---
|
---
|
||||||
<p>The <code>grep</code> is a command that permits to search occurences of a keyword or more in a file or more. Through some flags you can decide the search criteria. The command grep is case sensitive (robot is different from Robot), but we will see how to ignore it</p>
|
<p>The <code>grep</code> is a command that permits to search occurences of a
|
||||||
Here we have two files named <code>example1.txt</code> and <code>example2.txt</code> that contain 5 elements, to test this command:
|
keyword or more in a file or more. Through some flags you can decide the search criteria.
|
||||||
|
The command grep is case sensitive (robot is different from Robot), but we will see how
|
||||||
|
to ignore it.<br>
|
||||||
|
|
||||||
|
Here we have two files named <code>example1.txt</code> and
|
||||||
|
<code>example2.txt</code> that contain 5 elements, to test this command:
|
||||||
|
|
||||||
<code>example1.txt</code>
|
<code>example1.txt</code>
|
||||||
{% highlight bash linenos %}
|
{% highlight bash linenos %}
|
||||||
@ -31,50 +36,56 @@ The syntax command is:
|
|||||||
<pre>grep [flag] [keyword] [file]</pre>
|
<pre>grep [flag] [keyword] [file]</pre>
|
||||||
You can put different flags together to refine the search.
|
You can put different flags together to refine the search.
|
||||||
|
|
||||||
{% highlight ruby linenos %}
|
<pre>
|
||||||
grep Robot example1.txt example2.txt (if you write robot you won't have the correspondence.)
|
grep Robot example1.txt example2.txt (if you write robot you won't have the correspondence.)
|
||||||
example1.txt: Robot
|
example1.txt: Robot
|
||||||
example2.txt: Robot
|
example2.txt: Robot
|
||||||
{% endhighlight %}
|
</pre>
|
||||||
<p>Your output will be this because grep found the keyword Robot in both files</p>
|
|
||||||
|
Your output will be this because grep found the keyword Robot in both files
|
||||||
|
|
||||||
<h2>Flags</h2>
|
<h2>Flags</h2>
|
||||||
<p>Here a list that contains the main flags of these command:
|
Here a list that contains the main flags of these command:
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li> <b>-i</b>: this flag ignore the case sensitive. Here we can write Robot or robot that grep will find the correspondence. </li>
|
<li> <b>-i</b>: this flag ignore the case sensitive. Here we can write Robot or
|
||||||
|
robot that grep will find the correspondence.
|
||||||
<pre>
|
<pre>
|
||||||
grep -i robot example1.txt example2.txt
|
grep -i robot example1.txt example2.txt
|
||||||
example1.txt: Robot
|
example1.txt: Robot
|
||||||
example2.txt: Robot
|
example2.txt: Robot
|
||||||
</pre>
|
</pre>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li> <b>-v</b>: this flag ignore the keyword from the search. </li>
|
<li> <b>-v</b>: this flag ignore the keyword from the search.
|
||||||
<pre>
|
<pre>
|
||||||
grep -i -v robot example1.txt example2.txt
|
grep -i -v robot example1.txt example2.txt
|
||||||
example1.txt:Car
|
example1.txt:Car
|
||||||
example1.txt:Computer
|
example1.txt:Computer
|
||||||
example1.txt:Smartphone
|
example1.txt:Smartphone
|
||||||
example1.txt:Videogame
|
example1.txt:Videogame
|
||||||
example2.txt:Apple
|
example2.txt:Apple
|
||||||
example2.txt:Computer
|
example2.txt:Computer
|
||||||
example2.txt:Microsoft
|
example2.txt:Microsoft
|
||||||
example2.txt:Huawei
|
example2.txt:Huawei
|
||||||
</pre>
|
</pre>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li> <b>-c</b>: this flag indicates the number of times that the keyword appears in the file. </li>
|
<li> <b>-c</b>: this flag indicates the number of times that the keyword appears in the file.
|
||||||
<pre>
|
<pre>
|
||||||
grep -i -c robot example1.txt
|
grep -i -c robot example1.txt
|
||||||
1
|
1
|
||||||
</pre>
|
</pre>
|
||||||
<p> If in the file you would have had two times the keyword Robot, the output would have been 2</p>
|
(If in the file you would have had two times the keyword Robot, the output would have been 2)
|
||||||
|
</li>
|
||||||
|
|
||||||
<li> <b>-h</b>: Remove from the output the file name where it found the keyword</li>
|
<li> <b>-h</b>: Remove from the output the file name where it found the keyword
|
||||||
<pre>
|
<pre>
|
||||||
grep -i -h apple example1.txt example2.txt
|
grep -i -h apple example1.txt example2.txt
|
||||||
Apple
|
Apple
|
||||||
</pre>
|
</pre>
|
||||||
<p>How you can see the output doesn't show tha file name <code>example2.txt</code></p>
|
How you can see the output doesn't show tha file name <code>example2.txt</code>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
|
@ -6,8 +6,12 @@ category-title: Advanced commands
|
|||||||
tags: number lines count
|
tags: number lines count
|
||||||
title: nl
|
title: nl
|
||||||
---
|
---
|
||||||
<p>The <code>nl</code> is a command that permits to number the lines. Through some flags you can decide how to filter this command.</p>
|
<p>
|
||||||
|
The <code>nl</code> is a command that permits to number the lines.
|
||||||
|
Through some flags you can decide how to filter this command.<br>
|
||||||
|
|
||||||
We have a file named <code>example.txt</code> that contains 5 elements, to test this command:
|
We have a file named <code>example.txt</code> that contains 5 elements, to test this command:
|
||||||
|
|
||||||
{% highlight bash linenos %}
|
{% highlight bash linenos %}
|
||||||
Car
|
Car
|
||||||
Computer
|
Computer
|
||||||
@ -21,49 +25,52 @@ The syntax command is:
|
|||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
nl example.txt
|
nl example.txt
|
||||||
1 Car
|
1 Car
|
||||||
2 Computer
|
2 Computer
|
||||||
3 Robot
|
3 Robot
|
||||||
4 Smartphone
|
4 Smartphone
|
||||||
5 Videogame
|
5 Videogame
|
||||||
</pre>
|
</pre>
|
||||||
<p>How you can see the command has numbered the lines.</p>
|
|
||||||
|
How you can see the command has numbered the lines.
|
||||||
|
|
||||||
<h2>Flags</h2>
|
<h2>Flags</h2>
|
||||||
|
|
||||||
<p>Here a list that contains the main flags of these command:
|
|
||||||
<ul>
|
<ul>
|
||||||
|
<li> <b>-b (regex)</b>: Specify the lines to be numered
|
||||||
<li> <b>-b</b>: Specify the lines to be numered </li>
|
|
||||||
<pre>
|
<pre>
|
||||||
nl -b p^[cv] example.txt
|
nl -b p^[cv] example.txt
|
||||||
1 Car
|
1 Car
|
||||||
2 Computer
|
2 Computer
|
||||||
3 Videogame
|
3 Videogame
|
||||||
Robot
|
Robot
|
||||||
Smartphone
|
Smartphone
|
||||||
</pre>
|
</pre>
|
||||||
<p> <code>p^[cv]</code> says to nl to number only the lines that start with c and v.</p>
|
<code>p^[cv]</code> says to nl to number only the lines that start with c and v.
|
||||||
|
</li>
|
||||||
|
|
||||||
<li> -b<b>n</b>: The flag n goes with b, doesn't number any lines </li>
|
<li> -b<b>n</b>: The flag n goes with b, doesn't number any lines
|
||||||
<pre>
|
<pre>
|
||||||
nl -bn example.txt
|
nl -bn example.txt
|
||||||
Car
|
Car
|
||||||
Computer
|
Computer
|
||||||
Videogame
|
Videogame
|
||||||
Robot
|
Robot
|
||||||
Smartphone
|
Smartphone
|
||||||
</pre>
|
</pre>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li> <b>-s</b>: Usually nl separes the number of the line from the text with a tab, with -s flag you can choose another separator, in this example we will use "=". </li>
|
<li> <b>-s</b>: Usually nl separes the number of the line from the text with a tab, with -s
|
||||||
|
flag you can choose another separator, in this example we will use "=".
|
||||||
<pre>
|
<pre>
|
||||||
nl -s= example.txt
|
nl -s= example.txt
|
||||||
1=Car
|
1=Car
|
||||||
2=Computer
|
2=Computer
|
||||||
3=Videogame
|
3=Videogame
|
||||||
4=Robot
|
4=Robot
|
||||||
5=Smartphone
|
5=Smartphone
|
||||||
</pre>
|
</pre>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
|
@ -7,22 +7,35 @@ tags: pipes redirect output input
|
|||||||
title: pipes
|
title: pipes
|
||||||
---
|
---
|
||||||
|
|
||||||
<p>The <code>pipes</code> that in the shell are representend with the symbol | , they are used to join two commands on the terminal, taking the output of the first command and using it as input of the second. </p>
|
<p>
|
||||||
<p> It is usually common to see the command grep and ps together, an example below.</p>
|
The <code>pipes</code> that in the shell are representend with the symbol | ,
|
||||||
|
they are used to join two commands on the terminal, taking the output of the first
|
||||||
|
command and using it as input of the second.<br>
|
||||||
|
It is usually common to see the command <code>grep</code> and <code>ps</code> together,
|
||||||
|
an example below.<br>
|
||||||
|
|
||||||
|
Example: lists all processes with your username
|
||||||
<pre>
|
<pre>
|
||||||
ps aux | grep user
|
ps aux | grep user
|
||||||
</pre>
|
</pre>
|
||||||
<p>Lists all processes with your username</p>
|
|
||||||
|
|
||||||
|
Example: count the lines of a file, using the
|
||||||
|
<a href="{{ site.baseurl }}/pages/cmd/advanced/nl.html">nl</a> command
|
||||||
<pre>
|
<pre>
|
||||||
cat example1.txt | nl
|
cat example1.txt | nl
|
||||||
1 Car
|
1 Car
|
||||||
2 Computer
|
2 Computer
|
||||||
3 Robot
|
3 Robot
|
||||||
4 Smartphone
|
4 Smartphone
|
||||||
5 Videogame
|
5 Videogame
|
||||||
</pre>
|
</pre>
|
||||||
<p>In this example you send this output to another process, in this case, the <a href="{{ site.baseurl }}/pages/cmd/advanced/nl.html">nl</a> </p>
|
|
||||||
|
|
||||||
<p>You can use the commands that you learned and put them together, always respecting the logic of the command.</p>
|
Example: passing expressions to <a href="{{ site.baseurl }}/pages/cmd/advanced/bc.html">bc</a>
|
||||||
|
to do calculations
|
||||||
|
<pre>
|
||||||
|
echo "(12 / 2 - 3) * 3 + 1.5" | bc
|
||||||
|
10.5
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
You can use the commands that you learned and put them together, always
|
||||||
|
respecting the logic of the command.
|
||||||
|
@ -7,42 +7,49 @@ tags: translate
|
|||||||
title: tr
|
title: tr
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The <code>tr</code> command in Unix-like operating systems, which name stands for
|
||||||
|
<i>TRanslate</i> or <i>TRansliterate</i>, indicating its operation of replacing or removing
|
||||||
|
specific characters in its input data set.
|
||||||
|
|
||||||
|
<h3>How to use</h3>
|
||||||
|
|
||||||
|
The utility reads a byte stream from its standard input and writes the
|
||||||
|
result to the standard output. As arguments, it takes two sets of
|
||||||
|
characters (generally of the same length), and replaces occurrences of
|
||||||
|
the characters in the first set with the corresponding elements from the
|
||||||
|
second set.<br>
|
||||||
|
|
||||||
|
For example,
|
||||||
|
<pre>
|
||||||
|
tr 'abcd' 'jkmn'
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
would maps all characters a to j, b to k, c to m, and d to n.<br>
|
||||||
|
The character set may be abbreviated by using character ranges. The
|
||||||
|
previous example could be also written as:
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
tr 'a-d' 'jkmn'
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
|
<h3>Flags</h3>
|
||||||
|
<ul>
|
||||||
<p> tr is a command in Unix-like operating systems. It is an abbreviation of
|
<li> <b>-s</b>: The s flag causes tr to compress sequences of identical
|
||||||
translate or transliterate, indicating its operation of replacing or removing
|
adjacent characters in its output to a single token.
|
||||||
specific characters in its input data set.</p>
|
<pre>
|
||||||
|
tr -s '\n'
|
||||||
<h3>How to use</h3>
|
</pre>
|
||||||
|
replaces sequences of one or more newline characters with a single
|
||||||
<p> The utility reads a byte stream from its standard input and writes the
|
newline.
|
||||||
result to the standard output. As arguments, it takes two sets of
|
</li>
|
||||||
characters (generally of the same length), and replaces occurrences of
|
<li> <b>-d</b>: The d flag causes tr to delete all tokens of the specified
|
||||||
the characters in the first set with the corresponding elements from the
|
|
||||||
second set. For example,
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<pre> <code>tr 'abcd' 'jkmn'</code></pre>
|
|
||||||
<p> maps all characters a to j, b to k, c to m, and d to n.</p>
|
|
||||||
<p> The character set may be abbreviated by using character ranges. The
|
|
||||||
previous example could be written: </p>
|
|
||||||
|
|
||||||
<pre> tr 'a-d' 'jkmn' </pre>
|
|
||||||
|
|
||||||
|
|
||||||
<h3>Flags</h3>
|
|
||||||
<ul>
|
|
||||||
<li><h4> -s:</h4> The s flag causes tr to compress sequences of identical
|
|
||||||
adjacent characters in its output to a single token.
|
|
||||||
<pre> tr -s '\n'</pre>
|
|
||||||
replaces sequences of one or more newline characters with a single
|
|
||||||
newline.</li>
|
|
||||||
|
|
||||||
<li><h4> -d</h4>:The d flag causes tr to delete all tokens of the specified
|
|
||||||
set of characters from its input. In this case, only a single character
|
set of characters from its input. In this case, only a single character
|
||||||
set argument is used. The following command removes carriage return
|
set argument is used. The following command removes carriage return
|
||||||
characters.
|
characters.
|
||||||
<pre>tr -d '\r'</pre>
|
<pre>
|
||||||
</li>
|
tr -d '\r'
|
||||||
|
</pre>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
@ -8,9 +8,16 @@ title: Closing the shell
|
|||||||
<!--next-page: pages/cmd/basic/ --> <!-- The sequence must be defined -->
|
<!--next-page: pages/cmd/basic/ --> <!-- The sequence must be defined -->
|
||||||
---
|
---
|
||||||
|
|
||||||
<h2> Close </h2>
|
<p>
|
||||||
|
If you want to close the shell session, there are several ways to do so:
|
||||||
|
|
||||||
<p> If you want to close the shell session, all you have to do is press <code> ^ (control) + D.</code>
|
<ul>
|
||||||
Apply the change and save the session.
|
<li>Press <code>^ (control) + D</code>. Although this key combination closes the shell,
|
||||||
After closing the session, the screen is still visible but the program does not allow you to type a new command.
|
it doesn't quit the terminal application as it just saves and closes the current session.
|
||||||
To continue using the shel all you need to do is quit the terminal and reopen the application </p>
|
A closed session does not allow any input or output anymore.
|
||||||
|
</li>
|
||||||
|
<li>Insert the <code>exit</code> command. Unlike the mentioned key combo, exit also quits
|
||||||
|
the terminal application itself.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</p>
|
||||||
|
@ -55,9 +55,9 @@ Such commands must be used once the file has been displayed.
|
|||||||
They are not. For a single operation there can be multiple commands. </p>
|
They are not. For a single operation there can be multiple commands. </p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><code> g < ESC-< </code>:
|
<li><code> g < ESC-< </code>:
|
||||||
Go to line N, by default 1, if N is not specified.</li>
|
Go to line N, by default 1, if N is not specified.</li>
|
||||||
<li><code> G > ESC-> </code>:
|
<li><code> G > ESC-> </code>:
|
||||||
Go to line N, by default the last one , if N is not specified.</li>
|
Go to line N, by default the last one , if N is not specified.</li>
|
||||||
<li><code> t </code>:
|
<li><code> t </code>:
|
||||||
Go to the (N-th) next tag. </li>
|
Go to the (N-th) next tag. </li>
|
||||||
|
@ -35,7 +35,7 @@ open -a preview Desktop/abc.pdf
|
|||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
As result, a new <i>Preview</i> window appears showing the content of the
|
As result, a new <i>Preview</i> window appears showing the content of the
|
||||||
chosen file.<br><br>
|
chosen file.<br>
|
||||||
|
|
||||||
<h3>Open the folder which contains the file</h3>
|
<h3>Open the folder which contains the file</h3>
|
||||||
If you want to open the folder that contains a specific file, just use
|
If you want to open the folder that contains a specific file, just use
|
||||||
@ -54,7 +54,7 @@ the file you want to open.
|
|||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
open -t Desktop/text.txt
|
open -t Desktop/text.txt
|
||||||
</pre><br>
|
</pre>
|
||||||
|
|
||||||
<h3>Visit a Website</h3>
|
<h3>Visit a Website</h3>
|
||||||
You can use this tool not only to open files and folders, but also webpages.
|
You can use this tool not only to open files and folders, but also webpages.
|
||||||
|
@ -7,9 +7,9 @@ author: Gianmarco De Vita
|
|||||||
title: Open the Shell
|
title: Open the Shell
|
||||||
next-page: pages/cmd/basic/open.html
|
next-page: pages/cmd/basic/open.html
|
||||||
---
|
---
|
||||||
|
<p>
|
||||||
The tool that allows us to interact with the system with the shell is the terminal.
|
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.
|
||||||
|
|
||||||
<h3>Through the Finder</h3>
|
<h3>Through the Finder</h3>
|
||||||
|
|
||||||
|
@ -2,248 +2,180 @@
|
|||||||
layout: page
|
layout: page
|
||||||
tags: toolbar
|
tags: toolbar
|
||||||
author: Marzio Lunghi
|
author: Marzio Lunghi
|
||||||
title: Terminal's toolbar
|
title: MacOS terminal toolbar
|
||||||
<!--next-page: pages/cmd/basic/ --> <!-- The sequence must be defined -->
|
<!--next-page: pages/cmd/basic/ --> <!-- The sequence must be defined -->
|
||||||
---
|
---
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Once the Terminal has been opened, a menu bar will appear exactly in the upper left corner of the screen.
|
Once the MacOS Terminal app has been opened, a menu bar will appear exactly in the upper
|
||||||
This menu contains some preferences that could improve the user experience and use of the Terminal.
|
left corner of the screen. This menu contains some preferences that could improve the user
|
||||||
|
experience and use of the Terminal.<br>
|
||||||
The menu is divided into 6 sections that I will describe briefly to give you a basic knowledge
|
The menu is divided into 6 sections that I will describe briefly to give you a basic knowledge
|
||||||
that could be very useful once you have become familiar with the program.<br>
|
that could be very useful once you have become familiar with the program.
|
||||||
|
|
||||||
<li><h3> Terminal </h3></li>
|
<h3>Terminal</h3>
|
||||||
|
|
||||||
<ul>
|
<img src="" alt="Terminal section" height="">
|
||||||
<img src="" alt="Terminal section" height="">
|
|
||||||
|
|
||||||
<li> <h4> Secure Keyboard Entry </h4>
|
<ul>
|
||||||
</li>
|
<li><b>Secure Keyboard Entry</b>:
|
||||||
<p> Inside the Terminal section you will find the item “secure Keyboard Entry”, this tool allows the user to enable an additional system security.
|
Inside the Terminal section you will find the item “secure Keyboard Entry”, this tool
|
||||||
Essentially, this option prevents other Application from seeing what you are typing on the shell.
|
allows the user to enable an additional system security.<br>
|
||||||
It also prevents processes that are working in background from monitoring your keystrokes.
|
Essentially, this option prevents other Application from seeing what you are
|
||||||
In a first moment it seems that it doesn’t do anything, that’s because for people who works on their own personal computer, this additional secure becomes an unnecessary precaution.
|
typing on the shell.<br>
|
||||||
However, this option could be very useful if you using an unknown computer or a public computer.
|
It also prevents processes that are working in background from
|
||||||
<li> <h4> Hide Terminal </h4>
|
monitoring your keystrokes.<br>
|
||||||
</li>
|
In a first moment it seems that it doesn’t do anything, that’s because for
|
||||||
<p> Although Shell’s window does not occupy a lot of space, it is possible to hide the window by pressing ⌘ + H . </p>
|
people who works on their own personal computer, this additional secure may
|
||||||
<li> <h4> Hide Others </h4>
|
become an unnecessary precaution.<br>
|
||||||
</li>
|
However, this option could be very useful if you using an unknown computer
|
||||||
<p> In the other hand, it’s possible to hide all the others windows (except the Terminal) by pressing ⌥ + ⌘ + H . </p>
|
or a public computer.
|
||||||
<li> <h4> Quit Terminal </h4>
|
</li>
|
||||||
</li>
|
<li><b>Hide terminal</b>:
|
||||||
<p> Once you have finished working with the Terminal, you can definitely close it by pressing ⌘ + Q . </p>
|
Although Shell’s window does not take a lot of space, it is possible to hide
|
||||||
<li> <h4> Preferences </h4>
|
the window by pressing <code>⌘ + H</code>.
|
||||||
</li>
|
</li>
|
||||||
<p> ... </p>
|
<li><b>Hide Others</b>:
|
||||||
|
In the other hand, it’s possible to hide all the others windows (except the Terminal) by
|
||||||
|
pressing <code>⌥ + ⌘ + H</code>.
|
||||||
|
</li>
|
||||||
|
<li><b>Quit Terminal</b>:
|
||||||
|
Once you have finished working with the Terminal, you can definitely close it by
|
||||||
|
pressing <code>⌘ + Q</code>.
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<li><h3> Shell </h3></li>
|
<h3>Shell</h3>
|
||||||
<ul>
|
|
||||||
<img src="" alt="Shell section" height="">
|
|
||||||
|
|
||||||
<li> <h4> New Window </h4>
|
<img src="" alt="Shell section" height="">
|
||||||
</li>
|
|
||||||
<p> It creates a new window </p>
|
<ul>
|
||||||
<li> <h4> New Tab </h4>
|
<li><b>New Window</b>: It creates a new window.</li>
|
||||||
</li>
|
<li><b>New Tab</b>: It creates a new tab</li>
|
||||||
<p> It creates a new tab </p>
|
<li><b>Close window</b>: This option closes the window without quitting the terminal.</li>
|
||||||
<li> <h4> Import </h4>
|
<li><b>Show Inspector</b>:
|
||||||
</li>
|
This option allows the user to customise the layout of the shell.
|
||||||
<p> ... </p>
|
This option contains some profiles that you can use instead of spending
|
||||||
<li> <h4> Close window </h4>
|
time to create your own one.<br>
|
||||||
</li>
|
This option is not permanent, once the terminal has been quitted, the shell is set
|
||||||
<p> This option close the window without quitting the terminal </p>
|
with the default settings.
|
||||||
<li> <h4> Show Inspector </h4>
|
</li>
|
||||||
</li>
|
|
||||||
<p> This option allows the user to customise the layout of the shell. This option contains some profiles that you can use instead of spending time to create your own one.
|
<li><b>Edit Title</b>:
|
||||||
This option is not permanent, once the terminal has been quitted, the shell is set with the default settings. </p>
|
This options shows the inspector too, but it selects the current title that
|
||||||
<li> <h4> Edit Title </h4>
|
you want to change
|
||||||
</li>
|
</li>
|
||||||
<p> This options shows the inspector too, but it selects the current title that you want to change. </p>
|
<li><b>Edit Background Colour</b>:
|
||||||
<li> <h4> Edit Background Colour </h4>
|
This options shows some useful tools to customise the background of the shell.
|
||||||
</li>
|
</li>
|
||||||
<p> This options shows some useful tools to customise the background of the shell. </p>
|
<li><b>Reset</b>: This option re-initializes the terminal.</li>
|
||||||
<li> <h4> Reset </h4>
|
<li><b>Hard Reset</b>: This option re-initialize completely the terminal.</li>
|
||||||
</li>
|
<li><b>Print Selection</b>:
|
||||||
<p> This option re-initializes the terminal.
|
This option allows the user to print only a selection of the shell.
|
||||||
/ref/ </p>
|
The text must be selected by holding down the touchpad and then moving the mouse cursor.
|
||||||
<li> <h4> Hard Reset </h4>
|
</li>
|
||||||
</li>
|
<li><b>Print</b>: This options prints all the content of the shell.</li>
|
||||||
<p> This option re-initialize completely the terminal
|
|
||||||
/ref/ </p>
|
|
||||||
<li> <h4> Print Selection </h4>
|
|
||||||
</li>
|
|
||||||
<p> This option allows the user to print only a selection of the shell.
|
|
||||||
The text must be selected by holding down the touchpad and then moving the mouse cursor. </p>
|
|
||||||
<li> <h4> Print </h4>
|
|
||||||
</li>
|
|
||||||
<p> This options prints all the content of the shell </p>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<li><h3> Edit </h3></li>
|
<h3>Edit</h3>
|
||||||
<ul>
|
|
||||||
<img src="" alt="Edit section" height="">
|
|
||||||
|
|
||||||
<li> <h4> Undo </h4>
|
<img src="" alt="Edit section" height="">
|
||||||
</li>
|
|
||||||
<p> ... </p>
|
<ul>
|
||||||
<li> <h4> Redo </h4>
|
<li><b>Undo</b>: Undo the last input action.</li>
|
||||||
</li>
|
<li><b>Redo</b>: Redo the last undone input action.</li>
|
||||||
<p> ... </p>
|
<li><b>Cut</b>:
|
||||||
<li> <h4> Cut </h4>
|
Traditionally, the cut command was designed to move texts within applications, but,
|
||||||
</li>
|
according to the Mac user community, it’s not very intuitive.<br>
|
||||||
<p> Traditionally, the cut command was designed to move texts within applications, but, according to the Mac user community, it’s not very intuitive.
|
There is a much easier alternative way, the copy and paste,
|
||||||
There is a much easier alternative way, the copy and paste, known as ⌘ + C (copy) and ⌘ + V (paste). </p>
|
known as <code>⌘ + C</code> (copy) and <code>⌘ + V</code> (paste).
|
||||||
<li> <h4> Copy </h4>
|
<li><b>Copy</b>: Copy the selected text.</li>
|
||||||
</li>
|
<li><b>Copy Special</b>:
|
||||||
<p> It copies a selected text </p>
|
It copy a selected text by giving you more options.
|
||||||
<li> <h4> Copy Special </h4>
|
For example, if you have a black background, copy special allows you to copy a
|
||||||
</li>
|
selected file without considering the colour of the background
|
||||||
<p> It copy a selected text by giving you more options.
|
</li>
|
||||||
For example, if you have a black background, copy special allows you to copy a selected file without considering the colour of the background. </p>
|
<li><b>Paste</b>: Past the text from the system clipboard.</li>
|
||||||
<li> <h4> Paste </h4>
|
<li><b>Paste Escaped Text</b>:
|
||||||
</li>
|
If you want to copy a text with special symbols, precisely code text,
|
||||||
<p> It paste a previously copied text. </p>
|
you have to use paste escaped text to maintain the text intact and not have characters
|
||||||
<li> <h4> Paste Escaped Text </h4>
|
interpreted as code.
|
||||||
</li>
|
</li>
|
||||||
<p> If you want to copy a text with special symbols, precisely code text, you have to use paste escaped text to maintain the text intact and not have characters interpreted as code. </p>
|
<li><b>Select All</b>: It selects all the content of the shell.</li>
|
||||||
<li> <h4> Paste Selection </h4>
|
<li><b>Select Between Marks</b>: It selects a portion of the text between marks.</li>
|
||||||
</li>
|
<li><b>Clear to Previous Mark</b>: Delete the last command and its contents.</li>
|
||||||
<p> ... </p>
|
<li><b>Clear to Start</b>: Delete all the content up to the start.</li>
|
||||||
<li> <h4> Select All </h4>
|
<li><b>Clear Scrollback</b>: It deletes all the not visible content.</li>
|
||||||
</li>
|
<li><b>Clear Screen</b>: It deletes all the visible content on the screen.</li>
|
||||||
<p> It selects all the content of the shell. </p>
|
<li><b>Find</b>:
|
||||||
<li> <h4> Select Between Marks </h4>
|
It allows the user to find portions of text or words that matches with the inserted one.
|
||||||
</li>
|
</li>
|
||||||
<p> It select a portion of the text between marks </p>
|
|
||||||
<li> <h4> Clear to Previous Mark </h4>
|
|
||||||
</li>
|
|
||||||
<p> Delete the last command and its content </p>
|
|
||||||
<li> <h4> Clear to Start </h4>
|
|
||||||
</li>
|
|
||||||
<p> Delete all the content up to the start.
|
|
||||||
/ref/ </p>
|
|
||||||
<li> <h4> Clear Scrollback </h4>
|
|
||||||
</li>
|
|
||||||
<p> It delete all the not visible content. </p>
|
|
||||||
<li> <h4> Clear Screen </h4>
|
|
||||||
</li>
|
|
||||||
<p> It delete all the visible content on the screen. </p>
|
|
||||||
<li> <h4> Find </h4>
|
|
||||||
</li>
|
|
||||||
<p> It allows the user to find portions of text or words that matches with the inserted one. </p>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<li><h3> View </h3></li>
|
<h3>View</h3>
|
||||||
|
|
||||||
|
<img src="" alt="View section" height="">
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<img src="" alt="View section" height="">
|
<li><b>Show All Tabs</b>:
|
||||||
|
It shows all tabs that you created, if no one has been created it will
|
||||||
<li> <h4> Show All Tabs </h4>
|
show only the current one.
|
||||||
</li>
|
</li>
|
||||||
<p> It shows all tabs that you created, if no one has been created it will show only the current one. </p>
|
<li><b>Show Tab Bar</b>:
|
||||||
<li> <h4> Show Tab Bar </h4>
|
It shows you a tab bar with all the tabs created, this option is
|
||||||
</li>
|
automatically enabled when you select “New Tab” under Shell section.
|
||||||
<p> It shows you a tab bar with all the tabs created, this option is automatically enabled when you select “New Tab” under Shell section. </p>
|
</li>
|
||||||
<li> <h4> Hide Marks </h4>
|
<li><b>Show Alternate Screen</b>: It creates an alternate screen.</li>
|
||||||
</li>
|
<li><b>Hide Alternate Screen</b>: Disable the option “Show Alternate Screen”.</li>
|
||||||
<p> . . . </p>
|
<li><b>Allow Mouse Reporting</b>:
|
||||||
<li> <h4> Show Alternate Screen </h4>
|
It means that mouse clicks will be visible to whatever is reading the terminal,
|
||||||
</li>
|
the position and click will be encoded and used by Text mode mouse-aware
|
||||||
<p> It creates an alternate screen. </p>
|
applications with standards permissions
|
||||||
<li> <h4> Hide Alternate Screen </h4>
|
</li>
|
||||||
</li>
|
<li><b>Split Panel</b>: It split every window in two windows</li>
|
||||||
<p> Disable the option “Show Alternate Screen”. </p>
|
<li><b>Close Split panel</b>: It closes all the windows created with the "Split panel"</li>
|
||||||
<li> <h4> Allow Mouse Reporting </h4>
|
<li><b>Default Font Size</b>:
|
||||||
</li>
|
It set up default font size, if the size has been increased or decreased.
|
||||||
<p> It means that mouse clicks will be visible to whatever is reading the terminal, the position and click will be encoded and used by Text mode mouse-aware applications with standards permissions.</p>
|
</li>
|
||||||
<li> <h4> Split Pane </h4>
|
<li><b>Bigger</b>: It makes the font bigger.</li>
|
||||||
</li>
|
<li><b>Smaller</b>: It makes the font smaller.</li>
|
||||||
<p> It split every window in two windows </p>
|
<li><b>Scroll to Top</b>: Scroll to the top, at the start.</li>
|
||||||
<li> <h4> Close Split pane </h4>
|
<li><b>Scroll to Bottom</b>: Scroll to the bottom, at the end.</li>
|
||||||
</li>
|
<li><b>Page Up</b>: It scroll up to the previous page.</li>
|
||||||
<p> It closes all the windows created with the command “Split pane” </p>
|
<li><b>Page Down</b>: It scroll down to the next page.</li>
|
||||||
<li> <h4> Default Font Size </h4>
|
<li><b>Line Up</b>: It scroll up to one line.</li>
|
||||||
</li>
|
<li><b>Line Down</b>: It scroll down to one line.</li>
|
||||||
<p> It set up default font size, if the size has been increased or decreased. </p>
|
<li><b>Enter Full Screen</b>: It makes the window fulls screen.</li>
|
||||||
<li> <h4> Bigger </h4>
|
|
||||||
</li>
|
|
||||||
<p> It makes the font bigger. </p>
|
|
||||||
<li> <h4> Smaller </h4>
|
|
||||||
</li>
|
|
||||||
<p> It makes the font smaller. </p>
|
|
||||||
<li> <h4> Scroll to Top </h4>
|
|
||||||
</li>
|
|
||||||
<p> Scroll to the top, at the start. </p>
|
|
||||||
<li> <h4> Scroll to Bottom </h4>
|
|
||||||
</li>
|
|
||||||
<p> Scroll to the bottom, at the end. </p>
|
|
||||||
<li> <h4> Page Up</h4>
|
|
||||||
</li>
|
|
||||||
<p> It scroll up to the previous page. </p>
|
|
||||||
<li> <h4> Page Down </h4>
|
|
||||||
</li>
|
|
||||||
<p> It scroll down to the next page. </p>
|
|
||||||
<li> <h4> Line Up </h4>
|
|
||||||
</li>
|
|
||||||
<p> It scroll up to one line. </p>
|
|
||||||
<li> <h4> Line Down </h4>
|
|
||||||
</li>
|
|
||||||
<p> It scroll down to one line. </p>
|
|
||||||
<li> <h4> Enter Full Screen </h4>
|
|
||||||
</li>
|
|
||||||
<p> Full screen </p>
|
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<li><h3> Window </h3></li>
|
<h3>Window</h3>
|
||||||
|
|
||||||
|
<img src="" alt="Window section" height="">
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<img src="" alt="Window section" height="">
|
<li><b>Minimise</b>: It reduces the terminal to an icon.</li>
|
||||||
|
<li><b>Zoom</b>:
|
||||||
<li> <h4> Minimise </h4>
|
It increases the size of the window.
|
||||||
|
By default the size is set up to 80 x 24.
|
||||||
</li>
|
</li>
|
||||||
<p> It reduces the terminal to an icon. </p>
|
<li><b>Cycle Trough Windows</b>: It switches between open windows</li>
|
||||||
<li> <h4> Zoom </h4>
|
<li><b>Show Previous Tab</b>: It shows previous tab, if any</li>
|
||||||
</li>
|
<li><b>Show Next Tab</b>: It shows next tab, if any.</li>
|
||||||
<p> It increases the size of the window.
|
<li><b>Move Tab to New Window</b>: It moves a tab to a new window.</li>
|
||||||
By default the size is set up to 80 x 24.</p>
|
<li><b>Merge All Windows</b>: It takes all the windows and moves them to Tabs.</li>
|
||||||
<li> <h4> Cycle Trough Windows </h4>
|
<li><b>Return to Default Size</b>: It returns to default size of the window (80 x 24).</li>
|
||||||
</li>
|
|
||||||
<p> It switches between open windows. </p>
|
|
||||||
<li> <h4> Show Previous Tab </h4>
|
|
||||||
</li>
|
|
||||||
<p> It shows previous tab, if created. </p>
|
|
||||||
<li> <h4> Show Next Tab </h4>
|
|
||||||
</li>
|
|
||||||
<p> It shows next tab, if created. </p>
|
|
||||||
<li> <h4> Move Tab to New Window </h4>
|
|
||||||
</li>
|
|
||||||
<p> It moves a tab to a new window. </p>
|
|
||||||
<li> <h4> Marge All Windows </h4>
|
|
||||||
</li>
|
|
||||||
<p> It takes all the windows and moves them to Tabs. </p>
|
|
||||||
<li> <h4> Return to Default Size </h4>
|
|
||||||
</li>
|
|
||||||
<p> It returns to default size of the window (80 x 24). </p>
|
|
||||||
<li> <h4> Bring All to Font </h4>
|
|
||||||
</li>
|
|
||||||
<p> ... </p>
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<li><h3> Help </h3></li>
|
<h3>Help</h3>
|
||||||
|
|
||||||
|
<img src="" alt="Help section" height="">
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<img src="" alt="Help section" height="">
|
<li><b>Terminal Help</b>:
|
||||||
|
It opens a useful guide that show you how familiarize with Terminal.
|
||||||
<li> <h4> Terminal Help </h4>
|
|
||||||
</li>
|
</li>
|
||||||
<p> It opens a useful guide that show you how familiarize with Terminal. </p>
|
<li><b>Open man Page for selection</b>:
|
||||||
<li> <h4> Open man Page for selection </h4>
|
Instead of digit man on the shell you can simply select the command and click on this option.
|
||||||
|
It will give you back an external manual page with all the descriptions
|
||||||
</li>
|
</li>
|
||||||
<p> Instead of digit man on the shell you can simply select the command and click on this option.
|
|
||||||
It will give you back an external manual page with all the descriptions. </p>
|
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</ol>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user