Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Set Timestamp Using a Reference File with Linux Touch Command
#1


    Set Timestamp Using a Reference File with Linux Touch Command

   

The Linux touch command can also set a file’s access and modification time by reading the timestamp information from another file. For example, the following touch command with the -r option will scan the timestamp information from reference.txt and set these timestamp values to file_name.txt. Here’s an example of the command:

   
touch -r reference.txt file_name.txt
   
   

   

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)