Linux has a beautiful code which provides the PC can close itself at a specific time which is determine by the user. :)
To do this use the command given the next line:
sudo shutdown -h x
here x is the time with unit of minutes.
Read More
To do this use the command given the next line:
sudo shutdown -h x
here x is the time with unit of minutes.