Interview Q&A Linux All Levels

Linux MCQ — Basics to Advanced

40 multiple-choice questions covering the Linux kernel, filesystem, permissions, processes, boot process, systemd, networking, storage, and everyday commands.

13 min read 40 Questions
1 Strictly speaking, what does the word 'Linux' refer to?
2 Which of these is the correct relationship between a distribution and the kernel?
3 What is the fundamental difference between kernel space and user space?
4 A user-space program calls open(), read(), and write() to interact with a file. What are these calls?
5 What is an inode?
6 What happens to a hard link when the original file is deleted?
7 What does a symbolic link actually store?
8 What does `chmod 644 file.txt` set the permissions to?
9 What does the setuid bit do when set on an executable?
10 What is the purpose of the sticky bit on a directory like /tmp?
11 If umask is set to 0022, what permissions will a newly created FILE have by default?
12 What is a zombie process?
13 What happens to an orphan process (whose parent died before it did)?
14 What is the key difference between SIGTERM and SIGKILL?
15 In `nice` values, which number represents the HIGHEST scheduling priority?
16 What command brings a suspended (Ctrl+Z'd) background job back to the foreground?
17 During Linux boot, what is the purpose of initramfs?
18 What is PID 1 on a modern systemd-based Linux system?
19 After manually editing a systemd .service file, what command must be run before the changes take effect?
20 What is the difference between `After=` and `Requires=` in a systemd unit file?
21 Which command lets you view logs from the PREVIOUS boot, after an unexpected reboot?
22 What is the purpose of /etc/fstab?
23 What is the core difference between the `df` and `du` commands?
24 On an XFS filesystem, which command is correct for growing it after extending the underlying logical volume?
25 What is the main advantage of RAID 1 over RAID 0?
26 What does a high, sustained value in the `si`/`so` columns of `vmstat` indicate?
27 Where are hashed user passwords stored on a modern Linux system?
28 What is the key difference between `sudo` and `su`?
29 What mistake does `usermod -G docker deploy` (without -a) make?
30 Which Linux file type is created by the `mkfifo` command?
31 What is the fundamental difference between a character device and a block device?
32 What does `grep -v "debug" app.log` do?
33 What does `sed -i 's/foo/bar/g' file.txt` do?
34 In `awk -F: '{print $1}' /etc/passwd`, what does `-F:` do?
35 Why must input be sorted before piping into `uniq`?
36 Which tar flags create a gzip-compressed archive verbosely?
37 Why should `rsync --delete` always be tested with `--dry-run` first?
38 What is the difference between `apt update` and `apt upgrade`?
39 Which two Linux kernel features make containers (like Docker) possible without a separate guest kernel?
40 A Kubernetes pod was OOMKilled. Where would you look on the NODE to confirm this at the kernel level?

Scenario Based

Scenario-based questions for Linux are coming soon.

Add More Questions to This Guide

Know a question that should be here? Share it and help the community!

Open Google Form