Junior — Middle
What methods can be used to determine the amount of disk space occupied on a server?
sobes.tech AI
Answer from AI
To determine the amount of disk space occupied on a server, several methods can be used:
- The
dfcommand — shows free and used space on file systems.
df -h
- The `du` command — estimates the size of specific directories and files.
```bash
du -sh /path/to/directory
- Monitoring utilities, such as
ncdu— an interactive disk usage viewer. - In systems with a graphical interface, built-in disk analysis tools can be used.
These methods allow quickly understanding which folders occupy a lot of space and how much free space remains on the server.