bugfindutils - Bugs: bug #61327, Support for birth time


bug #61327: Support for birth time

Submitter:  None
Submitted:  Sun 10 Oct 2021 02:11:15 PM UTC
Category:  find Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  berny
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  4.8.0
Fixed Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Mon 29 Nov 2021 10:03:07 AM UTC, comment #4: 

> On Linux, `find -printf %BT` produces empty string even if the operating system and filesystem support birth times.

That's true, but GNU/Linux does not provide it via the stat() system call
but via statx() instead.  And that's what I wrote in comment #1: we'll have to
change find(1) to the statx() system call like ls(1) does to support birth
time on GNU/Linux.

Bernhard Voelker <berny>
Group administrator
Mon 29 Nov 2021 07:27:13 AM UTC, comment #3: 

> This directive produces an empty string if the underlying
> operating system or filesystem does not support birth times.

I do not think the above statement is accurate.  On Linux, `find -printf %BT` produces empty string even if the operating system and filesystem support birth times.

Kamil Dudka <kdudka>
Sat 27 Nov 2021 11:42:24 PM UTC, comment #2: 

It seems this took a while ...

I pushed the commit to document the %B format directive of
`find -printf` at:


Bernhard Voelker <berny>
Group administrator
Mon 11 Oct 2021 01:16:52 AM UTC, comment #1: 

Well, find(1) does support birth time - both in -newerXY (with 'B' for X or Y)
and in -printf '%Bk' (with the time format as specified by k like for
%Ak, %Ck and %Tk).  It's in since 2007:


The implementation relies on the support of the underlying stat(2)/lstat(2) functions
and whether the struct stat provides the birth time.  Unfortunately, our main
platform GNU/Linux does not have it.  Instead, we'd have to switch to the
newer statx(2) function like in coreutils' ls(1) or stat(1).

Finally, the documentation for -printf %Bk is missing.
I'll come up with a documentation patch soon.

Bernhard Voelker <berny>
Group administrator
Sun 10 Oct 2021 02:11:15 PM UTC, original submission:  

These days file managers, ls and stat (--printf=%w) support birth time.

Is there a plan for find to support printing birth time in the future?



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by kdudka (Posted a comment)
  • -email is unavailable- added by berny (Posted a comment)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-11-27 berny StatusNone Fixed
        ReleaseNone 4.8.0
    2021-10-11 berny Assigned toNone berny

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code