WalzoneInterview Prep
📞 Interviewing soon? Practice with a realistic AI mock phone interview — it calls you, then scores you. First 15 min FREE →

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 20Intermediate 20Advanced 20Expert 20Guru 20

Basic

  1. What is Linux, and why is it popular?
  2. Can you explain the basic components of the Linux operating system?
  3. What is the difference between Linux and Unix?
  4. What is the command line interface (CLI), and why is it important in Linux?
  5. What is the Linux kernel, and what role does it play in the operating system?
  6. What are the main differences between distributions (distros) of Linux?
  7. What is the file system hierarchy in Linux, and what are some key directories?
  8. What is the difference between absolute and relative paths in Linux?
  9. What are some basic Linux file permissions, and how do you view and modify them?
  10. What are some common Linux commands for navigating directories, listing files, and viewing file contents?
  11. How do you create, copy, move, and delete files and directories in Linux?
  12. What is a shell in Linux, and can you name a few popular shells?
  13. Can you explain the concept of pipes and redirects in Linux?
  14. What is a process in Linux, and how can you view running processes?
  15. How do you terminate or suspend a process in Linux?
  16. What are environment variables, and how can you view and modify them in Linux?
  17. What is the purpose of a package manager, and can you name a few common package managers in Linux?
  18. What is the difference between a daemon and a regular process in Linux?
  19. Can you explain the concept of a user and a group in Linux, and how permissions are managed?
  20. What is the role of the root user in Linux, and why is it important to use it cautiously?

Intermediate

  1. What are the key differences between the various init systems in Linux, such as System V, Upstart, and systemd?
  2. How can you monitor system performance in Linux, and which tools would you use for this purpose?
  3. What are inodes in Linux, and how are they related to files and directories?
  4. Can you explain the concept of hard and soft links in Linux, and how they differ?
  5. What are some common file system types in Linux, and what are their main characteristics?
  6. How do you create and manage partitions in Linux, and what tools would you use for this purpose?
  7. What is the role of the /etc, /var, and /tmp directories in the Linux file system hierarchy?
  8. What are the differences between the grep, sed, and awk commands in Linux?
  9. Can you explain the role of Regular Expressions in Linux and provide an example of their usage?
  10. What is a cron job, and how do you schedule tasks to run automatically in Linux?
  11. What are the key features of the ext4 file system, and how does it compare to previous versions?
  12. How do you manage user accounts and groups in Linux, and what tools would you use for this purpose?
  13. How do you set up and manage network connections in Linux, and what tools would you use for this purpose?
  14. Can you explain the role of the ssh command in Linux and provide an example of its usage?
  15. What is the difference between SUID, SGID, and Sticky Bit permissions in Linux?
  16. How do you manage and troubleshoot services in Linux, and what tools would you use for this purpose?
  17. What are the key features of the Btrfs file system, and how does it compare to ext4?
  18. Can you explain the concept of Linux kernel modules, and provide an example of their usage?
  19. What is the role of the /proc and /sys filesystems in Linux, and how are they used?
  20. How do you manage and troubleshoot hardware devices in Linux, and what tools would you use for this purpose?

Advanced

  1. Can you explain the Linux boot process, from the initial power-on to the user login prompt?
  2. How do you compile and install a custom Linux kernel, and what are the benefits of doing so?
  3. What is the role of the initramfs in the Linux boot process, and how does it differ from an initrd?
  4. How do you manage and troubleshoot kernel panics and system crashes in Linux?
  5. Can you explain the concept of Linux namespaces and provide examples of their usage?
  6. What are cgroups in Linux, and how are they used for resource management?
  7. How do you set up and manage a software RAID array in Linux, and what are its advantages and disadvantages?
  8. How do you set up and manage LVM (Logical Volume Management) in Linux, and what are its benefits?
  9. Can you explain the role of the Linux Security Modules (LSM), such as SELinux and AppArmor, and how they enhance security?
  10. How do you set up and manage a chroot environment in Linux, and what are its uses?
  11. Can you explain the concept of Linux containers, and provide examples of containerization technologies, such as Docker and LXC?
  12. How do you set up and manage a virtual private network (VPN) in Linux, and what are its benefits?
  13. What is the role of the iptables command in Linux, and how is it used for configuring firewall rules?
  14. How do you set up and manage a high-availability cluster in Linux, and what tools would you use for this purpose?
  15. How do you optimize Linux system performance, and what tools would you use for this purpose?
  16. Can you explain the role of the sysctl command in Linux and provide examples of its usage?
  17. What are some common methods for securing a Linux server and minimizing its attack surface?
  18. How do you set up and manage log rotation in Linux, and what tools would you use for this purpose?
  19. Can you explain the concept of swap space in Linux, and how it affects system performance?
  20. How do you troubleshoot and resolve common network issues in Linux, and what tools would you use for this purpose?

