How to change the system time from shell

Some times we need to change the system time from shell cause we only have ssh access, so to do this we have first to have the shell access or open and the tipe this:

sudo date 032411002010.00

Where it means: March 24th 2010 11:00:00

The first 4 numbers are the month and the day (0324 – March 24th)

The follow 4 number are the time (1100  11:00 Hrs.)

The follow 4 number are the year (2010)

and the last 2 number are the seconds (00)

Advertisement
Explore posts in the same categories: Linux, server

Deja un comentario

Fill in your details below or click an icon to log in:

Logo de WordPress.com

You are commenting using your WordPress.com account. Log Out / Cambiar )

Twitter picture

You are commenting using your Twitter account. Log Out / Cambiar )

Facebook photo

You are commenting using your Facebook account. Log Out / Cambiar )

Connecting to %s


Seguir

Get every new post delivered to your Inbox.