I'm using the find command find /path/on/server -mtime -1 -name '*.js'
to get a list of files modified recently but I'd like the output to also have the date the files were modified
Linux – Find Command Modified Date in Output
linux
Related Topic
- Linux – Using Find to Locate Files Older Than a Specific Date
- Linux – How to Automatically Add New Host to known_hosts
- Linux – Listing of files recursively with modified time in tree-like format
- Linux – High Server Crash Rates During Leap Second Day
- Linux – Find command exclude files whose path match a certain pattern
- Linux – List files with last access date in linux
- Linux – SCP transfer only modified files
- Linux – grep ouput filepath with file modified date
Best Answer
You can use the
-printf
option to find to print this if you want%h
the leading directories%f
the file name%TD
the files modification datethe
%p
format specifier can be used in place of%h%f
for the full path.You get output like
There are lots of options to the printf option so you can build any output format you want.