find and locate
Search for file on mounted file systems using the find and locate commands.
Syntax:
Task 1:
Find the files owned by harry, and ccopy it to cataog: /opt/dir
Solution:
Task 2:
Find all files owned by user 'alex' and redirect the output to /home/alex/files
Solution:
Task 3:
Find all sizes of 10K file or directory under the /etc
directory, and copy to /tmp/findfiles
directory. Then, find all files or directories with Lucy as the owner, and copy them to /tmp/findfiles
Solution:
Last updated
Was this helpful?