Results 1 to 5 of 5

Thread: [SOLVED] Continuously show date and time using CLI

  1. #1
    Join Date
    Nov 2005
    Location
    Lincolnshire, UK
    Beans
    1,461
    Distro
    Ubuntu 10.04 Lucid Lynx

    [SOLVED] Continuously show date and time using CLI

    The CLI "date" command displays the current date and time and then terminates the process.

    Is it possible to show the current date and time in "real time". i.e. continuously updating until manually terminated?

    ps. I am looking for a CLI solution - I know that this is displayed on the panel.

  2. #2
    Join Date
    Apr 2007
    Location
    Netherlands
    Beans
    226
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Continuously show date and time using CLI

    Code:
    watch date

  3. #3
    Join Date
    Nov 2005
    Location
    Lincolnshire, UK
    Beans
    1,461
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Continuously show date and time using CLI

    Many thanks for that luctor. I knew there had to be a way.

    "watch" is a new one to me but it could be very useful!

  4. #4
    Join Date
    Mar 2008
    Location
    England
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Continuously show date and time using CLI

    If you want a clock you can see while doing other tasks in the terminal, try this page: http://www.tectonic.co.za/?p=2076

  5. #5
    Join Date
    Nov 2005
    Location
    Lincolnshire, UK
    Beans
    1,461
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Continuously show date and time using CLI

    Thanks KeyserSoze93 - it's always handy to know different methods.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •