To view the total amount of data written on an SSD over its life time run the following command on the terminal
sudo smartctl -A /dev/sda | awk '/^241/ { print "TBW: "($10 * 512) * 1.0e-12, "TB" } '
Make sure to change [c]/dev/sda[/c] accordingly
Make sure you have [c]smartmontools[/c] installed
sudo pacman -S smartmontools ## arch and manjaro
sudo apt install smartmontools ##debian and ubuntu
sudo dnf install smartmontools #fedora and centos