Command Line Basics

The CLI, or Command Line Interface is a text-based way to do stuff on your Linux computer. (Back in the old days, this was actually the only way to interact with the computer).

Terminology

Filesystem hierarchy

Note: if you append a slash (/) to a directory name, it doesn't change the meaning (it doesn't matter). This is not the case for files, however.

Terminal

Commands

1. pwd - print working directory

2. ls - list

3. cd <name> - change directory

cd Documents/notes/

You can even chain ‘..’, like this:

cd ../../../

4. man <command> - manual