PracHub
QuestionsCoachesLearningGuidesInterview Prep
|Home/Software Engineering Fundamentals/Google

Explain what happens when you run ls

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's understanding of process creation and execution, shell command resolution, kernel and VFS filesystem interactions, and how directory entries and file metadata are retrieved; category/domain: Software Engineering Fundamentals.

  • medium
  • Google
  • Software Engineering Fundamentals
  • Software Engineer

Explain what happens when you run ls

Company: Google

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: medium

Interview Round: Technical Screen

In Linux, explain the **end-to-end flow** of what happens when a user types `ls` in a shell and presses Enter. Include: - What the shell does - How the executable is found and started - Key system calls / kernel filesystem interactions - How directory entries and file metadata are retrieved - What changes for common flags like `-l`, `-a`, and `-R`

Quick Answer: This question evaluates a candidate's understanding of process creation and execution, shell command resolution, kernel and VFS filesystem interactions, and how directory entries and file metadata are retrieved; category/domain: Software Engineering Fundamentals.

Related Interview Questions

  • Process Sharded Login Logs - Google (medium)
  • Design an ads retrieval service using a heap - Google (easy)
  • Design a waitlist manager - Google (easy)
  • Design an editable sequence with marker - Google (medium)
  • Design a Dormitory Room-Assignment System (OOD) - Google (medium)
|Home/Software Engineering Fundamentals/Google

Explain what happens when you run ls

Google logo
Google
Feb 1, 2026, 12:00 AM
mediumSoftware EngineerTechnical ScreenSoftware Engineering Fundamentals
6
0

In Linux, explain the end-to-end flow of what happens when a user types ls in a shell and presses Enter.

Include:

  • What the shell does
  • How the executable is found and started
  • Key system calls / kernel filesystem interactions
  • How directory entries and file metadata are retrieved
  • What changes for common flags like -l , -a , and -R
Loading comments...

Browse More Questions

More Software Engineering Fundamentals•More Google•More Software Engineer•Google Software Engineer•Google Software Engineering Fundamentals•Software Engineer Software Engineering Fundamentals

Write your answer

Your first approved answer each day earns 20 XP.

Sign in to write your answer.
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.