This commit is contained in:
2025-10-11 22:59:44 +02:00
parent 8155064b4a
commit d9ef125a98
3 changed files with 22 additions and 15 deletions

View File

@@ -1,26 +1,27 @@
# Ubuntu 24.04: Change timezone
# Show time and date
## Changing Timezone via CLI (command line interface)
Use the `date` command to se time and date.
### Enter the following command:
The command can take parameters to select what information to display.
Find your Timezone:
To see only date, use `date ""`
Here,
`timedatectl`
%H: Used to print hours in 24hr format
%M: Shows minutes
%S: Prints seconds
%d/%m/%y: Shows date, time, and year respectively.
And if you want a 12hrs clock, you can use the following:
### List timezones
`timedatectl list-timezones`
## Ubuntu 24.04: Change timezone
### Find timezone you with to seet.
### Changing Timezone via CLI (command line interface)
`timedatectl list-timezones | grep Oslo`
### Set New Timezone
Apply the change by setting your system to the new timezone.
`$ sudo timedatectl set-timezone Europe/Oslo`
- Find your Timezone: `timedatectl`
- List timezones: `timedatectl list-timezones`
- Find timezone you with to set: `timedatectl list-timezones | grep Oslo`
- Set New Timezone: `sudo timedatectl set-timezone Europe/Oslo`
### Verify timezone settings