Valid EX200 Dumps shared by EduDump.com for Helping Passing EX200 Exam! EduDump.com now offer the newest EX200 exam dumps, the EduDump.com EX200 exam questions have been updated and answers have been corrected get the newest EduDump.com EX200 dumps with Test Engine here:
19. Create a script to search for files * Create a script named myresearch * Place the script under /usr/local/bin * The script is used to search for all files under /usr that are smaller than 10 MB and have group write permission, and place these files into /root/myfiles
Correct Answer:
Solution: mkdir /root/myfiles vim /usr/local/bin/myresearch #!/bin/bash find /usr -type f -and -size -10M -and -perm -2000 -exec cp -a {} /root/myfiles \; :wq chmod +x /usr/local/bin/myresearch bash /usr/local/bin/myresearch ll -h /root/myfiles Script explanation: (#!/bin/bash): #! is a conventional marker that tells the system which interpreter should be used to execute the script. /bin/bash means the script is executed using the default Bash shell. Here, a for loop is needed to iterate over the found GIDs (group IDs) for processing. (awk -F':' '{print $3}' /etc/group): awk is used to split and process text. -F specifies the field separator. ":" indicates that the colon is used as the delimiter. {print $3} prints the third field (the group ID).