Results 1 to 6 of 6

Thread: Change time from command line???

  1. #1
    Join Date
    Oct 2010
    Beans
    62

    Question Change time from command line???

    I decided to install Chromium OS to my dad's netbook, and it works perfectly. The only problem is that i can't change the time. Luckily, I can access a command line by pressing CTRL+ALT+T. So maybe I can change it from the command line.

    Can anyone help? What command changes the time?

  2. #2
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Change time from command line???

    usually we right click on date/time in tray to set prefs

  3. #3
    Join Date
    Mar 2010
    Location
    /home
    Beans
    9,416
    Distro
    Xubuntu

    Re: Change time from command line???

    Hi,
    I think you can do it like this:
    Code:
    date --set="2002-6-29 11:59 AM"
    Obviously, this is just an example, you need to set the correct date and time on your system.

  4. #4
    Join Date
    Jul 2006
    Location
    London, UK
    Beans
    818
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Change time from command line???

    The date command shows, or sets the time from the terminal.
    You'll need to be root to set the time.
    See man date
    eg sudo date --utc 05141742 2011 .00

  5. #5
    Join Date
    Oct 2010
    Beans
    62

    Talking Re: Change time from command line???

    Thanks a lot! It turns out I forgot to run it as administrator. Also, you have to log out and back in again to make the clock in the browser to show the time correctly.

    I guess that's why Chrome OS isn't out yet...

    For the record, I did this:
    Code:
    sudo date --set "15 MAY 2011 1:40 PM"
    Thanks again!

  6. #6
    Join Date
    Mar 2010
    Location
    /home
    Beans
    9,416
    Distro
    Xubuntu

    Re: Change time from command line???

    Nice one! Glad you got it sorted out

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
  •