| Codecademy

Introduction to the Command Line

<aside> ✅ Select a tutorial from freeCodeCamp(🔥) and follow along.

</aside>

Basic Commands and Navigation

pwd - print working directory

ls - list contents of working directory

cd - change directory (see examples below).

cd ..               # navigate up one directory level 
cd some_directory/  # navigate inside of a directory
cd ~                # navigate to the home (user) directory 
cd /                # navigate to the root directory 

mkdir - make a new directory (requires adding directory name)

mkdir MyDirectory   # create a new directory called MyDirectory

touch - make a new file (requires adding file name)

touch myFile.txt    # creates new file called myFile.txt

<aside> ✅ Exercise: Familiarize with pwd, ls, cd, mkdir, touch by navigating directories and creating files and folders.

</aside>

File Manipulation

<aside> ✅ Exercise: Use cp, mv, rm, cat, less to manipulate and view files.

</aside>

<aside> 🛠 Project: Organize a messy directory by creating new folders and moving files into them appropriately.

</aside>

Additional Reading & Resources

What Is Bash Used For?

freeCodeCamp.org

Untitled

Related Topics