Day 5 โ€“ Understanding Linux

๐Ÿ” Why Linux?

Linux is:

  • Open-source and community-driven

  • Extremely customizable

  • Powers most servers, containers (like Docker), and cloud platforms

  • Essential for DevOps, SysAdmin, and SRE roles


๐Ÿง  Linux Principles I Learned

  • Everything is a file (even devices!)

  • Permissions and ownership are critical

  • Users and groups define access control

  • The terminal is powerful, not scary

  • Stability and security make Linux ideal for servers


๐Ÿ“ Important Linux Directories

DirectoryPurpose
/homeUser files
/etcConfiguration files
/varLogs, mail, spools
/usrUser apps and libraries
/binEssential binaries
/sbinSystem binaries
/optOptional software
/bootBootloader files

๐Ÿงช RPM vs DEB โ€“ Two Package Worlds

TypeDescriptionUsed By
RPMRed Hat Package ManagerRHEL, CentOS, Fedora
DEBDebian PackageDebian, Ubuntu, Mint

Each has its own tools:

  • rpm, yum, dnf (for RPM)

  • dpkg, apt (for DEB)


DistroBased OnUse Case
UbuntuDebianBeginner-friendly, servers, cloud
Debianโ€“Stable, minimal
CentOSRHELEnterprise servers (now replaced by CentOS Stream)
FedoraRHELCutting-edge
Archโ€“Rolling release, minimal, advanced users
Alpineโ€“Tiny, used in containers

๐ŸŒ Linux in Servers

  • Nearly all cloud VMs (AWS, Azure, etc.) run Linux

  • Server distros focus on stability, CLI tools, and remote management

  • Youโ€™ll often SSH into Linux servers, not use a GUI


๐Ÿ“Œ Summary

Today helped me build a strong mental model of Linux. I understand why it's used everywhere in DevOps, and the difference between distros and packages.

Tomorrow, Iโ€™ll get hands-on with basic terminal commands and file operations.


0
Subscribe to my newsletter

Read articles from Shaharyar Shakir directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Shaharyar Shakir
Shaharyar Shakir