reading-notes

The Coder’s Computer

Choosing a Text Editor

It is important to remember a few things when choosing a text editor

The Most Important Features in a Text Editor to Start

text editors that are pre installed on your computer generally lack the components listed above. However, if you do decide to use one of these preloaded programs, make sure that the program does the following:

Third-party Options

Notepad++

TextWrangler (now BB Edit)

Visual Studio Code

Atom

Brackets

Sublime Text 3

The Difference between Text Editors and IDE

IDE’s contain text editors, but in a suite of software with a file manager, a compiler, and a debugger

Text Editors Conclusion

Text editors change often, so keep up with the times so that your coding experience is efficient to your style.

Linux Tutorial

Line One

  1. Prompt - Example: ➜ ~
  2. Command - Example: ls
  3. Argument or Option typically start with a dash. Example: -l
  4. Argument

    Spaces have to be between each of the 4

The Shell, Bash

The shell is the part of the operating system that defines how the terminal will act and appear after commands. The most common shell is known as Bash.

Use the command echo $SHELL to find out what shell you are using.

How to Move Around

PWD

Stands for “Print Working Directory”

ls

Stands for “List”

Paths

A path refers to a file or directory on the “command line” or “terminal”

There are 2 types of paths
1. Absolute Paths

Absolute paths specify a location (file or directory) in relation to the root directory.

2. Relative Paths

Relative Paths specify a location in relation to where you are within the system.

Path Continued - Short Cuts

CD (Change directory)

mkdir (Make Directory)

touch (Create a new file)

Answers

  1. The four important features of a text editor
    • Code Completion
    • theme
    • extensions
    • syntax highlighting
  2. The following commands and their outcomes
    1. PWD - Print Working document will show you your location in the terminal
    2. ls - List will show you a list of files in your current location
    3. cd - Change Directory will take you to the file or directory you choose. However, just stating cd will take you to your home directory.
    4. mkdir - Make Directory will create a new folder
    5. touch - Creates a new file
  3. Explain Scenarios
    1. CD Projects - Changing location in the terminal to the folder named “Projects”
    2. mkdir new-project - Create a new folder or directory within the “Projects” folder
    3. touch new-project/newfile.md - the user is creating a new file within the “new-project” folder
    4. cd .. - returning to the parent directory of “Projects”
    5. ls projects/new-project - asking for a list of files within the “new-project” folder that is contained in the parent directory called “projects”