Linux Command Line (30) Time and Date pt1

Опубликовано: 22 Октябрь 2024
на канале: MichaelsTechTutorials
2,650
60

To see the computers date and time, we can type "date". We can also see the date in universal time with "date -u" We also see future and past dates and times.

The date and time can be formatted many different ways, looking at the man page a few examples are chosen to show different ways to the date and time can be formatted. We can also add custom text in with the custom date formatting. A customized formatted date would be:
date +"Today is %A %Y/%m%d"

We can see the time in a different timezone by adding the timezone before the date with TZ equals and then the date command:
TZ="America/Los_Angeles" date %T

See the complete LCL playlist at:    • Linux Command Line  (01) What Is The ...  

Website link:
https://thefrugalcomputerguy.com/linu...