Can files on a drive be listed unsorted, ie: in the order they were written
Can files on a drive be listed unsorted, ie: in the order they were written
"tree -ifax --inodes /|sort -n" will list the files in the / filesystem in order
of the inode of the first extent of each file.
On Sun, 28 Feb 2021 23:46:22 -0500, David W. Hodgins wrote:
"tree -ifax --inodes /|sort -n" will list the files in the / filesystem in order
of the inode of the first extent of each file.
I would not think idnode order would be reliable in some cases.
Take the case where there is a lot of additions/deletions which causes
early used idones become free for later use.
On Mon, 01 Mar 2021 01:34:00 -0500, Bit Twister <BitTwister@mouse-potato.com> wrote:
On Sun, 28 Feb 2021 23:46:22 -0500, David W. Hodgins wrote:
"tree -ifax --inodes /|sort -n" will list the files in the / filesystem in order
of the inode of the first extent of each file.
I would not think idnode order would be reliable in some cases.
Take the case where there is a lot of additions/deletions which causes
early used idones become free for later use.
He asked for the order they were written. That can be interpreted as in the time order, or physical order. You're assuming time order, I assumed physical order. :-)
On Mon, 01 Mar 2021 02:47:49 -0500, David W. Hodgins wrote:
On Mon, 01 Mar 2021 01:34:00 -0500, Bit Twister
<BitTwister@mouse-potato.com> wrote:
On Sun, 28 Feb 2021 23:46:22 -0500, David W. Hodgins wrote:
"tree -ifax --inodes /|sort -n" will list the files in the /I would not think idnode order would be reliable in some cases.
filesystem in order of the inode of the first extent of each file.
Take the case where there is a lot of additions/deletions which causes
early used idones become free for later use.
He asked for the order they were written. That can be interpreted as in
the time order, or physical order. You're assuming time order, I
assumed physical order. :-)
I hear what you are saying, but you are not hearing what I said. :)
I posing the case of an earlier inode being reused by a more recent
created file because the old file have been deleted.
On Mon, 1 Mar 2021 15:12:18 +1100, faeychild wrote:
Can files on a drive be listed unsorted, ie: in the order they were written
Well, "ls --help | grep time" would suggest it is possible.
man ls gives a bit more information.
On Mon, 01 Mar 2021 02:47:49 -0500, David W. Hodgins wrote:
On Mon, 01 Mar 2021 01:34:00 -0500, Bit Twister <BitTwister@mouse-potato.com> wrote:
On Sun, 28 Feb 2021 23:46:22 -0500, David W. Hodgins wrote:
"tree -ifax --inodes /|sort -n" will list the files in the / filesystem in order
of the inode of the first extent of each file.
I would not think idnode order would be reliable in some cases.
Take the case where there is a lot of additions/deletions which causes
early used idones become free for later use.
He asked for the order they were written. That can be interpreted as in the >> time order, or physical order. You're assuming time order, I assumed physical
order. :-)
I hear what you are saying, but you are not hearing what I said. :)
I posing the case of an earlier inode being reused by a more recent
created file because the old file have been deleted.
Can files on a drive be listed unsorted, ie: in the order they were written
regards
On 1/3/21 3:12 pm, faeychild wrote:
Can files on a drive be listed unsorted, ie: in the order they were written >>
regards
I should have known that it would be deeper
I copy video files to a memory stick [fat32] in alpha order using Dolphin
On Tue, 2 Mar 2021 12:35:07 +1100, faeychild wrote:
On 1/3/21 3:12 pm, faeychild wrote:
Can files on a drive be listed unsorted, ie: in the order they were written >>>
regards
I should have known that it would be deeper
I copy video files to a memory stick [fat32] in alpha order using Dolphin
I do not use Dolphin but if it does not maintain the file date, you are
out of luck. If so, then I can suggest a script to rsync contents which
will retain date, Be sure to NOT use the --delete switch.
Dolphin retains 3 dates: Created, Modified, last Accessed. You can sort
by any one of the three. I suspect the OP wants Created.
On Tue, 02 Mar 2021 15:08:42 -0500, TJ <TJ@noneofyour.business> wrote:
Dolphin retains 3 dates: Created, Modified, last Accessed. You can sort
by any one of the three. I suspect the OP wants Created.
Have you tried it? The Created column is blank for all files on an ext4
file
system. That's because the created timestamp is not stored in the file system.
On 3/2/21 3:31 PM, David W. Hodgins wrote:
On Tue, 02 Mar 2021 15:08:42 -0500, TJ <TJ@noneofyour.business> wrote:I hadn't before you asked, but I have now. I won't argue about the filesystem, as you know far more about such things than I do, but... the created timestamp must be stored somewhere, because it worked.
Dolphin retains 3 dates: Created, Modified, last Accessed. You can sort
by any one of the three. I suspect the OP wants Created.
Have you tried it? The Created column is blank for all files on an
ext4 file
system. That's because the created timestamp is not stored in the file
system.
Dolphin can display the created information for each file, too. Find
that option under "View/show additional information."
TJ
Dolphin can display the created information for each file, too. Find
that option under "View/show additional information."
On Tue, 02 Mar 2021 19:21:47 -0500, TJ <TJ@noneofyour.business> wrote:
Dolphin can display the created information for each file, too. Find
that option under "View/show additional information."
It can display the created date when the file is on a file system type that stores it. Most linux file systems do not, so either the tool will display blanks, or in some cases will show the last modified date as both the last modified date and as the created date.
The inode (an entry in a table) info can be displayed using the stat command.
[dave@x3 ~]$ echo timstamptest >timestamptest
[dave@x3 ~]$ stat timestamptest
File: timestamptest
Size: 13 Blocks: 8 IO Block: 4096 regular file
Device: 812h/2066d Inode: 926381 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 500/ dave) Gid: ( 500/ dave)
Access: 2021-03-02 20:34:06.267594840 -0500
Modify: 2021-03-02 20:34:06.267594840 -0500
Change: 2021-03-02 20:34:06.267594840 -0500
Birth: 2021-03-02 20:34:06.267594840 -0500
Above, I've just created the file so all timestamps are set to the same value.
[dave@x3 ~]$ echo timstamptest2 >>timestamptest
[dave@x3 ~]$ stat timestamptest
File: timestamptest
Size: 27 Blocks: 8 IO Block: 4096 regular file
Device: 812h/2066d Inode: 926381 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 500/ dave) Gid: ( 500/ dave)
Access: 2021-03-02 20:34:06.267594840 -0500
Modify: 2021-03-02 20:34:35.803799810 -0500
Change: 2021-03-02 20:34:35.803799810 -0500
Birth: 2021-03-02 20:34:06.267594840 -0500
Above, I've changed the contents and the size so both Modify and Change
have
new values.
[dave@x3 ~]$ ln timestamptest timestamptest3
[dave@x3 ~]$ stat timestamptest
File: timestamptest
Size: 27 Blocks: 8 IO Block: 4096 regular file
Device: 812h/2066d Inode: 926381 Links: 2
Access: (0644/-rw-r--r--) Uid: ( 500/ dave) Gid: ( 500/ dave)
Access: 2021-03-02 20:34:06.267594840 -0500
Modify: 2021-03-02 20:34:35.803799810 -0500
Change: 2021-03-02 20:35:12.515054572 -0500
Birth: 2021-03-02 20:34:06.267594840 -0500
Above I've changed the number of links pointing to the inode, so the inode has been modified.
In all of the above cases the Birth (also called creation) timestamp displayed
is actually a copy of the access timestamp.
The stat command does this because the inode for each file in an
ext(2,3,4) file
system does not contain a field to store the Birth/Creation timestamp.
If I just access the file, ...
[dave@x3 ~]$ cat timestamptest
timstamptest
timstamptest2
[dave@x3 ~]$ stat timestamptest
File: timestamptest
Size: 27 Blocks: 8 IO Block: 4096 regular file
Device: 812h/2066d Inode: 926381 Links: 2
Access: (0644/-rw-r--r--) Uid: ( 500/ dave) Gid: ( 500/ dave)
Access: 2021-03-02 20:34:06.267594840 -0500
Modify: 2021-03-02 20:34:35.803799810 -0500
Change: 2021-03-02 20:35:12.515054572 -0500
Birth: 2021-03-02 20:34:06.267594840 -0500
Notice that the Birth date has changed again.
Regards, Dave Hodgins
I just accessed an image created in 2019, using Gwenview. Before viewing
the file, I checked the Properties using Dolphin, and the dates were all
the same, as you indicated would happen. After access, they had not
changed, and even after closing Dolphin and re-opening it, they still
hadn't changed.
But then I copied the file to another partition on another drive.
Viewing the properties of the copy, I see the modified and accessed
dates are still in 2019, but the created date is now today. Other image
files on the same destination drive are showing similarly-differing
dates. Most have three different dates.
Since I do not dispute what you are saying, my guess is that Dolphin is getting the information from somewhere other than the file system. The
file's metadata perhaps?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 482 |
Nodes: | 16 (0 / 16) |
Uptime: | 70:18:32 |
Calls: | 9,571 |
Calls today: | 2 |
Files: | 13,663 |
Messages: | 6,142,256 |