APURV
  • Home
  • Journey
  • Projects
  • Blogs
  • Interview
  • Exams
Resume
APURV

Building scalable, secure, and production-ready cloud infrastructure. Automation first.

NAVIGATION

HomeExperienceProjectsCertificationsSkills

TECH STACK

AWSGCPK8sCI/CDLinuxDocker

CONNECT

LinkedInGitHubEmailResume

© 2026 Apurv Gujjar. All rights reserved.
Apurv Gujjar
Apurv GujjarDevOps & Cloud Engineer
|Interview Documentation
Portfolio
Handbooks
🎯Linux🐙Git & GitHub🤖GitHub Actions🌐Networking☁AWS🛠Terraform🐳Docker☸Kubernetes📊Monitoring🛡DevSecOps💰Cost Optimization🚨Incident Scenarios👤HR & Behavioral☁GCP🐍Python
Interview DocumentationLinuxWhat happens internally when you run the `ls` command in Linux?
Back to all Linux questions
Q4

What happens internally when you run the `ls` command in Linux?

💬Answer
  1. Command Lookup: The shell resolves the binary location (usually /usr/bin/ls).
  2. Process Spawn: The shell calls fork() to clone itself and execve() to load the ls code into memory.
  3. Kernel Execution: The kernel executes the process and assigns virtual memory space.
  4. Filesystem Read: ls calls system routines (like getdents) requesting the directory contents from the kernel.
  5. Output Rendering: The kernel retrieves data blocks from the filesystem and outputs results to your terminal window.

Related Linux Questions

View All LinuxQuestions →
Q1

Explain what Linux is and why it is widely used in DevOps environments.

Q2

What is the Linux kernel and what role does it play in the operating system?

Q3

Explain the Linux filesystem hierarchy and the purpose of /etc, /var, /home, /tmp, and /usr.

Q5

What is the difference between Linux and UNIX?

Apurv Gujjar - DevOps & Cloud Engineer
Created by

Apurv Gujjar

DevOps & Cloud Engineer

Specialized in:DevOpsAWSGCPKubernetesTerraformDocker
View Portfolio