![]() ![]() To covert the Epoc time to human readable date, we can use date command as follows: log]$ date Apr 1 13:52: Now, Lets dive deep and get to know the date options and Demonstration practical examples in this tutorial:Īnother Important Option is -d or –date=”String” which can display the time describedīy running the date command, we get an elaborate time and date format along with the TimeZone information. The format is month of the Year(mm),day of the month(dd),Hour of the day(HH),minute of the Hour(MM) and the Year(yyyy),and the Seconds of the minute(.SS) Wed Apr 1 13:52: $ sudo date mmddHHMMyyyy.SS The date can also be setup in shot hand notation as follows,but it is more cryptic log]$ sudo date 040113522020.50 How to set the system date in Linux using date command? log]$ sudo date -s '13:52:59 UTC' Now lets examine some of the most useful options that comes with the date command.įirstly date command along with -s or -set option can take for following format to set the new system time and date. Lets run date command and examine the output. Linux date command can also be used to set the system date and it requires the root permission. ![]() Date Command in Linux is very extensive and dynamic, provides very rich date formatting and is greatly customizable for working with scripts which depend on time based invocations. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |