get file's last modified date stamp in Unix

82 views Asked by At

I need to find the file last modified date stamp in Unix.

Please help me me in finding the solution.enter image description here

1

There are 1 answers

3
Diego Torres Milano On

Use

ls -lct

to show and sort by last modification time.

For a single file you can use stat, for the human readable format

stat --format=%y file

or

stat --format=%Y file

for seconds since Epoch.