2
votes
1answer
176 views

write pc uptime in a file in shutdown

I need to log PC uptime. How I can do this? I use uptime for this and I will when ubuntu is shutdown write this command output in a file.