My laptop turned off by itself

hello, I have had this laptop for almost a year now and this isn’t the first time it forced shut down or restarted by itself. Does it have something to do with the OS?

Something that would help us a lot to understand the problem would be this:

  1. Open the application called ‘Terminal’
  2. In this application run the command:


  1. The above command will create a file with the information of your system (example: eos-diagnostic-160614_111731_UTC + 0100.txt); Send us this file so we can analyze and see a possible solution