Date/Time management in Linux
2 min readSep 11, 2023
In Linux, time is managed in two ways: system time and hardware time.
System Time
System time refers to the current date and time as maintained and used.by the operating system (OS) and software running on a computer.
- It is used by applications and services to timestamp events, create logs, schedule tasks, and for various time-dependent operations.
- The system time can be easily adjusted or synchronized by the user or administrator.
- Changes to system time typically do not require superuser (root) privileges.
we can check time in linux using date cmd and set time by -s.
we can also date and time with filters
we can use Epoch Time (Epoch Converter) %s
A Unix timestamp represents the number of seconds that have elapsed since January 1, 1970, at 00:00:00 UTC (Coordinated Universal Time).
Hardware Time
- Hardware time, also known as the hardware clock or RTC (Real-Time Clock), is a low-level timekeeping device built into the computer’s motherboard or as a separate hardware component.
- The hardware time is independent of the operating system and runs even when the computer is powered off.
- It maintains the time in a simple battery-backed clock circuit.
- The hardware time is used mainly during the boot process to provide the initial system time before the OS takes over.
- Your hardware time may be incorrect when the CMOS battery is weak.
we can set our hardware time using cmd hwclock — set
….
Thank you !!
….
….
….
For more stuff like this follow: