Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change Access Time Without Creating a New File Using Linux Touch Command
#1

  Change Access Time Without Creating a New File
 

Change Access Time Without Creating a New File



 

In some situations, you want to change an existing file’s access and modification time to the current time without actually creating a new one. To do that, use the c option followed by the file name with the touch command:


 
touch -c new_file.txt

 

 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)