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.
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.
- MacOS: To access the Terminal, navigate to
Applications
>Utilities
>Terminal
. - Windows: Click
Start
, thenAll Programs
>Accessories
>Command Prompt
.
Let's start with some essential commands to navigate this new territory:
- MacOS: Type
pwd
and press Enter. - Windows: Use
cd
and press Enter.
- MacOS: Type
ls
and press Enter. - Windows: Use
dir
and press Enter.
- Create a new directory called "VetsWhoCode" by typing:
and pressing Enter.
mkdir VetsWhoCode
- Move into your new directory with:
and press Enter.
cd VetsWhoCode
- To return to the previous directory, simply type:
and press Enter.
cd ..
- 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! 🚀