100 Linux Interview Questions and Answers
DevOps, Cloud & Tools · 100 questions, each with a full written answer — free, no sign-up.
Reading is step one. Saying it out loud is the interview.
Our AI interviewer calls your phone and runs a realistic Linux interview — then scores it.
📞 Practice Linux — free 15 min
📕 Buy this interview preparation book: 100 Linux questions & answers — PDF + EPUB for $5
Basic
- What is Linux, and why is it popular?
- Can you explain the basic components of the Linux operating system?
- What is the difference between Linux and Unix?
- What is the command line interface (CLI), and why is it important in Linux?
- What is the Linux kernel, and what role does it play in the operating system?
- What are the main differences between distributions (distros) of Linux?
- What is the file system hierarchy in Linux, and what are some key directories?
- What is the difference between absolute and relative paths in Linux?
- What are some basic Linux file permissions, and how do you view and modify them?
- What are some common Linux commands for navigating directories, listing files, and viewing file contents?
- How do you create, copy, move, and delete files and directories in Linux?
- What is a shell in Linux, and can you name a few popular shells?
- Can you explain the concept of pipes and redirects in Linux?
- What is a process in Linux, and how can you view running processes?
- How do you terminate or suspend a process in Linux?
- What are environment variables, and how can you view and modify them in Linux?
- What is the purpose of a package manager, and can you name a few common package managers in Linux?
- What is the difference between a daemon and a regular process in Linux?
- Can you explain the concept of a user and a group in Linux, and how permissions are managed?
- What is the role of the root user in Linux, and why is it important to use it cautiously?
Intermediate
- What are the key differences between the various init systems in Linux, such as System V, Upstart, and systemd?
- How can you monitor system performance in Linux, and which tools would you use for this purpose?
- What are inodes in Linux, and how are they related to files and directories?
- Can you explain the concept of hard and soft links in Linux, and how they differ?
- What are some common file system types in Linux, and what are their main characteristics?
- How do you create and manage partitions in Linux, and what tools would you use for this purpose?
- What is the role of the /etc, /var, and /tmp directories in the Linux file system hierarchy?
- What are the differences between the grep, sed, and awk commands in Linux?
- Can you explain the role of Regular Expressions in Linux and provide an example of their usage?
- What is a cron job, and how do you schedule tasks to run automatically in Linux?
- What are the key features of the ext4 file system, and how does it compare to previous versions?
- How do you manage user accounts and groups in Linux, and what tools would you use for this purpose?
- How do you set up and manage network connections in Linux, and what tools would you use for this purpose?
- Can you explain the role of the ssh command in Linux and provide an example of its usage?
- What is the difference between SUID, SGID, and Sticky Bit permissions in Linux?
- How do you manage and troubleshoot services in Linux, and what tools would you use for this purpose?
- What are the key features of the Btrfs file system, and how does it compare to ext4?
- Can you explain the concept of Linux kernel modules, and provide an example of their usage?
- What is the role of the /proc and /sys filesystems in Linux, and how are they used?
- How do you manage and troubleshoot hardware devices in Linux, and what tools would you use for this purpose?
Advanced
- Can you explain the Linux boot process, from the initial power-on to the user login prompt?
- How do you compile and install a custom Linux kernel, and what are the benefits of doing so?
- What is the role of the initramfs in the Linux boot process, and how does it differ from an initrd?
- How do you manage and troubleshoot kernel panics and system crashes in Linux?
- Can you explain the concept of Linux namespaces and provide examples of their usage?
- What are cgroups in Linux, and how are they used for resource management?
- How do you set up and manage a software RAID array in Linux, and what are its advantages and disadvantages?
- How do you set up and manage LVM (Logical Volume Management) in Linux, and what are its benefits?
- Can you explain the role of the Linux Security Modules (LSM), such as SELinux and AppArmor, and how they enhance security?
- How do you set up and manage a chroot environment in Linux, and what are its uses?
- Can you explain the concept of Linux containers, and provide examples of containerization technologies, such as Docker and LXC?
- How do you set up and manage a virtual private network (VPN) in Linux, and what are its benefits?
- What is the role of the iptables command in Linux, and how is it used for configuring firewall rules?
- How do you set up and manage a high-availability cluster in Linux, and what tools would you use for this purpose?
- How do you optimize Linux system performance, and what tools would you use for this purpose?
- Can you explain the role of the sysctl command in Linux and provide examples of its usage?
- What are some common methods for securing a Linux server and minimizing its attack surface?
- How do you set up and manage log rotation in Linux, and what tools would you use for this purpose?
- Can you explain the concept of swap space in Linux, and how it affects system performance?
- How do you troubleshoot and resolve common network issues in Linux, and what tools would you use for this purpose?
Expert
- Can you explain the differences between process scheduling algorithms in the Linux kernel, such as the Completely Fair Scheduler (CFS) and the O(1) scheduler?
- How does Linux manage memory allocation and deallocation, and what techniques are used to optimize memory usage?
- Can you explain the role of the System.map file in Linux, and how it can be used for debugging purposes?
- What are the key features and differences between the KVM, Xen, and VMware ESXi virtualization technologies in Linux?
- Can you explain the role of the eBPF (extended Berkeley Packet Filter) technology in Linux, and provide examples of its usage?
- How do you set up and manage a distributed file system in Linux, such as GlusterFS or Ceph?
- How does Linux implement process and thread synchronization, and can you provide examples of mutexes, semaphores, and condition variables?
- Can you explain the role of the CAP_NET_RAW capability in Linux, and how it relates to network security?
- How do you set up and manage disk encryption in Linux, such as LUKS or dm-crypt?
- What are the key features and differences between the various Linux I/O schedulers, such as CFQ, Deadline, and Noop?
- How do you configure and manage the X Window System (X11) and the newer Wayland display server in Linux?
- Can you explain the concept of Linux real-time extensions, such as the PREEMPT_RT patch, and their applications?
- How do you set up and manage network traffic control and Quality of Service (QoS) in Linux using tools such as tc and iptables?
- Can you explain the role of the Advanced Configuration and Power Interface (ACPI) in Linux and how it relates to power management?
- How do you manage and troubleshoot advanced filesystem features in Linux, such as journaling, snapshots, and quotas?
- How do you set up and manage an iSCSI target and initiator in Linux for remote storage access?
- Can you explain the concept of reverse proxies in Linux, and provide examples of their usage with tools such as Nginx or HAProxy?
- How do you set up and manage Linux network bonding and teaming for increased redundancy and throughput?
- Can you explain the role of the seccomp security feature in Linux, and how it can be used to limit system calls?
- How do you set up and manage a Network File System (NFS) server and client in Linux for remote file access?
Guru
- Can you explain the inner workings of the Linux kernel’s memory management subsystem, such as the buddy system, slab allocator, and page replacement algorithms?
- How do you diagnose and troubleshoot performance issues in the Linux kernel, and what tools and techniques can you use for kernel profiling and tracing?
- Can you explain the concept of the Translation Lookaside Buffer (TLB) in Linux, and how it affects virtual memory performance?
- What are the key differences and considerations when working with NUMA (Non-Uniform Memory Access) systems in Linux?
- How does Linux handle interrupt handling and context switching, and what are the key factors affecting their performance?
- Can you explain the role of the RCU (Read-Copy-Update) mechanism in the Linux kernel, and how it improves concurrency and scalability?
- How do you implement and manage a ZFS filesystem in Linux, and what are its key features and advantages?
- Can you explain the role of the kexec and kdump tools in Linux, and how they can be used for crash recovery and analysis?
- How do you set up and manage a BGP (Border Gateway Protocol) router in Linux for advanced routing and traffic engineering?
- Can you explain the role of the netfilter and nftables frameworks in Linux, and how they relate to advanced network filtering and firewall management?
- What are the key considerations and best practices for managing a Linux system with strict real-time requirements and constraints?
- Can you explain the concept of TCP/IP stack offloading techniques, such as TOE (TCP Offload Engine) and GRO (Generic Receive Offload), and their impact on network performance in Linux?
- How do you set up and manage an RDMA (Remote Direct Memory Access) network in Linux for high-performance and low-latency data transfers?
- Can you explain the role of the Linux kernel’s writeback mechanism and its impact on filesystem performance?
- How do you set up and manage a Software-Defined Networking (SDN) solution in Linux, such as Open vSwitch or OpenDaylight?
- Can you explain the inner workings of the Linux process scheduler, and how different scheduling classes and policies can be used to optimize system performance?
- How do you implement and manage advanced access control and security mechanisms, such as Mandatory Access Control (MAC) and Role-Based Access Control (RBAC)?
- How do you set up and manage a high-performance parallel filesystem in Linux, such as Lustre or OrangeFS?
- Can you explain the role of the Linux kernel’s I/O request path and how it affects disk and storage performance?
- How do you implement and manage a Linux system with advanced hardware features, such as SR-IOV (Single Root I/O Virtualization) and hardware-assisted virtualization?
📕 Buy this interview preparation book: 100 Linux questions & answers — PDF + EPUB for $5
Reading is step one. Saying it out loud is the interview.
Our AI interviewer calls your phone and runs a realistic Linux interview — then scores it.
📞 Practice Linux — free 15 min