PALS_CS_2018

Lesson 3 - Terminal

Index

Install Cmder

Cmder is an excellent command line interface for Windows machines, people MacOS can use the built in Terminal program.

Download -> Cmder

Click on Show in folder.

 

Right Click and then Extract Here.

 

Open Application.

Secure Shell

SSH or SecureShell is a application that allows you to remotely accesses other Linux computers. This allows people to share one single computer or work on another computer remotely.

Replace ‘X’ with user number and enter the command below. NOTE: This will only work in the Computer Labs during the camp!

ssh UserX@10.185.1.169

Say yes if you get a prompt.

Enter password 1234.

Source Control

GIT is a application that allows exchange of code and is used to log modification to files that are shared among multiple users. We only use it to download source code.

Enter the command below.

git clone https://github.com/alexdantas/nSnake.git

Compile

Code on its own is just a bunch of text. It has to be translated so the machine can understand it. This process of translation is called compiling your code.

Enter the commands below.

cd nSnake
make

Execute

At this point we have the code translated to what a machine can understand. But when does it start reading it? We have to tell it start reading the code and running the application. This process is called execution.

Enter the commands below.

cd bin
./nsnake

Here is a video showing this process: