Following is command to use.
find / -name <file name> -printf '%Tc %p\n' 2>/dev/null
Following is sample output of above command.
# find / -name repomd.xml -printf '%Tc %p\n' 2>/dev/null
Wed 25 Mar 2015 11:28:49 AM PDT /root/repodata/repomd.xml
Products to which Article Applies
All Linux Operating System
Search Keywords: linux unix find finding file files commands time stamp timestamp date print printing command search searching
Article Author: Tarun Boyella
No comments:
Post a Comment