Tag Info

New answers tagged

0

How can i specifying which data i wanted to be deleted forexample that end with. Jpg?????


1

ctime, or status change time, refers to the time when the file metadata has changed. For example, $ ls -ltc under Linux will sort by and show the time of the last modification of file status information. To get a little deeper, ctime is the inode reported time since data blocks AND/OR the file metadata has changed. Changes in file metadata can refer here to ...


1

It does show the timestamp (with nanoseconds precision) but in hex; it's the field after crtime:, e.g. in your output 0x55b65ebc:970fe7cc. The part after the colon is the nanoseconds. This article gives more details and explains how to calculate the timestamp/nanoseconds. So, e.g. to convert the hex values to a timestamp a la stat you could run: date -d ...


2

It looks like debugfs does not yet support printing out the sub-second portion (the upper 30 bits of i_xtime_extra) of timestamps in its asctime-based format. From http://git.kernel.org/cgit/fs/ext2/e2fsprogs.git/tree/debugfs/debugfs.c : if (is_large_inode && large_inode->i_extra_isize >= 24) { fprintf(out, "%s ctime: 0x%08x:%08x -- ...


6

When you run emacs it creates a backup file, int his case test.txt~. If there was already a file with that name I suspect it deletes it and creates a new one. That new file creation is modifying the directory, and thus updating its modified and changed times. If you were, instead, to say echo new line >> blah.txt you would not be creating any extra ...


4

rsync --size-only --times (or any other option that includes those, such as rsync --size-only --archive) does what you want. Basically, --size-only is intended for when you switch from a sync method which doesn't sync timestamps. It will transfer files that differ in size, and other than that, just transfer metadata (mtime, permissions, etc.). Note also ...


0

With zsh: setopt extendedglob print -rl -- **/file.php(.om:h) .om sorts the selected files by mtime and :h removes the trailing path component. If you want to list mtimes too, you could use zstat: zmodload zsh/stat for f (**/file.php(.om)) printf '%s %s\t%s\n' $(zstat -F '%d-%b-%Y %T' +mtime -- $f) ${f:h}


3

Your Build Script Method If you want to keep to the "bash build method", then you are probably best off "touching" a file (touch lastbuild) when the build script is ran and completes the build. In addition the build script could then look for the file generated by touch (if it doesn't exist, assume a build is needed), or if it exists use find to see if any ...



Top 50 recent answers are included