On Thu, Jan 16, 2020 at 11:20:10AM +0000, gritzmann wrote:

> Hi,
> 
> How do I change the birth time of a file? `touch -acm -d "1980-01-01 
> 00:00:00" myfile` changes only the access, modify and change times.
> 
> `stat myfile` returns `10 215746 -rw-r--r-- 1 me me 0 0 "JanĀ  1 00:00:00 
> 1980" "JanĀ  1 00:00:00 1980" "Jan 16 13:00:33 2020" 16384 0 0 myfile`
> 
> Thanks!
> 
> Sent with ProtonMail Secure Email.
> 

Change time != creation time. There is no such thing as creation time
in unix.

The change time (c_time in struct stat) cannot be explicitly set by
any API and is maintained by the kernel.

        -Otto

Reply via email to