Linux
linuxlinuxCore ConceptBeginner
Introduction to Linux
Understand the Linux operating system, kernel architecture, distributions (Ubuntu, Debian, Alpine, RHEL), and CLI workflows.
Verified: 2026-09-30
Tested on:linux Ubuntu 24.04 / Debian 12
Platforms:
linux
#linux#devops#kernel#distributions#os
What is Linux?
Linux is a free, open-source Unix-like operating system kernel created by Linus Torvalds in 1991. Today, Linux powers over 90% of the world's cloud infrastructure, web servers, supercomputers, Android devices, and containerized Docker environments.
Linux Architecture Layers
+---------------------------------------------------------+
| User Space Applications |
| (Web Servers, Databases, Node.js, CLI) |
+---------------------------------------------------------+
| GNU C Library (glibc / musl) |
+---------------------------------------------------------+
| System Calls |
+---------------------------------------------------------+
| Linux Kernel |
| (Process Scheduler, Memory Manager, VFS, Drivers) |
+---------------------------------------------------------+
| Physical Hardware |
| (CPU, RAM, Disks, NICs) |
+---------------------------------------------------------+Popular Linux Distributions (Distros)
- Ubuntu / Debian: The most widespread server distributions. Known for stability, massive package repositories (
apt), and extensive community support. - Alpine Linux: Ultra-lightweight (~5MB base image) built on
musllibc andbusybox. The industry standard for minimal Docker container images. - RHEL / Rocky Linux / AlmaLinux: Enterprise-grade distributions utilizing RPM package managers (
dnf/yum) and SELinux mandatory access controls. - Arch Linux: Rolling-release distro favored for cutting-edge developer workstations.
The Unix Philosophy
- Everything is a File: Hardware devices, network sockets, running process metrics (
/proc), and storage disks are exposed through the unified virtual filesystem. - Write Programs That Do One Thing Well: Small, modular single-purpose utilities.
- Write Programs to Work Together: Connect utility inputs and outputs using pipes (
|) and text streams.
Prisma Production Best Practices
Optimizing Prisma queries with select vs include, indexing strategy, transaction timeouts, schema organization, and query logging.
Linux Filesystem Hierarchy Standard (FHS)
Master the Linux directory tree layout (/etc, /var, /home, /bin, /usr, /proc, /tmp) and where software stores files.