LearnThatStack Ace your next interview
DevOps
Linux.
Change topic Change
Practice · Questions

All questions

Showing of 52
Beginner 12
01

What is the Linux file system hierarchy and what are the main directories?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

The Linux file system follows the Filesystem Hierarchy Standard (FHS). Key directories include:

  • / - Root directory, the top-level directory
  • /bin - Essential user binaries (commands)
  • /boot - Boot loader files and kernel
  • /dev - Device files
  • /etc - System configuration files
  • /home - User home directories
  • /lib - Essential shared libraries
  • /media - Mount points for removable media
  • /mnt - Temporary mount points
  • /opt - Optional software packages
  • /proc - Virtual filesystem with process information
  • /root - Root user's home directory
  • /run - Runtime data
  • /sbin - System administration binaries
  • /tmp - Temporary files
  • /usr - User programs and data
  • /var - Variable data (logs, databases, etc.)
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

02

Explain Linux file permissions and how to change them.

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Linux uses a three-tier permission system:

  • Owner (u): The file owner
  • Group (g): The file's group
  • Others (o): All other users
    Each tier has three permissions:
  • Read (r): Permission to read the file (4)
  • Write (w): Permission to modify the file (2)
  • Execute (x): Permission to execute the file (1)
    Example: rwxr-xr-- means owner has read/write/execute, group has read/execute, others have read only.
# Change permissions using chmod
chmod 755 file.txt        # rwxr-xr-x
chmod u+x script.sh       # Add execute for owner
chmod g-w file.txt        # Remove write for group
chmod o=r file.txt        # Set others to read only
# Change ownership
chown user:group file.txt
chgrp newgroup file.txt
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

03

How do you find files and directories in Linux?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Multiple commands are available for finding files:
find command (most powerful):

# Find by name
find /path -name "filename"
find . -name "*.txt"
# Find by type
find /home -type f        # Files only
find /home -type d        # Directories only
# Find by size
find /var -size +100M     # Files larger than 100MB
find . -size -1k          # Files smaller than 1KB
# Find by permissions
find . -perm 755
find . -perm -u+x         # Files executable by owner
# Find and execute action
find /tmp -name "*.tmp" -delete
find . -name "*.log" -exec rm {} \;

locate command (faster, uses database):

locate filename
updatedb              # Update locate database

which/whereis commands:

which python           # Find executable in PATH
whereis python         # Find binary, source, manual
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

04

How do you view and manage running processes?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Several commands help manage processes:

# View processes
ps aux                  # All processes with details
ps -ef                  # Full format listing
ps -u username          # Processes for specific user
pstree                  # Process tree view
# Real-time process monitoring
top                     # Interactive process viewer
htop                    # Enhanced version of top
atop                    # Advanced system monitor
# Process information
jobs                    # Current shell jobs
pgrep process_name      # Find process IDs by name
pidof process_name      # Get PID of running process

Process states:

  • R: Running
  • S: Sleeping (waiting)
  • D: Uninterruptible sleep
  • Z: Zombie
  • T: Stopped
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

05

How do you kill processes in Linux?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain
# Kill by PID
kill PID                # Send TERM signal (15)
kill -9 PID             # Send KILL signal (forceful)
kill -15 PID            # Send TERM signal (graceful)
# Kill by name
killall process_name    # Kill all processes with name
pkill pattern           # Kill processes matching pattern
# Common signals
kill -l                 # List all signals
kill -HUP PID          # Reload configuration (1)
kill -INT PID          # Interrupt (2)
kill -QUIT PID         # Quit (3)
kill -KILL PID         # Force kill (9)
kill -TERM PID         # Terminate (15)
kill -STOP PID         # Stop process (19)
kill -CONT PID         # Continue process (18)
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

06

What are background and foreground processes?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Foreground processes: Run in the terminal and accept input
Background processes: Run independently without blocking terminal

# Run command in background
command &               # Start in background
nohup command &         # Continue after logout
# Job control
jobs                    # List current jobs
fg %1                   # Bring job 1 to foreground
bg %1                   # Send job 1 to background
Ctrl+Z                  # Suspend current process
Ctrl+C                  # Terminate current process
# Detach from terminal
nohup long_command > output.log 2>&1 &
disown %1               # Remove job from shell
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

07

How do you manage users and groups in Linux?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain
# User management
useradd username         # Add new user
useradd -m -s /bin/bash username  # Create with home directory
userdel username         # Delete user
userdel -r username      # Delete user and home directory
usermod -aG groupname username    # Add user to group
passwd username          # Change user password
chage -l username        # View password aging info
# Group management
groupadd groupname       # Create new group
groupdel groupname       # Delete group
gpasswd -a username groupname     # Add user to group
gpasswd -d username groupname     # Remove user from group
# View user/group information
id username              # Show user ID and groups
groups username          # Show user's groups
getent passwd username   # Get user info from database
getent group groupname   # Get group info
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

