Hands-on task
This task is step 6 of the course “Linux: everyday tasks”
Find every PHP script on the site
You've inherited a server with an old website in /srv/www. Before touching anything, take inventory: find all files with the .php extension at any depth and write their full paths (starting with /srv/www), sorted, to /root/php_files.txt.
What you'll practise:
- find
- -name
- glob patterns
- sort
- recursive traversal