perbas.blogg.se

Debian 9 find files by date
Debian 9 find files by date











Copy the Time-stamp from Another File using -r You can also use a string to change the timeĪnother example: $ touch -d " 12:12:12.000000000 +0530" tgs.txtįor developers, touch command will be really helpful when you are working with Makefiles 5. 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.

debian 9 find files by date

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.













Debian 9 find files by date