Linux DevOps AutomationDevOps GuidesLinux GuideSystem Administration

Article & Tutorial

What Is Linux? Complete Beginner Guide to Architecture, Commands and DevOps

Learn Linux from the ground up with simple explanations of the kernel, distributions, filesystem, commands, permissions, services, networking, troubleshooting and DevOps use cases.

Linux operating system architecture and command-line concepts
Linux operating system architecture and command-line concepts
Contents

What is Linux?

Linux is the foundation behind a large part of modern computing. It powers web servers, cloud virtual machines, containers, Kubernetes nodes, network appliances, embedded systems and developer workstations. Technically, Linux is the kernel—the core that manages CPU time, memory, devices, networking and filesystems. A Linux distribution combines that kernel with tools, libraries, package management, services and an optional graphical desktop.

Linux architecture

LayerPurpose
ApplicationsRun user and server workloads
Shell and utilitiesLet users and scripts interact with the system
System librariesProvide reusable interfaces for applications
Linux kernelManage CPU, memory, devices, networking and filesystems
HardwareProvide physical computing resources
Simple Linux architecture diagram showing applications, shell and utilities, system libraries, Linux kernel, and hardware.
Linux architecture from applications down to hardware.

Linux distributions

Different Linux distributions package the same core ideas in different ways. Ubuntu and Debian use apt, RHEL-family systems such as Rocky Linux and AlmaLinux commonly use dnf, Fedora focuses on newer technologies, and Alpine Linux is popular for lightweight environments.

DistributionCommon usePackage tool
UbuntuCloud, labs and general serversapt
DebianStable serversapt
RHELEnterprise systemsdnf
Rocky / AlmaLinuxRHEL-compatible serversdnf
FedoraDeveloper workstationsdnf
AlpineLightweight systems and containersapk

Where Linux is used

  • Web and application servers
  • Cloud virtual machines
  • Docker hosts and Kubernetes nodes
  • Databases and CI/CD runners
  • Network appliances and embedded devices
  • Developer workstations

Linux filesystem basics

Linux uses one directory tree beginning at /. Important locations include /etc for configuration, /home for regular users, /var for logs and changing application data, /usr for programs and libraries, /dev for devices, /proc for process and kernel information, and /boot for boot files.

Simple Linux filesystem diagram showing key directories under the root directory.
Common directories in the Linux filesystem tree.

Essential Linux commands

CommandPurpose
whoamiShow current user
pwdShow current directory
ls -laList files and permissions
uname -rShow kernel version
cat /etc/os-releaseShow distribution details
df -hShow disk usage
free -hShow memory usage
ip addrShow network addresses
ip routeShow routes
ps auxShow processes
systemctl --failedShow failed services

Example: identify your Linux system

identify-linux.sh
whoami
pwd
uname -r
cat /etc/os-release
df -h
free -h

The useful habit is to ask a question first—Who am I? Where am I? Which OS and kernel are running? Is disk or memory under pressure?—and then choose the command.

Users and permissions

Linux is a multi-user system. The root account has unrestricted administrative control, while sudo is commonly used to elevate individual commands. Files and directories have an owner, a group and read, write and execute permissions. Understanding permissions is safer than running every command with sudo.

Example: understand chmod 640

permissions-example.sh
touch report.txt
chmod 640 report.txt
ls -l report.txt

The owner can read and write the file, the group can read it, and other users have no permission.

Processes, services and packages

A process is a running program. A service is usually a long-running background workload managed by a service manager such as systemd. Use ps and top for processes, systemctl for services and journalctl for logs. Linux distributions install software from trusted repositories using package managers such as apt or dnf.

Example: check why a service is not running

service-check.sh
systemctl status ssh
journalctl -u ssh --since today

First inspect the service state. If it is failed or restarting, read the journal for the same service. Look for the first meaningful error rather than changing several settings at once.

Networking basics

Start Linux networking by answering four questions: What addresses does this host have? Which route will traffic use? Can names be resolved? Can the destination service be reached? Common tools include ip addr, ip route, getent, ss and curl.

Example: diagnose network connectivity

network-check.sh
ip addr
ip route
getent hosts example.com
ss -tulpn

Work from the local machine outward: interface → route → DNS → local listening service. This makes network troubleshooting much easier to reason about.

Why Linux matters for DevOps

Linux is central to DevOps because a large share of server and cloud workloads run on it. Linux skills transfer directly to Docker, Kubernetes, CI/CD, cloud administration, automation and production troubleshooting.

Common beginner mistakes

  • Running every command with sudo
  • Using destructive commands before checking the target path
  • Forgetting that filenames are normally case-sensitive
  • Editing configuration without a backup
  • Changing networking remotely without recovery access
  • Installing software from untrusted scripts
  • Ignoring the first meaningful error in logs

Linux learning roadmap

  1. Files and navigation
  2. Text processing and pipes
  3. Users, groups and permissions
  4. Processes and services
  5. Packages and repositories
  6. Storage and filesystems
  7. Networking and SSH
  8. Logs and troubleshooting
  9. Bash scripting and automation
  10. Docker, Kubernetes, cloud and CI/CD

Frequently asked questions

Is Linux an operating system or a kernel? Technically, Linux is the kernel. In everyday usage, Linux commonly refers to a complete Linux-based operating system distribution.

Is Linux only command line? No. Linux supports graphical desktop environments. Servers are often administered through the terminal because command-line workflows are efficient, remote-friendly and easy to automate.

Which distribution should a beginner learn? Ubuntu is a practical starting point for cloud and DevOps learning, but the core concepts transfer to many distributions.

Key takeaway

Related Melochip guides

Continue from Linux fundamentals into practical administration, containers and Kubernetes with these Melochip guides.

https://melochip.com/posts/configure-the-static-ip-address-in-ubuntu-linux

https://melochip.com/posts/install-docker-ubuntu-windows-macos

https://melochip.com/posts/what-is-docker-complete-beginner-guide-with-examples

https://melochip.com/posts/kubernetes-cluster-setup-guide

https://melochip.com/posts/what-is-kubernetes-complete-beginner-guide

Official references

https://www.kernel.org/

https://docs.kernel.org/

https://ubuntu.com/server/docs

Did this help?

Yes No

Join the discussion

0 Comments

Ask questions, add context, or share what worked.

Sign in to join the discussion

No comments yet. Start the discussion.

More from Melochip Editorial

Related articles

Stay in the loop. Get new Melochip articles

Receive Melochip article updates when new articles are available. Explicit opt-in only.

No pre-checked boxes. Unsubscribe support is part of the subscriber foundation.