Mid

Monitoring Process Ownership

Difficulty: mid

Source: devops-interviews/devops-interview-questions by Alex Muradov

Answer

Scenario

The server is consuming excessive resources. This server is used by multiple teams with their own credentials (e.g. each team has a username dev-team, qa-team, ops-team etc).

Task

Identify which user is running the most number of processes (count) on the server, regardless of CPU or memory usage, and write that username to: /home/devops/solution.txt

Example

A single username written to the expected output file.

<username>

📹 Video Solution