Unix/Linux command to display time

KillerCharlie

Diamond Member
Aug 21, 2005
3,691
68
91
I'm using PuTTY to connect to a server... what's the command to see the machine's time?

The reason I ask is because I'm editing the files locally (on my computer) and compiling/running them on the server, but there's a time difference and sometimes the makefile doesn't want to update the files that I changed.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Just FYI, the time command is used to actually time another command. So if you type 'time ls' it'll print how long the command took to execute and how much of it's time was spent in the kernel and how much in the command itself.
 

Red and black

Member
Apr 14, 2005
152
0
0
BTW, the usual solution to time skew problems such as you describe is to have the machines in question run NTP.