P0.2: Command Line & Terminal Basics

In modern frontend development, you will spend a lot of time in the terminal compiling projects, installing dependencies, and running local development servers.


1. Why Command Line Matters

A Graphic User Interface (GUI) is slow. The Command Line Interface (CLI) allows developers to automate complex tasks, build projects, and run developer tools with high efficiency.

Industry Terminal Usage Share

Survey of professional developers who use CLI daily.

Colt Steele

Colt SteeleView Profile 🔗

Real-World Developer Case Study
10 Years Exp
RoleSenior Developer & Instructor
Salary₹50 Lakhs/yr equivalent
CompanyUdemy
Core Tech Stack
TerminalBashUnix ShellGitJavaScriptNode.js

The terminal is the developer's magic wand. Navigating directories with cd and mkdir saves hours. Get comfortable with bash commands early!


2. Essential CLI Commands

Here are the primary commands you need to memorize to navigate folders and create directories:

Command (bash/zsh)DescriptionExample
pwdPrint Working Directory (where am I?)pwd
lsList files and folders in current directoryls
cd <folder>Change Directory (navigate into a folder)cd Desktop
cd ..Navigate back to the parent foldercd ..
mkdir <name>Make Directory (create a new folder)mkdir nextsem-practice
touch <name>Create a new empty filetouch index.html
rm <name>Delete a filerm index.html

🎓 Practice Assignment Tasks

  • Open your system terminal (Command Prompt/PowerShell on Windows, Terminal on macOS).
  • Type `pwd` to see where you are.
  • Create a folder named `nextsem-practice` using `mkdir nextsem-practice`.
  • Navigate inside it using `cd nextsem-practice`.
  • Create a file named `hello.txt` using `touch hello.txt`.
Stuck? Hints available
<!-- Write your HTML structure here to complete the assignment -->
🔒 Code requirements not met yet. Complete the tasks above.
🔒 Complete the Practice Assignment above to unlock completion.
Advertisement
NS
Ask Nextsem
AI Mode
NS
Home
Course
Playground