Hands-on task
This task is step 10 of the course “find and xargs: search and bulk operations”
find -user: files by owner
/root contains files with different owners. Find regular files at the top level of /root (without descending into subdirectories) owned by the user daemon, and write their paths (/root/…) to /root/owned.txt.
What you'll practise:
- find
- -user
- -maxdepth
- file owner