Linux Interview Questions Indian Devs Face in 2026
Master the top Linux interview questions Indian recruiters ask freshers and DevOps engineers in 2026, with real shell commands, permissions, and log drills.

Why Linux Interview Questions Filter Out Indian Freshers
Even when a Naukri JD lists only Java or Python, Indian tech panels at TCS, Wipro, Infosys, and Bengaluru startups open with Linux terminal scenarios to verify you have deployed real code.
Per AmbitionBox Linux System Administrator salary data (13.5k+ profiles), Indian freshers start at ₹2.2–₹4.8 LPA (TCS ₹3.5–₹8.5 LPA). Add cloud skills and AmbitionBox 2026 DevOps Engineer data (1.3L+ salaries) shows ₹7.6–₹8.4 LPA in IT services and ₹12.0–₹13.2 LPA in product firms.
Pair our guide on operating system interview questions with these nine practical Linux questions.
1. Permissions and File System Fundamentals
Q1. Read -rwxr-xr-- 1 asha dev 120 Oct 18 10:00 deploy.sh and convert it to octal.
Answer: - marks a file. The triplets are owner rwx (4+2+1=7), group r-x (4+0+1=5), and others r-- (4). Per the Linux chmod(1) manual page, that equals chmod 754 deploy.sh.
Q2. What does execute (x) permission do on a directory?
Answer: On a file, x allows execution. On a directory, x is the traverse bit—it lets you cd into the folder and access files inside. With r-- only, you can list filenames using ls but cannot open any file inside.
Q3. How does a hard link differ from a soft (symbolic) link?
Answer: A soft link (ln -s) uses a new inode pointing to a path and breaks if the target is deleted. A hard link (ln) shares the original inode and disk blocks; data survives until all links are deleted, and it cannot cross filesystems.
2. Process Management and Server Debugging
Q4. How do you stop a hung service, and why is kill -9 a last resort?
Answer: Locate the PID with pgrep -a nginx and run kill PID (SIGTERM, 15) so the app closes DB sockets and flushes logs. Use kill -9 PID (SIGKILL) only if SIGTERM fails, as it forces instant kernel termination.
Q5. What is a zombie process, and how do you clear it?
Answer: A zombie (Z in top) is dead and uses no CPU/RAM, but its process table entry remains until its parent calls wait(). kill -9 cannot kill it; send SIGCHLD to or restart the parent process.
Q6. A server is slow or out of disk space. What are your first four checks?
Answer: Indian SRE panels grade diagnostic order, as noted in GeeksforGeeks Linux interview benchmarks:
- CPU: Run
uptimeandtopfor load averages and runaway PIDs. - Memory: Run
free -hto check free RAM and swap usage. - Disk: Run
df -hfor space,df -ifor inodes, anddu -sh /var/log/*. - Open Deleted Files: If
df -hshows 99% full whiledulooks low, runlsof +L1to find deleted logs held open by a service.
3. Log Pipelines, Networking, and Exit Codes
Q7. How do you find the top 5 IPs causing HTTP 500 errors in access.log?
Answer: Run grep " 500 " access.log | awk '{print $1}' | sort | uniq -c | sort -nr | head -n 5 to filter 500 lines, extract IPs, count duplicates, and sort descending.
Q8. What do exit codes 0, 1, and 2 mean for grep in bash?
Answer: Every command sets $?. Per the Linux grep(1) manual page, 0 means a match was found, 1 means no match was found, and 2 means an error occurred (like a missing file).
Q9. A service is active in systemctl status, yet users cannot connect. Why?
Answer: Run ss -tulpn to ensure it binds to 0.0.0.0 (not 127.0.0.1), check firewall rules (ufw status), and verify SELinux (getenforce) plus journalctl -u servicename -n 50.
Indian Linux Roles and Salary Benchmarks (2026)
| Role in India | CTC Range | Core Linux Interview Focus |
|---|---|---|
| L1/L2 Support & Ops | ₹2.2–₹4.5 LPA | Navigation, chmod, df -h, tail -f |
| Linux System Administrator | ₹3.5–₹8.5 LPA | systemd, LVM, cron, ss -tulpn, SELinux |
| Junior DevOps / Cloud Engineer | ₹6.5–₹12.0 LPA | Bash scripts, exit codes, awk/sed pipes |
Pre-Interview Checklist
- Practice every pipeline in Ubuntu WSL or a cloud shell before screen-share rounds.
- Check your CV for keywords (
Bash,systemd,Linux) with PrepFox's AI resume review tool. - Practice explaining shell commands aloud on PrepFox's AI mock interview platform.
Ready to put this into practice?
Practice mock interviews, build your resume, and get expert feedback — all on PrepFox.
More from PrepFox Blog
How to Crack Aptitude Interview Questions in Placements
How to crack aptitude interview questions in Indian placements: quant, reasoning and verbal sections, an 8-week plan, and test-day strategy.
9 Questions to Ask the Interviewer That Impress HR
Interview questions to ask the interviewer: 9 smart questions that impress Indian HR, what each one signals, and what never to ask in round one.
How to Answer Civil Interview Questions as a Fresher
How to answer civil interview questions as a fresher in India: slump test, foundations, cement tests and salary data for site engineer offers.
