Skip to content

1. Linux Introduction

Welcome to the world of Linux! If you've been using Windows or macOS, Linux might seem a bit unfamiliar at first. But don't worry — Linux isn't as difficult as you might think. In fact, it's one of the most powerful and flexible operating systems in the world, found everywhere from smartphones to supercomputers.

1.1 What is Linux?

Linux is an open source operating system kernel, first released by Finnish programmer Linus Torvalds in 1991. Strictly speaking, Linux is just the kernel, while the complete system we use daily is called GNU/Linux, which includes the kernel, system tools, desktop environments, and other components.

In simple terms:

  • Kernel: the core program that manages hardware resources (CPU, memory, disk, etc.)
  • Shell: the "translator" between the user and the kernel, with Bash being the most common
  • Distribution: a complete system that packages the kernel + tools + package manager together

💡 Tip: 💡 Analogy: If the Linux kernel is like a car engine, then a distribution is a complete car from different brands — the engine is the same, but the exterior, interior, and configuration vary.

1.2 Choosing a Mainstream Distribution

DistributionPackage ManagerTarget AudienceFeatures
UbuntuaptFirst choice for beginnersActive community, rich software, most documentation
DebianaptServers / stability needsExtremely stable, upstream of Ubuntu
CentOS / Rockydnf/yumEnterprise serversRHEL compatible, long-term support
FedoradnfDevelopers / cutting-edgeTesting ground for new technologies
Arch LinuxpacmanAdvanced usersRolling release, highly customizable
Kali LinuxaptSecurity researchBuilt-in with numerous penetration testing tools

💡 Tip: 💡 Beginner's advice: If you're using Linux for the first time, it's highly recommended to start with Ubuntu 22.04 LTS or Ubuntu 24.04 LTS. LTS = Long Term Support, providing 5 years of updates.

1.3 Key Differences Between Linux and Windows

ComparisonWindowsLinux
PriceRequires purchasing a licenseFree and open source
OperationPrimarily GUI-basedCommand line is core, GUI is optional
File SystemDrive letters (C: D: E:)Single tree structure (/ root directory)
File ExtensionsDistinguished by extensionDistinguished by file content/permissions
Permission ModelPrimarily ACLUser/Group/Others + rwx
Software InstallationDownload .exe installerOne command with package manager
VirusesRelatively commonRare, but don't be complacent
Server MarketAbout 20%About 80%+