How Do I Change the Date in Linux?
Contents

How do I change the date format in Linux?

To format date in DD-MM-YYYY format, use the command date +%d-%m-%Y or printf “%(%d-%m-%Y)Tn” $EPOCHSECONDS .

How do you change date and time in Unix?

The date command under UNIX displays date and time. You can use the same command set date and time. You must be the super-user (root) to change the date and time on Unix like operating systems. The date command shows the date and time read from the kernel clock.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest