Skip to content

nerryc/mac-total-bytes-written

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mac-total-bytes-written

A Python script that reads the total bytes written to your Mac's SSD and displays it in terabytes (TB). Useful for tracking drive wear over time.

Requirements

brew install smartmontools

Usage

git clone https://github.com/nerryc/mac-total-bytes-written.git
cd mac-total-bytes-written
python3 main.py

Example output

Data Units Written: 1,234,567 units, which is approximately 12.34 TB

Notes

  • Reads from /dev/disk0 by default — edit main.py if your SSD is at a different path
  • Uses smartctl -A under the hood; requires no root on most Macs but may prompt for permissions on some systems

License

MIT — see LICENSE.

About

Python script to get the TBW and displayed as TB.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages