avatar
how to change time of file# Unix - 噫吁兮,危乎高哉
a*n
1
say, if the file is created now, I want to change the
time to 1 month ago in unix.
How?
avatar
su
2
There is a "utime" system call that can do this.

【在 a**n 的大作中提到】
: say, if the file is created now, I want to change the
: time to 1 month ago in unix.
: How?

avatar
su
3
There is a "utime" system call that can do this.

【在 a**n 的大作中提到】
: say, if the file is created now, I want to change the
: time to 1 month ago in unix.
: How?

avatar
j*y
4
just use 'touch'.

【在 a**n 的大作中提到】
: say, if the file is created now, I want to change the
: time to 1 month ago in unix.
: How?

avatar
a*i
5
no, you can't change the creation time of a file in UNIX. It is not even
recorded in file stats anyhow.

【在 a**n 的大作中提到】
: say, if the file is created now, I want to change the
: time to 1 month ago in unix.
: How?

avatar
j*y
6
It's true that no creation time is recorded to any file under UNIX. But I
think what he's talking about should be change time or modify time.

【在 a*****i 的大作中提到】
: no, you can't change the creation time of a file in UNIX. It is not even
: recorded in file stats anyhow.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。