Tell me, please, which team should I use to change the time? The date command changes both the date and time, and I need only the time to change ... I need it for the laboratory work of the "Unix team".

    1 answer 1

    To change only the time, use the same date command in the format

    date +%T -s "hh:mm:ss" 

    where hh - hours, mm - minutes, ss - seconds. For example:

     date +%T -s "03:30:00" 

    - set the time at half past three at night.

    • Thank you so much - alexl1720p
    • I do not know why this is ... - Denis Kotlyarov