Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 8 years ago.
How to sort the files according to the time stamp in unix? I need to sort the files and also based on time they created.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 8 years ago.
How to sort the files according to the time stamp in unix? I need to sort the files and also based on time they created.
File modification:
ls -t
Inode change:
ls -tc
File access:
ls -tu
"Newest" one at the bottom:
ls -tr
None of this is a creation time. Most Unix filesystems don't support creation timestamps.
Use -t on ls. e.g:.
ls -tr
or
ls -ltr