Skip to content
Snippets Groups Projects
Forked from R3 / school / courses
1051 commits behind the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.

The terminal (shell)


**UNIX users (macOS & Linux):**

Start the Terminal from your /Applications directoy.

bulb Install iTerm2: https://www.iterm2.com


**Windows users:**

Install Git Bash:
https://git-scm.com/download/win


**Linux users:**

Launch default terminal.
bulb Install Terminator: https://launchpad.net/terminator

First steps in the terminal

Starting the terminal presents itself with a line where you can enter a command

cesar@myComputer>

Often written, for covenience, as ```bash $ ```
When you open your terminal (shell), you are located in your home directory (unless otherwise configured), denoted as `~/`.

Essential Linux commands

List the contents of a directory

$ ls

Create a directory ```bash $ mkdir myNewDirectory ```

Change the directory to a specific folder ```bash $ cd myNewDirectory ```
Change the directory 1 level and 2 levels up ```bash $ cd .. # 1 level up

$ cd ../..

2 levels up


<div class="fragment">
<br>
Move a file or a directory
```bash
$ mv myFile.m myNewDirectory/.

Rename a file or a directory ```bash $ mv myFile.m myNewFile.m $ mv myNewDirectory myDirectory ```