find and locate
Search for file on mounted file systems using the find and locate commands.
Syntax:
find <location> -user <username> -exec <komanda> <tapilan_fayllar> \;Task 1:
mkdir -p /opt/dir
find / -user harry -exec cp -rfp {} /opt/dir/ \;Task 2:
find / -user alex -type f > /home/alex/filesTask 3:
Last updated