It's very important to set correct time and date in Linux.various things only depend on this time zone. It's not a matter that you are using Linux server or Linux to your personal computer.it's always important to set the correct time on the server or on the clock.
Date Timezone in Linux from Command Line:
Even you disconnect your pc hardware its clock is still running currently. it's running because you are using a lithium battery in the modern computers.
To set the correct timezone in your system follow the given below code
Date Timezone in Linux from Command Line:
- Set date from the command line
- Set time from the command line
- Set time and date from the command line
- Linux check date from command line
- Will show you something like this:
Set correct clock in your personal hardware:
Even you disconnect your pc hardware its clock is still running currently. it's running because you are using a lithium battery in the modern computers.
- We'll see differences between hardware clock and system clock
- Will output something like this:
- Now check the system clock
- Will output something like this:
- Let's set the hardware clock to local time:
- If you want to set it to UTC time use:
Set the correct time zone:
To set the correct timezone in your system follow the given below code