Command DATE

Results 1 to 3 of 3
  1. #1
    Registered wallacekos is offline
    MemberRank
    Sep 2020 Join Date
    23Posts

    Command DATE

    Command DATE
    Hello ALL. \o/
    Is there any solution for not having to type the command date and always return the date 7 years ago? every time I start the server on a virtual machine? I use VBOX.


  2. #2
    Account Upgraded | Title Enabled! yokohiro is offline
    True MemberRank
    Jan 2007 Join Date
    NarniaLocation
    708Posts

    Re: Command DATE

    Quote Originally Posted by wallacekos View Post
    Hello ALL. \o/
    Is there any solution for not having to type the command date and always return the date 7 years ago? every time I start the server on a virtual machine? I use VBOX.
    put this in you start

    Code:
    timedatectl set-ntp 0date -s "$(date +'2016%m%d %H:%M')"
    sample:
    Click image for larger version. 

Name:	imagem_2020-10-20_134720.png 
Views:	18 
Size:	13.9 KB 
ID:	168434

    ps: change 2016 for 2013.

    enjoy

  3. #3
    Registered wallacekos is offline
    MemberRank
    Sep 2020 Join Date
    23Posts

    Re: Command DATE

    Quote Originally Posted by yokohiro View Post
    put this in you start

    Code:
    timedatectl set-ntp 0date -s "$(date +'2016%m%d %H:%M')"
    sample:
    Click image for larger version. 

Name:	imagem_2020-10-20_134720.png 
Views:	18 
Size:	13.9 KB 
ID:	168434

    ps: change 2016 for 2013.

    enjoy
    work fine... tank you, Yoko.



Advertisement