# Terminal and Command Line

> Get comfortable in a shell: navigating files, running scripts, reading logs and using SSH, because every tool in this track has a CLI. Free notes, key...

Canonical: https://www.internhack.in/roadmaps/tracks/full-stack/terminal-basics
Last updated: 2026-11-28

Get comfortable in a shell: navigating files, running scripts, reading logs and using SSH, because every tool in this track has a CLI.

Beginner · about 4 hours · difficulty 1/5

Package managers, Git, Prisma, Docker and deploy tools are all driven from the terminal. You do not need to be a Linux admin, but you must not be scared of a prompt.

### Daily commands

- Navigate and inspect: pwd, ls, cd, cat, less, head, tail.
- Create and move: mkdir, touch, cp, mv, rm (carefully).
- Search: grep for text, find for files.
- Processes: ps, kill, and Ctrl+C to stop a running dev server.
- Networking: curl for HTTP, ssh to log into a server.

### Environment and paths

Programs read **environment variables** such as PATH, NODE_ENV and DATABASE_URL. Knowing how to set them in your shell and in a .env file explains half the "works on my machine" problems.

### Windows users

Use **WSL** (Windows Subsystem for Linux) or Git Bash. Most tutorials and all servers assume a Unix-like shell, and WSL saves you from path and line-ending headaches.

### Pitfalls

- Running rm -rf without checking the path first.
- Copy-pasting sudo commands from random blogs.
- Ignoring error output. Read the first error line; it usually tells you exactly what is wrong.

You are ready to move on when you can create a project folder, run a script, follow a log with tail -f, and stop a stuck process without reaching for the mouse.

## Key concepts

- **Navigating the filesystem**
- **Files and permissions**
- **grep, find and pipes**
- **Environment variables and PATH**
- **Processes and ports**
- **SSH and keys**
- **WSL on Windows**

## Mini project

Write a small shell script that creates a new project folder with src, tests and a README, initialises Git, and prints the Node.js and npm versions installed.

## Check yourself

Your dev server says port 3000 is already in use. Which commands would you use to find and stop the process holding it?

## Free resources

- [The Missing Semester of Your CS Education](https://missing.csail.mit.edu/) (MIT)
- [The Linux command line for beginners](https://ubuntu.com/tutorials/command-line-for-beginners) (Ubuntu)
- [Install WSL](https://learn.microsoft.com/en-us/windows/wsl/install) (Microsoft)

Previous: [HTTP, Requests and Responses](https://www.internhack.in/roadmaps/tracks/full-stack/http-basics) · Next: [Git and GitHub](https://www.internhack.in/roadmaps/tracks/full-stack/git-and-github)

## More in Web Foundations

- [How the Internet and the Web Work](https://www.internhack.in/roadmaps/tracks/full-stack/how-the-internet-works)
- [HTTP, Requests and Responses](https://www.internhack.in/roadmaps/tracks/full-stack/http-basics)
- [Terminal and Command Line](https://www.internhack.in/roadmaps/tracks/full-stack/terminal-basics)
- [Git and GitHub](https://www.internhack.in/roadmaps/tracks/full-stack/git-and-github)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [Full-Stack Developer Roadmap](https://www.internhack.in/roadmaps/tracks/full-stack)
