How do I update the os from the img file through linux?

In case you use Etcher:

1 Download Etcher and ClockworkOS Image.
2. Start Etcher and select Image and destination.
3. Start the process in Etcher. It will tell you when it’s finished.

Be careful when choosing the destination. The selected device will be wiped completely in order for the process to start.