If my Unix machine is set to IST timezone, how can I get the current GMT time?
You can use the -u
option of date command:
date -u
-u Display (or set) the date in Greenwich Mean Time (GMT-universal time), bypassing the normal conversion to (or from) local time.