morphious66,
About previous security concern on the Curl link posted. As someone with 27+ years of working experience in the tech sector, I would personally never post a link to anything that is not a previously posted and tested CLI command / script. A quick search on Google will show this curl command and URL / script has been used by dozens of groups to test speeds of SD cards.
With all due respect to your years of experience, that is exactly what you did.
Your suggested command was (suitably obfuscated):
Code: Select all
curl https://raw.githubusercontent.com/randomeUser/randomProject/master/setup/benchmarks/randomScript.sh | sudo bash
Quite likely that is fine. It may well have been used by many and work well.
BUT DON'T DO THAT. Because you do not know if that random script does not get changed in the future.
By all means link to any script or other software. But we should not be encouraging people to habitually download and run random stuff off the net as root.
(Sorry for shouting. This is important)
Memory in C++ is a leaky abstraction .