Junior — Middle
How can available free space on a disk be determined in a Linux system?
sobes.tech AI
Answer from AI
In Linux, the df command is commonly used to determine free disk space. It displays information about file systems, including total size, used space, and available space.
Example usage:
df -h
The -h option outputs sizes in a human-readable format (KB, MB, GB).
To find out the free space for a specific directory, you can specify the path:
df -h /home
You can also use the du command to estimate the size of specific files or folders, but for free disk space, df is the main tool.