-
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user