Skip to content

Latest commit

 

History

History
75 lines (51 loc) · 1.88 KB

command-line-basics.md

File metadata and controls

75 lines (51 loc) · 1.88 KB

Command Line Basics

In this module, we'll dive into the fundamentals of the command line, a powerful tool that will empower you to work your coding wizardry.

💻 What's the Command Line?

The command line, often referred to as the "command prompt," "terminal," or "CLI" (Command Line Interface), is your backstage pass to interacting with your computer in a way that goes beyond clicking and dragging. It's where the real magic happens.

Operating Systems and Access

  • MacOS: To access the Terminal, navigate to Applications > Utilities > Terminal.
  • Windows: Click Start, then All Programs > Accessories > Command Prompt.

📜 Command Line Operations

Let's start with some essential commands to navigate this new territory:

Print Working Directory (Where Are You?)

  • MacOS: Type pwd and press Enter.
  • Windows: Use cd and press Enter.

List Directories and Files

  • MacOS: Type ls and press Enter.
  • Windows: Use dir and press Enter.

Creating a New Directory

  • Create a new directory called "VetsWhoCode" by typing:
    mkdir VetsWhoCode
    and pressing Enter.

Changing Your Working Directory

  • Move into your new directory with:
    cd VetsWhoCode
    and press Enter.

Going Back to the Previous Directory

  • To return to the previous directory, simply type:
    cd ..
    and press Enter.

Deleting a Directory (Oops!)

  • MacOS:
    rm -r NameOfDirectory
  • Windows:
    rmdir /S NameOfDirectory

Now, you're armed with the knowledge and tools to embark on your web development journey. Get ready to create, innovate, and make your mark on the digital world! 🚀