🐧

Top 92 Linux / Shell Scripting Interview Questions & Answers (2026)

92 Questions 44 Beginner 31 Intermediate 17 Advanced

About Linux / Shell Scripting

Top 100 Linux and Shell Scripting interview questions covering commands, file system, permissions, bash scripting, process management, and advanced system administration. Companies hiring for Linux / Shell Scripting roles test this knowledge at every stage — from first-round screens that check the basics to final-round conversations about real-world trade-offs.

What to Expect in a Linux / Shell Scripting Interview

Expect a mix of conceptual and practical Linux / Shell Scripting questions: clear definitions and core-concept checks for junior roles, hands-on scenario questions for mid-level roles, and architecture or trade-off discussions for senior roles. Interviewers usually move from foundational topics toward the kind of problems you'd actually face on the job.

How to Use This Guide

Work through the Linux / Shell Scripting questions in order — Beginner, then Intermediate, then Advanced — so each concept builds on the last. Every question has its own page; bookmark the ones that trip you up and revisit them the day before your interview.

Curated by Tech Baithak Editorial Team  ·  Last updated: May 2026

Beginner 44 questions

Core concepts every Linux / Shell Scripting developer must know.

01 What is Linux? 02 What is the Linux kernel? 03 What is a shell in Linux? 04 What is the difference between Linux and Unix? 05 How do you list files and directories in Linux? 06 How do you change directory in Linux? 07 How do you display the current working directory? 08 How do you create a new directory? 09 How do you remove a file in Linux? 10 How do you copy a file in Linux? 11 How do you move or rename a file in Linux? 12 How do you view the contents of a file? 13 What is the difference between absolute and relative paths? 14 How do you display the manual for a command? 15 What is the root directory in Linux? 16 What is the home directory? 17 How do you create a new file in Linux? 18 What is the difference between / and ~ in Linux? 19 How do you check disk usage in Linux? 20 How do you check memory usage in Linux? 21 How do you view running processes in Linux? 22 How do you kill a process in Linux? 23 What are file permissions in Linux? 24 How do you change file permissions? 25 What does chmod 755 mean? 26 What is the difference between chmod and chown? 27 How do you find a file in Linux? 28 How do you search for text within files? 29 What is a symbolic link? 30 How do you create a symbolic link? 31 What is the difference between a hard link and a soft link? 32 How do you display the last few lines of a file? 33 How do you display the first few lines of a file? 34 What is a shell script? 35 How do you run a shell script? 36 What is the shebang line? 37 How do you make a script executable? 38 What are environment variables? 39 How do you display environment variables? 40 What is the purpose of the PATH variable? 41 What does the echo command do? 42 How do you use the history command? 43 What is the difference between single quotes and double quotes in bash? 44 How do you use wildcards (globbing) in Linux?
Back to All Topics 92 questions total