2018-11-09 13:06:37 +00:00
|
|
|
---
|
|
|
|
layout: page
|
2018-11-11 11:00:42 +00:00
|
|
|
category-page: basic
|
2018-11-16 12:47:48 +00:00
|
|
|
category-title: Basic commands
|
2018-11-11 11:00:42 +00:00
|
|
|
tags: Open the Shell
|
|
|
|
author: Gianmarco De Vita
|
2018-11-09 13:06:37 +00:00
|
|
|
title: Open the Shell
|
2018-11-12 10:47:50 +00:00
|
|
|
next-page: pages/cmd/basic/open.html
|
2018-11-09 13:06:37 +00:00
|
|
|
---
|
2018-11-15 20:09:21 +00:00
|
|
|
|
2018-11-12 10:47:50 +00:00
|
|
|
The tool that allows us to interact with the system with the shell is the terminal.
|
2018-11-14 08:56:17 +00:00
|
|
|
There are mainly two ways to access to the terminal on a MacOS system.
|
2018-11-12 10:47:50 +00:00
|
|
|
|
|
|
|
<h3>Through the Finder</h3>
|
|
|
|
|
2018-11-09 13:06:37 +00:00
|
|
|
<ol>
|
|
|
|
<li>Open a new <i>Finder</i> window by clicking on the icon on the system dock.</li>
|
2018-11-12 10:47:50 +00:00
|
|
|
<img src="" alt="Open Finder" />
|
2018-11-09 13:06:37 +00:00
|
|
|
<li>On the menu bar, click on <i>Go</i>.</li>
|
2018-11-12 10:47:50 +00:00
|
|
|
<img src="" alt="Click on Go" />
|
2018-11-09 13:06:37 +00:00
|
|
|
<li>Click on <i>Utilities</i>.</li>
|
2018-11-12 10:47:50 +00:00
|
|
|
<img src="" alt="Click on Utilities" />
|
2018-11-09 13:06:37 +00:00
|
|
|
<li>Look for <i>Terminal</i> and click on it.</li>
|
2018-11-12 10:47:50 +00:00
|
|
|
<img src="" alt="Open Terminal" />
|
2018-11-09 13:06:37 +00:00
|
|
|
</ol>
|
2018-11-12 10:47:50 +00:00
|
|
|
|
2018-11-09 13:06:37 +00:00
|
|
|
<h3>Through <i>Spotlight</i></h3>
|
|
|
|
<ol>
|
|
|
|
<li>You can use the shortcut <code>cmd+space</code> to access to <i>Spotlight</i>.</li>
|
2018-11-12 10:47:50 +00:00
|
|
|
<img src="" alt="Access to Spotlight" />
|
2018-11-09 13:06:37 +00:00
|
|
|
<li>Then search for <i>Terminal</i>.</li>
|
2018-11-12 10:47:50 +00:00
|
|
|
<img src="" alt="Search Terminal" />
|
2018-11-09 13:06:37 +00:00
|
|
|
<li>Click on the <i>Terminal</i> icon displayed as result.</li>
|
2018-11-12 10:47:50 +00:00
|
|
|
<img src="" alt="Open Terminal" />
|
2018-11-09 13:06:37 +00:00
|
|
|
</ol>
|
|
|
|
|
2018-11-12 10:47:50 +00:00
|
|
|
As you open the Terminal, a new blank window opens:
|
2018-11-09 13:06:37 +00:00
|
|
|
|
2018-11-12 10:47:50 +00:00
|
|
|
<img src="" alt="Terminal Blank Window" />
|
2018-11-09 13:06:37 +00:00
|
|
|
|
2018-11-12 10:47:50 +00:00
|
|
|
You can notice that the top lines in the window follow this structure:
|
2018-11-09 13:06:37 +00:00
|
|
|
|
2018-11-11 11:00:42 +00:00
|
|
|
<pre>
|
2018-11-12 10:47:50 +00:00
|
|
|
Last login: Day Month hh:mm:ss on console
|
2018-11-09 13:06:37 +00:00
|
|
|
Device-name:~ username$
|
2018-11-11 11:00:42 +00:00
|
|
|
</pre>
|
2018-11-09 13:06:37 +00:00
|
|
|
|
2018-11-12 10:47:50 +00:00
|
|
|
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
|
|
|
|
the symbol $ after your username indicates that you can write instructions
|
|
|
|
in that space.<br>
|
2018-11-09 13:06:37 +00:00
|
|
|
|
2018-11-12 10:47:50 +00:00
|
|
|
Now, you are ready to try and use some simple commands
|
|
|
|
to familiarize with this interface.<br>
|
2018-11-09 13:06:37 +00:00
|
|
|
|
2018-11-12 10:47:50 +00:00
|
|
|
Note that you can work simultaneously on multiple sessions of the Terminal.
|