My current charger is broken, but I found another charger which kind of fits, but im suspicious if it will harm my laptops battery in the long run, what commands can I run or what can I look at to see if a new type of charger is harming a laptops battery? as this isnt usb-c or anything really official.


As others have said, this is something software can’t do, so there’s no linux tools for it. There is charge profiles which may help in the long run, similar than what your smartphone likely has. But that absolutely requires that your charger outputs the voltage and current your laptop requires.
If the physical connector ‘kind of fits’ I personally wouldn’t use it, even if the voltage was correct as it’ll likely damage the connector on the motherboard and then you’re looking for a much more complex repair. Laptop power bricks are pretty cheap.