HF RL Explorer

Task: Check Free Disk Space for Current Partition in Bash

Task: Check Free Disk Space for Current Partition in Bash: a task in Terminal-Lego-15k (Harbor dataset). Write a Bash script that reports the available (free) disk space in kilobytes for the partition where a specified directory resides. The script must work correctly regardless of how df formats…

The task

Write a Bash script that reports the available (free) disk space in kilobytes for the partition where a specified directory resides. The script must work correctly regardless of how `df` formats its output (e.g., when long mount point names cause line wrapping).

Part of PrimeIntellect/Terminal-Lego-15k.