Can you set a file's ctime to min(ctime, mtime)How can I change 'change' date of file?On touching a new file...

In the movie Harry Potter and the Order or the Phoenix, why didn't Mr. Filch succeed to open the Room of Requirement if it's what he needed?

Are any jet engines used in combat aircraft water cooled?

Is refreshing multiple times a test case for web applications?

How can glass marbles naturally occur in a desert?

A question about 'reptile and volatiles' to describe creatures

What is a "Genuine Geraldo interviewee"?

Is it true that control+alt+delete only became a thing because IBM would not build Bill Gates a computer with a task manager button?

Physics of Guitar frets and sound

Dereferencing a pointer in a for loop initializer creates a seg fault

Could one become a successful researcher by writing some really good papers while being outside academia?

Is this cheap "air conditioner" able to cool a room?

During the Space Shuttle Columbia Disaster of 2003, Why Did The Flight Director Say, "Lock the doors."?

Looking for a new job because of relocation - is it okay to tell the real reason?

Improving software when the author can see no need for improvement

Dropdowns & Chevrons for Right to Left languages

Replace data between quotes in a file

English - Acceptable use of parentheses in an author's name

SQL Minimum Row count

How to mark beverage cans in a cooler for a blind person?

In Pokémon Go, why does one of my Pikachu have an option to evolve, but another one doesn't?

Is TA-ing worth the opportunity cost?

How can I tell if a flight itinerary is fake?

Why couldn't soldiers sight their own weapons without officers' orders?

How can I re-use my password and still protect the password if it is exposed from one source?



Can you set a file's ctime to min(ctime, mtime)


How can I change 'change' date of file?On touching a new file why is mtime and ctime older than atime?How do I set a file's mtime in epoch format?change of atime, mtime or ctime of a file and of its ancestral dir?Is ctime on linux always greater or equal as mtime?Partition Errors and Remounts Read-Only when Accessing Specific FileIs the slash (/) part of the name of the Linux root directory?Delete files older than X days - mtime, ctime and atime doesn't workWhy does “touch -a” also set the ctime?find's mtime and ctime optionsCan you read an updated mtime, but when reading the contents they have yet to be updated?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















We know that the mtime of a file can be earlier than the ctime when you make copies of files (or, in my case, move files between file systems without successfully retaining timestamps).



I see many web search results on how to copy the ctime to the mtime (using touch), but not vice versa.



In the below example, I want the file WXBR.m4b to show it as created in 2014, not 2019. Can this be done?



$  stat WXBR.m4b
File: 'WXBR.m4b'
Size: 370988549 Blocks: 724592 IO Block: 4096 regular file
Device: 851h/2129d Inode: 13 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 1000/sarnobat) Gid: ( 1000/sarnobat)
Access: 2019-08-07 20:40:00.300216369 -0700
Modify: 2015-07-05 19:07:38.752375000 -0700
Change: 2019-08-08 15:37:05.511788978 -0700
Birth: -









share|improve this question

























  • Possible duplicate of How can I change 'change' date of file?

    – cas
    26 mins ago











  • The change time is not the creation time.

    – muru
    1 min ago


















0















We know that the mtime of a file can be earlier than the ctime when you make copies of files (or, in my case, move files between file systems without successfully retaining timestamps).



I see many web search results on how to copy the ctime to the mtime (using touch), but not vice versa.



In the below example, I want the file WXBR.m4b to show it as created in 2014, not 2019. Can this be done?



$  stat WXBR.m4b
File: 'WXBR.m4b'
Size: 370988549 Blocks: 724592 IO Block: 4096 regular file
Device: 851h/2129d Inode: 13 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 1000/sarnobat) Gid: ( 1000/sarnobat)
Access: 2019-08-07 20:40:00.300216369 -0700
Modify: 2015-07-05 19:07:38.752375000 -0700
Change: 2019-08-08 15:37:05.511788978 -0700
Birth: -









share|improve this question

























  • Possible duplicate of How can I change 'change' date of file?

    – cas
    26 mins ago











  • The change time is not the creation time.

    – muru
    1 min ago














0












0








0








We know that the mtime of a file can be earlier than the ctime when you make copies of files (or, in my case, move files between file systems without successfully retaining timestamps).



I see many web search results on how to copy the ctime to the mtime (using touch), but not vice versa.



In the below example, I want the file WXBR.m4b to show it as created in 2014, not 2019. Can this be done?



$  stat WXBR.m4b
File: 'WXBR.m4b'
Size: 370988549 Blocks: 724592 IO Block: 4096 regular file
Device: 851h/2129d Inode: 13 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 1000/sarnobat) Gid: ( 1000/sarnobat)
Access: 2019-08-07 20:40:00.300216369 -0700
Modify: 2015-07-05 19:07:38.752375000 -0700
Change: 2019-08-08 15:37:05.511788978 -0700
Birth: -









share|improve this question














We know that the mtime of a file can be earlier than the ctime when you make copies of files (or, in my case, move files between file systems without successfully retaining timestamps).



I see many web search results on how to copy the ctime to the mtime (using touch), but not vice versa.



In the below example, I want the file WXBR.m4b to show it as created in 2014, not 2019. Can this be done?



$  stat WXBR.m4b
File: 'WXBR.m4b'
Size: 370988549 Blocks: 724592 IO Block: 4096 regular file
Device: 851h/2129d Inode: 13 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 1000/sarnobat) Gid: ( 1000/sarnobat)
Access: 2019-08-07 20:40:00.300216369 -0700
Modify: 2015-07-05 19:07:38.752375000 -0700
Change: 2019-08-08 15:37:05.511788978 -0700
Birth: -






filesystems ext4 timestamps






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 1 hour ago









Sridhar SarnobatSridhar Sarnobat

6417 silver badges22 bronze badges




6417 silver badges22 bronze badges
















  • Possible duplicate of How can I change 'change' date of file?

    – cas
    26 mins ago











  • The change time is not the creation time.

    – muru
    1 min ago



















  • Possible duplicate of How can I change 'change' date of file?

    – cas
    26 mins ago











  • The change time is not the creation time.

    – muru
    1 min ago

















Possible duplicate of How can I change 'change' date of file?

– cas
26 mins ago





Possible duplicate of How can I change 'change' date of file?

– cas
26 mins ago













The change time is not the creation time.

– muru
1 min ago





The change time is not the creation time.

– muru
1 min ago










0






active

oldest

votes














Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f534830%2fcan-you-set-a-files-ctime-to-minctime-mtime%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f534830%2fcan-you-set-a-files-ctime-to-minctime-mtime%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...