21. Fix Inode Exhaustion Issue
Beginner Mode
Start your terminal to use beginner mode.
Scenario:
Your server cannot create new files. Commands like touch fail with "No space left on device" errors, but df -h shows plenty of free disk space. The filesystem has exhausted available inodes.
Task:
Save inode usage to /home/interview/inode_usage.txt, find which directory contains excessive files, save the problematic directory path to /home/interview/problem_directory.txt, clean up the files, and verify the fix.
Example
File: /home/interview/inode_usage.txt
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda1 6553600 6553600 0 100% /
/dev/sdb1 3276800 125000 3151800 4% /data
File: /home/interview/problem_directory.txt
/var/spool/postfix/maildrop
Terminal requires a larger screen
Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.
Linux Terminal Environment
Write and execute your solution in the terminal below.
Essential
Linux 0/29
AWS 0/10
Kubernetes 0/15
CI/CD 0/5
Networking 0/9
Need more practice in this area? Explore more questions →
DeutscheBank
Accenture
Coinbase
Adobe
EPAM
Twitch
Amazon
Kayak
Autodesk
Lyft
Revolut
RedHat
Bloomberg
Datadog
Palantir
TCS
HashiCorp
Google
GitHub
Apple
Cloudflare
Stripe
Microsoft
NVIDIA
GoDaddy
X
SAP
Spotify
Airbnb
Meta
Reddit
Yelp
Okta
Dropbox
Slack
ActivisionBlizzard
Zscaler
Uber
IBM
DeliveryHero
Robinhood
GitLab
Shopify
Samsung
Elastic
Twilio
Netflix
CrowdStrike
Ubisoft
Anthropic
Capital One
Splunk
Intel
AMD
Databricks