Module 1 · Linux: the 20 everyday commands · Lesson 7 of 16
Disk space and the web: df, du, curl
See how full the disks are, find what is using the space, and talk to websites and APIs.
In this lesson · about 18 minutes
- Check free space per disk with df -h
- Find the biggest folders with du -sh
- Fetch pages, check headers and download files with curl
Key terms
Say the meaning to yourself, then tap a card to check.
Disk full? Use df, then du
A full disk is one of the most common reasons a server stops working: logs and databases can no longer be written. First df -h shows which disk is full (look at the Use% column). Then go to that disk and run du -sh * to see which folders are biggest, and repeat inside the biggest one until you find the cause, usually old logs or downloads.
curl and APIs
Programs talk to each other over the web using APIs: addresses that answer with data (often JSON) instead of a web page. curl https://api.example.com/status is how engineers check a service by hand. curl -I shows only the response headers, such as HTTP/2 200 (OK) or 404 (not found).
The practice terminal can reach example.com, api.example.com and files.example.com.
Practice terminal · missions
Free up space and check the shop's services
Missions 0 of 9
- 1Show how full each disk is, in human-friendly sizes.
- 2Show the total size of each item in your home folder.
- 3Look inside logs to see which part is big.
- 4Delete the logs/old folder to free the space.
- 5Fetch the home page of example.com.
- 6Check only the headers of example.com.
- 7Ask the shop's orders API for its status: https://api.example.com/status
- 8Download https://files.example.com/report.csv and save it as report.csv.
- 9Show what you downloaded.
Type a command and press Enter. Try help to list commands. Tab finishes names, ↑ repeats.
- ~ (/home/sam)you are here
- documents
- budget-2026.csv
- letters
- thank-you.txt
- meeting-notes.txt
- resume.pdf
- downloads
- installer.zip
- report-final-v2.pdf
- report-final.pdf
- logs
- access.log
- app.log
- old
- app-2026-09.log
- app-2026-10.log
- notes.txt
- photos
- beach.jpg
- cat.png
- trip
- day1.jpg
- day2.jpg
- projects
- website
- index.html
- style.css
- scripts
- backup.sh
- hello.shruns
- todo.md
This picture updates as you type. Changed items flash. runs = executable, a name badge = owned by someone else.
Check your understanding0 of 4 correct
Quiz score: 0 of 4
Written by Noviq Academy in its own words. The practice terminal is a simulation that runs in your browser: it imitates Linux (Ubuntu-style output) and Git closely, but it is not a real computer, and real output can differ slightly. The servers, people, web addresses and GitHub addresses in the labs are made up. Linux is a trademark of Linus Torvalds; Git and GitHub belong to their owners. Read-aloud uses your device's built-in voices.