Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change Access Time using Linux Touch Command
#1

  Change Access Time using Linux Touch Command
 

Change Access Time using Linux Touch Command


 

To change the access time of a file to the current time, use the 'a' option followed by the file name with the touch command like in the following example:

 
touch -a file_name.txt
 

Then, check the access time with the following command:

 
ls -lu file_name.txt
  Screenshot of changing access time using the touch command
 

 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)