08

What are the important user configuration files?

Part of Pro
09

How do package managers work in different Linux distributions?

Part of Pro
10

How do you manage system logs in Linux?

Part of Pro
11

How do you monitor disk usage and performance?

Part of Pro
12

How do you schedule tasks with cron?

Part of Pro
Intermediate 29
13

What are special permissions (SUID, SGID, Sticky bit)?

Part of Pro
14

What are hard links and soft links (symbolic links)?

Part of Pro
15

What are daemons and how do you create one?

Part of Pro
16

Explain process priorities and nice values.

Part of Pro
17

How do you implement sudo access?

Part of Pro
18

How do you compile and install software from source?

Part of Pro
19

What are repositories and how do you manage them?

Part of Pro
20

How do you configure network interfaces in Linux?

Part of Pro
21

How do you troubleshoot network connectivity issues?

Part of Pro
22

What are iptables and how do you configure basic firewall rules?

Part of Pro
23

How do you configure SSH securely?

Part of Pro
24

How do you monitor system performance and resource usage?

Part of Pro
25

What are load averages and how do you interpret them?

Part of Pro
26

How do you use sar for system activity reporting?

Part of Pro
27

How do you configure log rotation?

Part of Pro
28

How do you analyze logs for troubleshooting?

Part of Pro
29

How do you manage disk partitions and file systems?

Part of Pro
30

What is LVM and how do you use it?

Part of Pro
31

What are different file system types and their use cases?

Part of Pro
32

How do you implement basic Linux security hardening?

Part of Pro
33

How do you write effective shell scripts for system administration?

Part of Pro
34

How do you handle error checking in bash scripts?

Part of Pro
35

How do you manage systemd services?

Part of Pro
36

How do you create a custom systemd service?

Part of Pro
37

How do you troubleshoot service startup issues?

Part of Pro
38

How do you implement backup strategies in Linux?

Part of Pro
39

How do you diagnose high CPU usage?

Part of Pro
40

How do you troubleshoot memory issues?

Part of Pro
41

How do you troubleshoot network connectivity issues?

Part of Pro
Expert 11
42

What is PAM (Pluggable Authentication Modules)?

Part of Pro
43

What tools do you use for performance tuning?

Part of Pro
44

How do you use SELinux for security?

Part of Pro
45

How do you implement and manage file system encryption?

Part of Pro
46

How do you implement intrusion detection and monitoring?

Part of Pro
47

How do you perform disaster recovery in Linux?

Part of Pro
48

How do you troubleshoot boot issues in Linux?

Part of Pro
49

How do you work with containers and Docker?

Part of Pro
50

How do you implement high availability and clustering?

Part of Pro
51

How do you implement automation with Ansible?

Part of Pro
52

How do you tune Linux kernel parameters?

Part of Pro

No matches

Try a different filter or search term.

Know someone prepping for Linux? Send them this set.
Pro · $10/mo

45 of 52 Linux answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime

Change topic

Pick a different technology or stack. Your current topic stays put until you choose a new one.

Technologies
No technologies match “”.
Cross-cutting topics
No topics match “”.
By role
Stacks & frameworks

MEAN

MongoDB, Express, Angular, Node.js

MERN

MongoDB, Express, React, Node.js

LAMP

Linux, Apache, MySQL, PHP

Django

Python Full-Stack Development

Ruby on Rails

Convention over Configuration

Serverless on AWS

Serverless Architecture on AWS

Flutter Mobile

Flutter Cross-Platform Mobile Development

Spring Boot

Enterprise Java Development

.NET

Microsoft Ecosystem

Vue

Vue.js, Vite, TypeScript, Tailwind, Node.js

Go Backend

Golang, gRPC, PostgreSQL, Redis, RabbitMQ

FastAPI

Python, FastAPI, SQLAlchemy, PostgreSQL

React Native

React, TypeScript, Redux, Firebase

iOS Native

Swift, SwiftUI, UIKit, Firebase

Android Native

Java, Jetpack Compose, Firebase

DevOps / Platform

Docker, Kubernetes, Terraform, CI/CD

AI Engineer

LLMs, RAG, Agents, Evals

AI-Powered Developer

Claude Code, Copilot, Agentic Workflows

Core SWE Interview Prep

Data structures, algorithms, OS, concurrency, networking, git