![]() ![]() ![]() Size: 3 Blocks: 8 IO Block: 4096 regular file Verify the above change using stat command: $ stat tgs.txt It is not possible to set the date beyond January 18, 2038.įor example: $ touch -a -m -t 203801181205.09 tgs.txt If the value of the YY is between 00 and 37, the value of the CC digits is assumed to be 20. If the value of the YY is between 70 and 99, the value of the CC digits is assumed to be 19. ![]() YY – Specifies the last two digits of the year.CC – Specifies the first two digits of the year. ![]() The format for specifying -t is YY]MMDDhhmm Instead of taking the current time-stamp, you can explicitly specify the time using -t and -d options. Explicitly Setting Access and Modification time using -t and -d NOTE: It is not possible to change the ctime using touch command 4. The above method can be used to change the mtime of all obj files, when using make utility. You can change the modification time of a file using -m option. By default it will take the current system time and update the atime field.īefore touch command is executed: $ stat tgs.txt We can change the access time of a file using -a option. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |