You get a bonus - 1 coin for daily activity. Now you have 1 coin

Date, Time, and Time Zone in Debian and Ubuntu

Practice



You can view the current time with the command:

$ date

You can set the time with the command:

# date --set="22:55:00"
// sets the current time to 22:55:00
# date --set="01/20/2011"
// sets the date to 01/20/2011 and time to 00:00:00
# date --set="01/20/2011 22:55:00"
// sets the date to 01/20/2011 and time to 22:55:00

As you can see, the date is specified in the American-style month/day/year format

You can change the time zone with the command:

# dpkg-reconfigure tzdata
created: 2017-05-10
updated: 2026-03-10
386



Was this answer useful?
Choose a quick rating so we can improve the next answer for you.
How satisfied are you?


Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "LINUX operating system"

Terms: LINUX operating system