Checking when a folder was created in Bash?

225 Views Asked by At

I know you can't for files, but is there by any chance a way to check this for folders?

1

There are 1 best solutions below

2
On

It is not possible to get creation time of any files in linux, since

Each file has three distinct associated timestamps: the time of last data access, the time of last data modification, and the time the file status last changed.

Also you as you wrote in your question "I know you can't for files, but is there by any chance a way to check this for folders?", in linux, all files and directories are considered as files, so you have your own answer in your question.

Source