UNIX Command Example: Display File Last Modification Date Time in Seconds

UNIX Command Example: Display File Last Modification Date Time in Seconds

Logon to UNIX command prompt then copy & past the bellow code to get the desired result:

   date -r test.txt +%s
   Here "date -r" is the command to Display File Last Modification Date Time in Seconds
   "test.txt" is the sample file
   & "+%s" is to Display Date Time Information in Seconds
   If everything went well you should get some interesting result as follows:

UNIX Command Example: Display File Last Modification Date Time in Seconds - Output in the UNIX command prompt

No comments:

Post a Comment

leave your comments here..