Server Disk Full? Find What Uses the Space With ChatGPT
Ask ChatGPT or Claude why your Linux server's disk is full: it runs df and du for you, finds big logs, caches and Docker images, and asks before deleting.
By Sandeep Kumar Saini, founder of Shellway · Published 3 Dec 2026 · Updated 3 Dec 2026
Short answer: connect your server to ChatGPT or Claude once, then ask: "Why is the disk on my server almost full? Show me the biggest folders and files, but don't delete anything." The AI runs df and du for you, explains what it finds, and suggests what is safe to clean.
Why a full disk is urgent
When the disk hits 100%, databases stop writing, logs stop, uploads fail and some services refuse to start. The usual causes are boring: log files that never rotate, old Docker images and build caches, package caches, forgotten backups and core dumps. Finding which one it is takes a few commands and some patience, which is exactly the part an AI assistant can do for you.
Step 1: connect the server once
- Sign up at Shellway and copy the one install command from your dashboard.
- Paste it on the server (Linux, also works on Windows and Mac). It installs a small app that connects outward only: no open ports, no SSH keys shared with the AI, no router setup.
- Add Shellway in ChatGPT (app directory) or Claude (custom connector). Full steps: run your Linux server from ChatGPT or Claude.
Step 2: ask the right question
Copy one of these into ChatGPT or Claude:
- "Check the disk on my server. Which file systems are over 80% full?"
- "Show the 15 biggest folders under / (stay on this file system). Don't delete anything."
- "Find files bigger than 500 MB and tell me what each one is."
- "How much space do Docker images, containers and build cache use?"
- "How big is the systemd journal, and how old is the oldest entry?"
Behind the scenes the AI uses commands like these (you can run them yourself too):
df -h # how full each file system is
sudo du -xh / --max-depth=2 2>/dev/null | sort -rh | head -20 # biggest folders
sudo find / -xdev -type f -size +500M -exec ls -lh {} + 2>/dev/null # big files
journalctl --disk-usage # size of the system journal
docker system df # Docker images, containers, cache
Step 3: clean up, with you in charge
Once you know the culprit, ask for a plan first: "Suggest what is safe to remove and how much space each step frees. Wait for my OK." Typical fixes:
- Old logs:
sudo journalctl --vacuum-time=14dkeeps two weeks of system logs. For app logs, set up logrotate instead of deleting by hand. - Package cache:
sudo apt clean(Debian/Ubuntu) orsudo dnf clean all(Fedora/RHEL). - Docker:
docker image pruneremoves dangling images;docker system pruneremoves more, so read what it lists before saying yes. - Old backups and dumps: move them off the server before deleting.
A deleted file that a running program still holds open keeps using space. If df still shows the disk full after a cleanup, ask: "Are there deleted files still held open by a process?" (sudo lsof +L1), and restart that service when it suits you.
Step 4: stop it happening again
- Ask the AI to write a small cron job that warns you when a disk passes 85%, and review it before it is installed.
- Ask it to check that logrotate covers your app logs.
- With several servers on one account (Pro covers 3 computers), ask once: "Check disk space on every server." Run one task on all your computers.
Stay safe while the AI looks around
- Start read-only. Turn on read-only mode on the server for the first week, so the AI can look but not change anything. Why read-only first.
- Ask before every change. Put "ask me before you delete, restart or edit anything" in your first message.
- Your rules live on the server. Read-only mode, allowed folders and blocked commands are set on the computer itself, so the AI cannot switch them off. Every action is logged.
- Know the limits. Shellway has not had an independent security audit yet, and folder limits cover file tools, not every command. Read the safety rules.
Common questions
Can ChatGPT really see my server's disk?
Only after you connect the server with Shellway, and only through the tools Shellway gives it: run commands, read and search files, see running programs. It works as the user the Shellway app runs as.
Will the AI delete files by itself?
Not if you say so, and not at all in read-only mode. Ask it to list and explain first, then approve each step.
Does this work from my phone?
Yes. ChatGPT and Claude on your phone use the same connection, so you can check a full disk from anywhere. Manage a server from your phone.
Try it on your own server: start the 7-day Pro trial, no card needed. Then 50 actions a day free on 1 computer, or paid plans from $5/month (₹499/month in India). Set up in about 2 minutes: how it works.