Class 02 Reading Notes

Class 02 Reading Notes

Text Editor

Software that allows you write and edit text with ease!

Ideal Features

Most computers have a basic text editor intalled, for Mac it is called Text Edit.

Helpful clues:

Third Party Options: Notepadd++, Text Wrangler, BB Edit, Visual Studio Code, Atom, Brackets, and Sublime text - BE SURE to research the editor beforehand to make sure it is compatible with your computer and provides you with all the tools you need!

As you become more experienced and want to experiment with more complicated code, consider an IDE which stands for Integrated Developemnt Environment. This is a combination of a text editor, a file manager, a compiler, and a debugger all in one!

The Command Line

Also known as the terminal - your system in text form! Type commands and recieve feedback.

How do I get to the terminal?

The terminal is open, now what?

Prompt ➡️ Command ➡️ Command Line Arguments

When you hit ENTER the command runs, typically a list of outputs will appear under the command OR a task will be performed with no display (unless there is an error). Once the command is completed, a new prompt will appear.

SHORTCUTS - be quicker and prevent typos by accessing your commands history. Use the ⬆️ and ⬇️ arrow keys to explore previously used commands, then edit the command with the ⬅️ and ➡️ arrow keys.

The Shell

Located within the terminal, the shell defines how the terminal acts and appears after running commands

BASH is the most common shell, which stands for Bourne Again Shell

Basic Navigation

Let’s move around the system!

First of all, where am I?

Use the command ‘pwd’ which stands for Print Working Directory, to find out where you currently are in the system

What’s here?

Use the command ‘ls’ which stands for List, to tell you what is in the location you’re currently at

Paths

A means to get to a particular file or directory on the system

Two Types of Paths

  1. ABSOLUTE specifies a location in relation to the root directory. They always begin with a forward slash (/)
  2. RELATIVE specifies a location in relation to where we currently are in the system. Does not begin with a forward slash (/)

Building Paths

Change your directory with the command ‘cd [location]’ - NOTE with no argument, ‘cd’ will take you to your home directory

SHORTCUT Tab Completion: while typing a path, hit the TAB KEY to search for an autocomplete action. If nothing appears, then there are a lot of options, you can still list them by hitting tab again.

Files

Everything is a file - text files, a directory, your keyboard, your monitor, etc!

Hidden Files

Return home