This Python script retrieves the total number of data units written to an SSD and displays the value in terabytes (TB). It uses the smartctl command from the smartmontools package to fetch the data.
- Ensure
smartmontoolsis installed on your system. You can install it using:brew install smartmontools
- Clone this repository:
git clone https://github.com/nerryc/mac-total-bytes-written.git
- Navigate to the project directory:
cd mac-total-bytes-written - Run the script:
python3 main.py
Data Units Written: 1,234,567 units, which is approximately 12.34 TB
This project is licensed under the MIT License. See the LICENSE file for details.