Expert

  1. 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?
  2. How does Linux manage memory allocation and deallocation, and what techniques are used to optimize memory usage?
  3. Can you explain the role of the System.map file in Linux, and how it can be used for debugging purposes?
  4. What are the key features and differences between the KVM, Xen, and VMware ESXi virtualization technologies in Linux?
  5. Can you explain the role of the eBPF (extended Berkeley Packet Filter) technology in Linux, and provide examples of its usage?
  6. How do you set up and manage a distributed file system in Linux, such as GlusterFS or Ceph?
  7. How does Linux implement process and thread synchronization, and can you provide examples of mutexes, semaphores, and condition variables?
  8. Can you explain the role of the CAP_NET_RAW capability in Linux, and how it relates to network security?
  9. How do you set up and manage disk encryption in Linux, such as LUKS or dm-crypt?
  10. What are the key features and differences between the various Linux I/O schedulers, such as CFQ, Deadline, and Noop?
  11. How do you configure and manage the X Window System (X11) and the newer Wayland display server in Linux?
  12. Can you explain the concept of Linux real-time extensions, such as the PREEMPT_RT patch, and their applications?
  13. How do you set up and manage network traffic control and Quality of Service (QoS) in Linux using tools such as tc and iptables?
  14. Can you explain the role of the Advanced Configuration and Power Interface (ACPI) in Linux and how it relates to power management?
  15. How do you manage and troubleshoot advanced filesystem features in Linux, such as journaling, snapshots, and quotas?
  16. How do you set up and manage an iSCSI target and initiator in Linux for remote storage access?
  17. Can you explain the concept of reverse proxies in Linux, and provide examples of their usage with tools such as Nginx or HAProxy?
  18. How do you set up and manage Linux network bonding and teaming for increased redundancy and throughput?
  19. Can you explain the role of the seccomp security feature in Linux, and how it can be used to limit system calls?
  20. How do you set up and manage a Network File System (NFS) server and client in Linux for remote file access?

Guru

  1. 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?
  2. 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?
  3. Can you explain the concept of the Translation Lookaside Buffer (TLB) in Linux, and how it affects virtual memory performance?
  4. What are the key differences and considerations when working with NUMA (Non-Uniform Memory Access) systems in Linux?
  5. How does Linux handle interrupt handling and context switching, and what are the key factors affecting their performance?
  6. Can you explain the role of the RCU (Read-Copy-Update) mechanism in the Linux kernel, and how it improves concurrency and scalability?
  7. How do you implement and manage a ZFS filesystem in Linux, and what are its key features and advantages?
  8. Can you explain the role of the kexec and kdump tools in Linux, and how they can be used for crash recovery and analysis?
  9. How do you set up and manage a BGP (Border Gateway Protocol) router in Linux for advanced routing and traffic engineering?
  10. Can you explain the role of the netfilter and nftables frameworks in Linux, and how they relate to advanced network filtering and firewall management?
  11. What are the key considerations and best practices for managing a Linux system with strict real-time requirements and constraints?
  12. 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?
  13. How do you set up and manage an RDMA (Remote Direct Memory Access) network in Linux for high-performance and low-latency data transfers?
  14. Can you explain the role of the Linux kernel’s writeback mechanism and its impact on filesystem performance?
  15. How do you set up and manage a Software-Defined Networking (SDN) solution in Linux, such as Open vSwitch or OpenDaylight?
  16. 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?
  17. How do you implement and manage advanced access control and security mechanisms, such as Mandatory Access Control (MAC) and Role-Based Access Control (RBAC)?
  18. How do you set up and manage a high-performance parallel filesystem in Linux, such as Lustre or OrangeFS?
  19. Can you explain the role of the Linux kernel’s I/O request path and how it affects disk and storage performance?
  20. 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