Managing File Timestamps and Generating Fixed-Size Files in Linux

Setting File Modification Time The stat command displays detailed timestamp information for a file: stat /opt/test.conf To create a file or update its modification time, use touch with the -m and -d options: # Create or update modification time to July 7, 2020 touch -m -d "2020-07-07 00:00" /opt/abc.txt If the file doesn’t exist, it ...

Posted on Mon, 14 Sep 2026 16:49:46 +0000 by ChetUbetcha