By Hùng Nờ Đê


2019-06-12 07:43:41 8 Comments

On Ubuntu , i can set time format use GUI(12h or 24h). Then, i want to check this setting use terminal, how to do it. Somebody help me

1 comments

@Ishara Lakshitha 2019-06-12 08:10:52

...requires a different command:

12-hour:

dconf write /org/mate/panel/objects/clock/prefs/format "'12-hour'"

and, as one would expect, 24-hour:

 dconf write /org/mate/panel/objects/clock/prefs/format "'24-hour'"

I think this will do okay to check the time

 $ date

to check the date

 # timedatectl or # timedatectl  status

To check CMOS Time

  # hwclock   # hwclock –systohc

@jww 2019-06-12 08:22:02

He stated he knows how to change it. He needs to know how to check it.

@Hùng Nờ Đê 2019-06-16 03:26:37

Yeah, thank you very much ! i used dconf to read clock-format

Related Questions

Sponsored Content

38 Answered Questions

[SOLVED] How to print colored text in terminal in Python?

13 Answered Questions

[SOLVED] Dude, where's my php.ini? (server config)

  • 2011-12-30 22:20:06
  • necromancer
  • 729384 View
  • 808 Score
  • 13 Answer
  • Tags:   php linux php-ini

42 Answered Questions

[SOLVED] How do I find all files containing specific text on Linux?

18 Answered Questions

[SOLVED] How to symlink a file in Linux?

  • 2009-12-23 09:50:39
  • chrissygormley
  • 1913147 View
  • 1786 Score
  • 18 Answer
  • Tags:   linux symlink

24 Answered Questions

[SOLVED] How to change the output color of echo in Linux

16 Answered Questions

14 Answered Questions

21 Answered Questions

[SOLVED] How to permanently set $PATH on Linux/Unix?

  • 2013-02-01 00:57:08
  • Click Upvote
  • 1368614 View
  • 753 Score
  • 21 Answer
  • Tags:   linux bash unix path zsh

4 Answered Questions

[SOLVED] How do I delete an exported environment variable?

2 Answered Questions

Sponsored Content