Set or Change the Date and Time on FreeBSD

If you ever need to set or change the time on a FreeBSD (JUNOS) box, here’s how: Show the current date Command:


Set the date to the desired time Command: (yymmddhhmmss)

Date Output Afterward:

Change the Date and Time in Ubuntu

If you’re not using NTP servers or your you’re running Ubuntu in a VM, you’ll notice that you have to play around with the date or it’ll be a little off every once and awhile. You can change the date in Ubuntu/linux with the “date” command: The syntax is: date MonthDayHourMinuteYear.Seconds sudo date 062117462011