🐧

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

92 Questions 44 Beginner 31 Intermediate 17 Advanced

About Linux / Shell Scripting

This technology is widely used in software development and is a frequent topic in technical interviews at companies of all sizes.

What to Expect in a Linux / Shell Scripting Interview

Interviews cover both foundational concepts and practical application of this technology, with questions ranging from definitions to architectural decision-making.

How to Use This Guide

Work through questions in order of difficulty to build your understanding progressively. Bookmark challenging questions and revisit them 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