What command can I use to find the following info when a dir is provided as argument ?
I tired this one
find /home/dojo50 -name "*" -exec file {} \;
But it lacks file size and datetime info.
Is it possible to combine File
with ls
in find
.
something like but doesnot work
find /home -name "*" -maxdepth 1 -exec ls -lh {} \; -exec file {} \;
for mime-type
use file
command in -exec
option and for other item use -printf
options. like:
find * -printf "%kK %AD %AT %p " -exec file -b {} \;
see man find
for more information.