Implement the Linux cp Command, Then Explain Its OS and C++ Internals

Read the full interview experience this question came from →

Quick Overview

A low-level engineering exercise to implement the Linux cp command in C++ and then explain what happens beneath it. It tests system calls, short writes and error handling, the page cache and kernel-assisted copying, and RAII-based management of file descriptors.

Implement the Linux cp Command, Then Explain Its OS and C++ Internals

Company: Microsoft

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: medium

Interview Round: Onsite

Overview: A low-level engineering exercise to implement the Linux cp command in C++ and then explain what happens beneath it. It tests system calls, short writes and error handling, the page cache and kernel-assisted copying, and RAII-based management of file descriptors.

Read the full Microsoft Software Engineer interview experience this question came from

Microsoft logo
Microsoft
Sep 6, 2026
mediumSoftware EngineerOnsiteSoftware Engineering Fundamentals
4
0
Loading...