Quick Answer: These are the 50 most-asked Linux interview questions and answers for 2026 — commands, files and permissions, processes, networking, and shell scripting. Concise, interview-ready answers for DevOps, SysAdmin, and cloud roles.

Linux Basics
- What is Linux?
An open-source, Unix-like operating system kernel that, with GNU tools, powers servers, cloud, and embedded systems. - What is the kernel?
The core of the OS that manages hardware, memory, processes, and system calls. - What is the shell?
A command interpreter (e.g., Bash) that runs commands and scripts. - What are common Linux distributions?
Ubuntu, Debian, RHEL, CentOS Stream, Rocky Linux, Fedora, and Alpine. - What is the Filesystem Hierarchy (FHS)?
The standard directory layout: /etc (config), /var (logs), /home (users), /bin, /usr, etc. - What is the difference between absolute and relative paths?
Absolute starts from root (/); relative is from the current directory.
Files & Directories
- How do you list files including hidden ones?
ls -la. - How do you find files?
find(real-time search) orlocate(indexed). See our find, locate, grep guide. - How do you search text inside files?
grep "pattern" file. - How do you view a large file?
less,head, ortail -ffor live logs. - How do you create, copy, move, and delete files?
touch, cp, mv, rm respectively. - How do you compress and extract archives?
tar -czvfto compress,tar -xzvfto extract. - What is the difference between a hard link and a soft link?
A hard link points to the same inode; a soft (symbolic) link points to a path and can cross filesystems.
Permissions & Users
- How do Linux file permissions work?
Read/write/execute (rwx) for owner, group, and others. - What does chmod 755 mean?
Owner rwx (7), group and others r-x (5) — full for owner, read+execute for the rest. - What do chmod, chown, and chgrp do?
chmod changes permissions, chown changes owner, chgrp changes group. - What is the difference between su and sudo?
su switches user (often root); sudo runs a single command with elevated privileges. - How do you add a user to a group?
usermod -aG group user. See our guide. - What is the root user?
The superuser (UID 0) with unrestricted access. - What is the setuid bit?
A permission letting a program run with the file owner’s privileges.
Processes & Performance
- How do you list running processes?
ps auxortop/htop. - How do you kill a process?
kill <PID>orkill -9 <PID>to force. See our guide. - What is the difference between a process and a thread?
A process has its own memory; threads share the process’s memory. - What is a zombie process?
A finished process whose parent hasn’t read its exit status, leaving an entry in the process table. - What is a daemon?
A background service process (often ending in ‘d’, like sshd). - How do you run a job in the background?
Append&, or use nohup/systemd for persistence. - How do you check disk and memory usage?
df -handdu -shfor disk;free -hfor memory. - What is load average?
The average number of processes waiting to run over 1, 5, and 15 minutes.
Systemd, Boot & Services
- What is systemd?
The modern init system and service manager for most Linux distributions. - How do you manage a service with systemd?
systemctl start|stop|status|enable <service>. - What happens during the Linux boot process?
BIOS/UEFI → bootloader (GRUB) → kernel → init/systemd → target/runlevel. See our boot process guide. - How do you view system logs?
journalctl(systemd) or files in /var/log. - What is a cron job?
A scheduled task defined in crontab to run commands at set times.
Networking
- How do you check network configuration?
ip addr/ip route(modern) or ifconfig (legacy). - How do you test connectivity?
ping,curl,traceroute, andtelnet/ncfor ports. - How do you see listening ports?
ss -tulpn(or netstat). - How do you copy files between servers?
scporrsync. See our SCP guide. - What is SSH?
Secure Shell — an encrypted protocol for remote login and command execution. - How do you set a static IP?
Edit netplan/NetworkManager config. See our static IP guide.
Shell Scripting & Misc
- What is a shebang?
The#!/bin/bashline that tells the system which interpreter to use. - What are pipes and redirection?
Pipes (|) pass output between commands;>,>>,<redirect to/from files. - What is the difference between > and >>?
> overwrites; >> appends. - What are environment variables?
Key-value settings available to processes; view withprintenv, set with export. See our guide. - What are $?, $0, and $1 in scripts?
$? is the last exit code, $0 the script name, $1 the first argument. - What does exit code 0 mean?
Success; non-zero indicates an error. - How do you make a script executable?
chmod +x script.shthen run./script.sh. - What is the difference between soft and hard reboot?
Soft uses the OS (reboot); hard cuts power abruptly. - How do you check OS and kernel version?
uname -rfor kernel,cat /etc/os-releasefor distro. - What is the difference between apt and dpkg?
dpkg installs local .deb files; apt resolves dependencies from repositories. See our .deb install guide. - How do you schedule a one-time future task?
Use theatcommand (vs cron for recurring).
Frequently Asked Questions
Are these Linux questions good for DevOps interviews?
Yes — Linux fundamentals, permissions, processes, and shell scripting are core to almost every DevOps and SRE interview.
Which Linux topics are asked most often?
File permissions, process management, networking commands, systemd services, the boot process, and shell scripting basics.
How can I practice Linux commands?
Use a Linux VM or WSL, work entirely from the terminal, and follow our hands-on Linux guides.
Related: Linux for DevOps Engineers · Essential Linux Commands · DevOps Interview Questions
