Freebsd how do you set the time?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 4Pics
    Confirmed User
    • Dec 2001
    • 7952

    #1

    Freebsd how do you set the time?

    Someone know how you adjust the date/time on your freebsd server?
  • Jon2
    So Fucking Banned
    • Aug 2001
    • 2875

    #2
    the command is time

    time help

    Jon

    Comment

    • hive
      Worker Bee
      • Apr 2003
      • 90

      #3
      /usr/sbin/ntpdate clock.isc.org

      Timezone modification can be done with the following steps.
      /stand/sysinstall
      | -- [ Configure ]
      |--[ Time Zone ]

      oO..\/
      peace

      Comment

      • hive
        Worker Bee
        • Apr 2003
        • 90

        #4
        Originally posted by qualitythumbs
        the command is time

        time help

        Jon
        actually time is for command execution timing in freebsd.

        eg...
        $ time perl -e 'for(0..10000000){}'

        real 0m1.425s
        user 0m1.394s
        sys 0m0.009s

        Comment

        • Trixel
          Registered User
          • Nov 2002
          • 14

          #5
          ntpdate <ntp server>


          cd /usr/share/zoneinfo
          ls

          pick your time zone

          cp timezonefile /etc/localtime

          or something like:

          "date 0307080106"

          Would set it to July 8th, 2003 1:06am

          03 = 2003
          07 = July
          08 = Day
          0106 = 24 hour time

          Comment

          • hibbidiji
            Confirmed User
            • Sep 2002
            • 208

            #6
            hehe.. ok I GOTTA SAY IT. I LOVE Bsd, and I REALLY dont like windows servers... REALLY. But jesus folks, why does it take SO MUCH to set the time in bsd? really now! really, on that note, I am sysadmin for 9 linux / freebsd servers. I REALLY like BSD, but holy shit... hehe

            Andrew
            ---------------

            Comment

            • lawked
              Confirmed User
              • Apr 2003
              • 354

              #7
              > date
              Tue Jul 8 02:44:05 MDT 2003

              Note the Timezone.

              > ntpdate ntp.nasa.gov

              If your timezone is not set properly, then

              > /stand/sysinstall

              Configure->Time zone ->

              then
              > ntpdate ntp.nasa.gov

              Too easy.

              Comment

              Working...