My Board
Change Timestamp Using a Symbolic Link with Linux Touch Command - Printable Version

+- My Board (https://ellohost.com/forum)
+-- Forum: Tutoriel EN (https://ellohost.com/forum/forumdisplay.php?fid=8)
+--- Forum: Others (https://ellohost.com/forum/forumdisplay.php?fid=20)
+--- Thread: Change Timestamp Using a Symbolic Link with Linux Touch Command (/showthread.php?tid=752)



Change Timestamp Using a Symbolic Link with Linux Touch Command - aaron - 09-08-2023



    Change Timestamp Using a Symbolic Link with Linux Touch Command

   

When you use a symbolically linked file name with the Linux touch command, the timestamp information for the original file, that was pointed by the link file, gets modified. To change the access and modification time to the current time for a symbolically linked file, use the -h option:

   
touch -h SymbolicLinkFile