Labs ICT
Pro Login

Introduction

Before we dive into commands, it helps to know where Unix came from. The history explains a lot about why things work the way they do. Trust me — once you understand the philosophy, the commands start to make way more sense.

A quick history lesson

Ken Thompson, Dennis Ritchie, and the gang at Bell Labs wanted to build an operating system that was portable — something that could run on different hardware without being rewritten. Sound obvious? In 1969, it wasn't. Most operating systems were written in assembly and tied to one machine.

They wrote Unix in C, a language Ritchie created specifically for this purpose. That decision changed computing forever. It meant Unix could move from PDP-7 to PDP-11 to VAX to any machine you could compile C on. That portability is why Unix won.

The Unix philosophy

Unix isn't just code — it's an attitude. The Unix philosophy boils down to a few ideas that every command respects:

  • Everything is a file. Your documents are files. Your hard drive is a file. Your network connection is a file. Even running processes look like files. This sounds weird, but it means you can use the same tools on almost everything.
  • Small tools, one job. Each Unix command does one thing and does it well. ls lists files. grep searches text. sort sorts lines. You combine them like LEGO bricks.
  • Text is the universal interface. Unix tools communicate through plain text. That makes them easy to chain, easy to debug, and easy to script.

Flavors of Unix

You'll run into different Unix flavors. Here are the big ones:

  • Linux (Ubuntu, Debian, Fedora, Arch) — the most common. Free, open-source, runs everything from servers to Raspberry Pis.
  • macOS — built on BSD Unix. Your Mac's Terminal app gives you a real Unix environment out of the box.
  • FreeBSD — a direct descendant of BSD Unix. Known for stability. Netflix uses it for their streaming servers.
  • WSL (Windows Subsystem for Linux) — runs Linux inside Windows. Perfect for learning Unix without leaving your PC.

What you'll learn

By the end of this tutorial, you'll navigate the file system like a pro, create and edit files without a GUI, combine commands to process data, and understand enough to start scripting your own solutions. No prior experience needed — just a terminal and some curiosity.