Skip to main content

Linux Interview Questions

9 questions for junior and senior Linux interviews, with model answers, code examples and common mistakes. Answer each one out loud first, then reveal the answer.

9questions
2levels
Sponsored
Carbon Ads
Juniorbeginner

Bash Scripting Basics

// interview question

What is the shebang line and how do you write a basic bash script?

Answer out loud first, then check yourself against the model answer.

Juniorbeginner

Environment Variables

// interview question

What are environment variables and how do you use them in Linux? How do you make them persistent?

Answer out loud first, then check yourself against the model answer.

Juniorbeginner

Linux File Permissions

// interview question

Explain Linux file permissions. What does the permission 'rwxr-xr--' mean?

Answer out loud first, then check yourself against the model answer.

Juniorbeginner

Linux Package Management

// interview question

How do you install and manage software packages in Linux? What's the difference between apt and yum?

Answer out loud first, then check yourself against the model answer.

Juniorbeginner

Linux System Logs

// interview question

Where are system logs stored in Linux and how do you view them?

Answer out loud first, then check yourself against the model answer.

Juniorbeginner

Shell Scripting Fundamentals

// interview question

What are the essential components of a shell script? Explain variables, conditionals, and loops.

Answer out loud first, then check yourself against the model answer.

Juniorbeginner

SSH Basics and Key Authentication

// interview question

How does SSH key authentication work? How do you set it up?

Answer out loud first, then check yourself against the model answer.

Senioradvanced

Linux Process Debugging

// interview question

A process is consuming 100% CPU on a Linux server. Walk me through how you would identify and troubleshoot this issue.

Answer out loud first, then check yourself against the model answer.

More interview topics

Also worth your time on this topic