Computer Tips - Linux: display the create date/time of a file

Date: 2024jun24 Keywords: brtfs, ext4, birth Language: bash Q. Linux: display the create date/time of a file You can use the `--time=birth` option of the familiar `ls` command
ls -l --time=birth MYFILE
Or for the current folder
ls -l --time=birth
Sort by reverse create time
ls -r -l --time=birth
Also the `stat` command can do it
stat --format '%w' MYFILE
These work all filesystems including ext4 and btrfs. Some instructions suggest using debugfs but it only supports extN.