Linux Find Command
Task: a. Find out all files (not directories) having .js extension from location /var/www/html/official. b. Copy all those files along with their parent directory structure to location /official on same server. c. Please make sure not to copy the entire /var/www/html/official directory content. Solution: find /var/www/html/official -type f -name '*.js' -exec cp --parents {} /official \;
Linux Find Command Task: a. Find out all files (not directories) having .js extension from location /var/www/html/official. b. Copy all those files along with their parent directory structure to location /official on same server. c. Please make sure not to copy the entire /var/www/html/official directory content. Solution: find /var/www/html/official -type f -name '*.js' -exec cp --parents {} /official \; dev-ops
Linux Find Command Task Find file directory j extension location varwwwhtmlofficial b Copy file along parent directory structure location official server c Please make sure copy entire varwwwhtmlofficial directory content Solution find varwwwhtmlofficial type f name j exec cp parent official devops