On Tue, May 10, 2016 at 04:48:04PM +0300, Alex Peshkoff wrote: > On 05/10/2016 04:42 PM, Dimitry Sibiryakov wrote: > > 10.05.2016 15:37, Alex Peshkoff wrote: > >> I do: > >> cd /opt/firebird > >> mv conf conf2 > >> mv conf1 conf > >> > >> Is it enough? > > Won't it change timestamp of conf and any file inside of it? > > > > It will change timestamp of conf but not files inside it.
I guess it depends on what exactly you mean by "change timestamp". In the sense that "timestamp of [some path] is different from before", it most likely does change timestamps of both conf and its contents. In the sense that "file's timestamp (in that particular inode) changed", neither timestamp does change, as long as "timestamp" means mtime (the only mtime that is updated is of /opt/firebird). In general, if I have directory base/olddir and file base/olddir/file and rename olddir to newdir, only mtime of base is updated; ctime is updated for both base and base/newdir (compared to ctime of base/olddir). Michal Kubecek ------------------------------------------------------------------------------ Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition of MDM restrictions. Mobile Device Manager Plus allows you to control only the apps on BYO-devices by containerizing them, leaving personal data untouched! https://ad.doubleclick.net/ddm/clk/304595813;131938128;j Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel