In article ,
The Natural Philosopher writes:
> On 14/05/18 08:50, Richard Kettlewell wrote:
>> The Natural Philosopher writes:
>>> On 13/05/18 01:07, Henri Derksen wrote:
>>>> can you tell me wich three time stamps there are?,
>>>> and how I can switch of that "atime" one in Raspbian Linux?
>>>> thanks.
>>>>
>>> mtime atime and IIRC ctime
>>>
>>> https://www.unixtutorial.org/2008/04/atime-ctime-mtime-in-unix-filesystems/
>>>
>>> last modfied, last accessed and when created.
>> ^^^^^^^^^^^^^^
>>
>> ctime is not creation time. Read your own link l-)
>>
> LOL.
>
> Well Ive always used to to determine when a file was created as its rare
> to change permissions and that's my excuse..
Create time is called crtime or birth on various filesystems.
POSIX doesn't require a filesystem to store it and there's no
POSIX system call to retrieve it.
ext4 (and some other filesystems) do however store it, and you
can get it via debugfs:
# debugfs -R 'stat /home/andrew/src/mcp3008/a.out' /dev/mmcblk0p2
node: 126467 Type: regular Mode: 0755 Flags: 0x80000
Generation: 400960989 Version: 0x00000000:00000001
User: 414 Group: 414 Project: 0 Size: 69272
File ACL: 0 Directory ACL: 0
Links: 1 Blockcount: 136
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x5af804d6:46957cc0 -- Sun May 13 10:26:46 2018
atime: 0x5af804d1:da6a67c4 -- Sun May 13 10:26:41 2018
mtime: 0x5af804d2:089b61e0 -- Sun May 13 10:26:42 2018
crtime: 0x5af804d1:da6a67c4 -- Sun May 13 10:26:41 2018
Size of extra inode fields: 32
Extended attributes:
security.capability (20) = 01 00 00 02 00 00 02 00 00 00 00 00 00 00 00 00 00
00 00 00
EXTENTS:
(0-16):589824-589840
--
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|