File creation date
So I have been reading a bit on being able to get the creation date from a file to be printed... I know you can get all this info from ls -l but I was wondering if it was possible to get the YY/MM/DD out of this....
If the creation date is not possible can you get last modification date YY/MM/DD??? I have a feeling it is not really possible from what i read just wondering if any of you guys have the inside edge to somehting |
Code:
ls -l --time-style=+%y/%m/%d | gawk '{print $6}' Code:
date -d "$(stat -c %y file)" +%y/%m/%d |
Thank you!!! I had actually just found out too! but your way is less code!
|
All times are GMT -5. The time now is 03:25 AM. |