Advertisement
Interview Question
Which Linux command quickly shows disk usage for all mounted filesystems in a human-readable format?
Key Points to Cover
- Use `df -h` to display disk usage per filesystem
- `-h` flag makes sizes human-readable
Evaluation Rubric
Mentions `df` command60% weight
Includes `-h` for readability40% weight
Hints
- 💡Think: "disk free".
Common Pitfalls to Avoid
- ⚠️Only stating `df` without the `-h` flag, which results in output in 1K blocks, making it difficult to read quickly.
- ⚠️Confusing `df` (disk free, for filesystems) with `du` (disk usage, for files and directories).
- ⚠️Failing to explain *why* the command is important beyond just stating what it does (e.g., for monitoring, capacity planning).
- ⚠️Not mentioning the specific benefits of the `-h` flag (i.e., making sizes human-readable like GB, MB).
- ⚠️Giving a one-word or very brief answer without elaborating on the functionality or practical use of the command.
Potential Follow-up Questions
- ❓How do you check inode usage?
- ❓What about `du` vs `df` differences?
Advertisement
Related Questions
Questions that share similar topics with this one
Find Top CPU Processes in Linux
Beginner📞 Phone Screen•1 min•Phone
Troubleshooting High Memory in Linux
Intermediate📞 Phone Screen•2 min•Phone
Linux File Permissions Basics
Beginner📞 Phone Screen•2 min•Phone
Bash Shebang & Execute Bit
Beginner📞 Phone Screen•1 min•Phone
systemd Service Basics
Beginner📞 Phone Screen•2 min•Phone