I have two Linux (CentOS 6.0) machines over here and I need to add (or remove) 5 seconds to the current date time. In the end, both my machines would have a gap of 5 seconds (on
You can add 5 seconds to the current time in one command using date -s "5 seconds".
date -s "5 seconds"