Learn Linux
The operating system every cloud and DevOps engineer must know cold.
Linux is the open-source, Unix-like operating system that runs the vast majority of cloud servers, containers, and infrastructure. Fluency in the command line, filesystem, permissions, processes, and networking is foundational for anyone in cloud or DevOps, because almost everything — containers, Kubernetes nodes, CI agents — ultimately runs on Linux. Understanding how the shell, package managers, and systemd fit together lets you operate and troubleshoot real production systems.
Linux roadmap
- 1
The shell and filesystem
Navigate with cd/ls/pwd, understand the filesystem hierarchy, and manipulate files.
- 2
Users, groups, and permissions
chmod, chown, the rwx model, and why least privilege matters on multi-user systems.
- 3
Processes and signals
ps, top, kill, foreground/background jobs, and how signals like SIGTERM work.
- 4
Text processing
grep, sed, awk, pipes, and redirection — the glue of shell automation.
- 5
Package management
apt/dpkg on Debian/Ubuntu and dnf/rpm on RHEL-family distros.
- 6
Services with systemd
systemctl and journalctl to manage and inspect long-running services.
- 7
Networking basics
ip, ss, curl, DNS, ports, and firewalls to diagnose connectivity.
- 8
Shell scripting
Write bash scripts with variables, conditionals, loops, and functions to automate tasks.
Top Linux interview questions
Real questions with concise, correct answers. Click to expand each.
What do the permission bits in 'rwxr-xr--' mean?+
Permissions are shown in three groups of three for owner, group, and others. Each group is read (r=4), write (w=2), execute (x=1). So 'rwxr-xr--' means the owner can read/write/execute (7), the group can read/execute (5), and others can only read (4) — i.e. mode 754. Directories need execute permission to be entered.
What is the difference between a hard link and a symbolic link?+
A hard link is another directory entry pointing to the same inode (the same data on disk); the file's data survives as long as any hard link exists, and hard links can't span filesystems or link directories. A symbolic (soft) link is a small file that stores a path to another file; it can cross filesystems and link directories but breaks if the target is moved or deleted.
How do you find which process is using a port?+
Use 'ss -ltnp' (or the older 'netstat -ltnp') to list listening TCP sockets with the owning process, or 'lsof -i :8080' to see what's bound to a specific port. You typically need sudo to see process names for ports owned by other users.
What is the difference between a process and a daemon?+
A process is any running instance of a program. A daemon is a background process that runs detached from a terminal, usually started at boot and managed by the init system (systemd), providing a service — like sshd or nginx. Daemon names conventionally end in 'd'.
How would you troubleshoot a server that is running out of disk space?+
Start with 'df -h' to see which filesystem is full, then 'du -sh *' (or 'du -h --max-depth=1') from the top of that filesystem to drill into the largest directories. Common culprits are runaway logs (check /var/log), old package caches, and orphaned files still held open by a process (visible via 'lsof' even after deletion). Clean up or rotate logs and remove unneeded files.
What does the 'grep -r "error" .' command do, and how do you filter results?+
It recursively searches the current directory tree for lines containing the text 'error' and prints the matching file and line. You can add -i for case-insensitive matching, -n for line numbers, -l to show only filenames, and -v to invert the match (show lines that do NOT contain the pattern). Pipe to another command for further filtering.
Linux cheat sheet
ls -laList all files (including hidden) with details and permissions.
chmod 755 fileSet permissions: owner rwx, group and others r-x.
ps aux | grep <name>Find running processes matching a name.
grep -rin 'text' .Recursively, case-insensitively search with line numbers.
df -h / du -sh *Show disk usage by filesystem / by directory.
systemctl status <svc>Check a systemd service's state and recent logs.
journalctl -u <svc> -fFollow the logs of a specific systemd service.
chmod +x script.sh && ./script.shMake a script executable and run it.
Linux certifications
CompTIA Linux+
Vendor-neutral cert covering administration, scripting, security, and troubleshooting.
Red Hat Certified System Administrator (RHCSA)
Respected hands-on, performance-based exam on core RHEL administration tasks.
LFCS — Linux Foundation Certified System Administrator
Performance-based cert on operations, networking, storage, and users across distros.
Ready to ace the interview?
This hub gets you started. Our Linux interview kit goes deeper — hundreds of curated questions, model answers, and mock scenarios built to get you hired.