Interview Questions/Phone Screen/Check Disk Space in Linux
BeginnerPhone
1 min

Check Disk Space in Linux

LinuxSystem Administration
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".
Potential Follow-up Questions
  • How do you check inode usage?
  • What about `du` vs `df` differences?
Advertisement