Using Date Command

%date - This command prints current system date and time on the screen.
e.g.

Sat Apr  8 11:22:44 IST 2006

%date -d IST - gives display time described by STRING, not 'now'.

%date -f filename - gives date and time described by each line in file 'filename'.

%date -r filename - gives last modification time of that file 'filename'.

%date -u - gives Coordinated Universal Time.

Back to Linux Tips