0

How to use the new statx function to get only one information: the creation time (birth time) of a file.

I have tried in terminal command line without success.

cjclm7
  • 305
  • P.S.: I tagged this question on stat tag because I have not enough points to create the new correct tag: statx (appreciate if someone tag it correctly) – cjclm7 May 13 '18 at 11:14
  • See my answer there: https://askubuntu.com/a/980750/158442 – muru May 13 '18 at 11:17
  • I have seen your answer on that link. Is not possible to have a simpler solution? I mean the question is simple: how to use statx to get a creation date of a file. Do we really need all that for this simple task? – cjclm7 May 13 '18 at 11:34
  • Until a wrapper gets added to glibc or someone published a one-off command just for this on Ubuntu, yes. And the statement of a question being simple has little to no relation with the simplicity of the answer. – muru May 13 '18 at 11:37
  • stat now prints birth time, you need glibc >= 2.28 and coreutils >= 8.31 – André Miranda Jan 06 '20 at 21:00

0 Answers0