Step 1: Install the smartmontools package with the command “sudo apt install smartmontools”.
sudo apt install smartmontools
Step 2: Run the command “sudo smartctl -t short -a /dev/sdX” (in place of sdX, use the name of your SSD). This will run a short test that takes approximately 2 minutes.
sudo smartctl -t short -a /dev/sdX
Step 3: When the test is completed, run the command “sudo smartctl -a /dev/sdX” to display the results.
sudo smartctl -a /dev/sdX