Commands:
find /var/www/html/media -type f -name ‘.php’
find /var/www/html/media -type f -name '.php’ |wc -l
ls -al /media (1) I tried this
find /var/www/html/media -type f -name ‘.php’ -exec cp --parents {} /media ; (2) And I tried this too
find /var/www/html/media -type f -name '.php’ -exec cp --parents {} /media ;
find /media -type f -name ‘*.php’ | wc -l
ls -al /media
That was a quick response! Thank you but looks like even this is failing.
Commands:
cd /var/www/html/ecommerce
find -type f -name ‘.js’ -exec cp --parents {} /ecommerce ;
tree /ecommerce | more
ls -al
find /var/www/html/ecommerce -type f -name '.js’ | wc -l
find /ecommerce -type f -name ‘*.js’ | wc -l
Everything seems good but the result is failed!!! Please help!