Skip to main content

Posts

Showing posts from July, 2014

List all files in directory and sub-directory with time-stamp in Linux

 List all files in directory and sub-directory with time-stamp in Linux
This post for a specific solution for problem connected to time-stamp of all files.
As we don't have time to go in each subfolder and run ls command to view the time-stamp of files.
This command combination can solve the problem:-

$ find . -type f -exec ls -lt --time-style=+"%F_%T" {} +

or

find <directory_path> -type f -exec ls -lt --time-style=+"%F_%T" {} +