PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|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 waitlist system with top/bottom K - Google (medium)
Google logo
Google
Feb 1, 2026, 12:00 AM
Software Engineer
Technical Screen
Software Engineering Fundamentals
3
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

Solution

Show

Comments (0)

Sign in to leave a comment

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
PracHub

Master your tech interviews with 7,500+ 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
  • Compare Platforms
  • Discord Community

Support

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

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.