Systems Administrator Interview Question

A Linux server's root filesystem is full and an application has stopped. What do you do?

What the interviewer is probing, how to structure your answer, and a spoken example you can adapt.

Quick answer

Confirm with df, and check inodes with df -i, because running out of inodes looks the same. Find what is using space with du, working down from the top level, and check the usual suspects: logs, core dumps, old kernels, package caches and temporary files. If df and du disagree, a deleted file is still held open by a process, which lsof can find. Free space safely, restart the application, then fix the cause.

Why interviewers ask this

A full disk is one of the most common Linux incidents, and the interviewer wants a calm, methodical response that restores service without making things worse. They listen for checking inodes as well as blocks, finding the real consumer, and the classic trap of deleted files still held open. Fixing the root cause afterwards, through log rotation, alerting and capacity planning, shows you think beyond the immediate firefight.

How to structure your answer

  • Confirm the problem with df, including inodes.
  • Find what is using the space with du.
  • Handle deleted but open files and free space safely.
  • Restore the service and fix the underlying cause.

Example answer

Spoken example, first person

First I confirm it with df, and I also check inodes, because a filesystem can run out of inodes with plenty of space left, and the symptoms look identical. Then I find what is using the space, running du from the top level and drilling into the largest directories rather than guessing. The usual suspects are logs under /var/log, core dumps, old kernels, package caches and forgotten files in /tmp or home directories. I am careful about what I delete. For a huge active log file I truncate it rather than removing it, because if a process still holds a deleted file open, the space is not freed. That is also the classic mystery when df says the disk is full but du cannot find the files, so I use lsof to list deleted files still held open, and restarting that process releases the space. Once there is room, I restart the application and check it is healthy. Then the real fix: proper log rotation, a cap on the system journal, and an alert at eighty per cent so we hear about it days before it fills.

Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.

See how it works

Follow-up questions to expect

  • Why might df and du report different usage?
  • What would you do if the disk filled up again within an hour?
  • How would you handle a server that has run out of inodes?

Related systems administrator questions

Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.

Predict my questions

Rehearse the hard questions before they are asked

Practise with a live copilot, then walk in ready. A $29 Session Pass gets you through the interview with no subscription and no lock-in.

Get GhostPilot