In Windows, I am used to modify directory dates, eg. of directories containing photos according the date when the first photo was taken; and then display a list of the directories sorted by the dates. In Ubuntu, Krusader can display the directories this way. I need to change the date (the "date of modifying") of a directory after I fill it with eg. the photos. How should I change it? Thanks
You can use
touch command with
-t option. This is from
NAME touch - change file timestamps SYNOPSIS touch [OPTION]... FILE... DESCRIPTION Update the access and modification times of each FILE to the current time. [...] -t STAMP use [[CC]YY]MMDDhhmm[.ss] instead of current time
touch -t 1312031429.30 /path/to/directory
will change the date modified for
Don't. It will just get changed as soon as anything in the directory changes anyhow ( like when a thumbnail is generated ). Instead, rename the directory so the date you want is in the name.