25. This is to find all the files in the /apps directory but do not search in /a
ID: 3886273 • Letter: 2
Question
25. This is to find all the files in the /apps directory but do not search in /apps/bin:
A. find /apps -name –prune "/apps/bin" -o -print
B. find /apps -name "/apps/bin" -prune -o -print
C. find /apps/bin -name "/apps" -o -print
D. find /apps -name –skip "/apps/bin" –o –print
E. find /apps -filename –skip "/apps/bin" –o –print
5
26. To find all files that have been modified in the last five
days:
A. find / -mtime +5 -print
B. find / -mtime -5 –print
C. find / -mtime 5+ –print
D. find / -mtime 5- –print
E. find / -mtime 5* -print
27. To find files in /var/adm di
rectory that have not been mod
ified in the last five days:
A. find / -mtime +5 -print
B. find / -mtime -5 –print
C. find / -mtime 5+ –print
D. find / -mtime 5- –print
E. find / -mtime ^5 -print
28. To find all directories in /etc
A. find /etc -ty
pe dir -print
B. find /etc -type d -print
C. find /etc -dir -print
D. find /etc –type=d -print
E. find /etc -d -print
29. To find all files but not directories in /etc
A. find /etc -type !dir -print
B. find /etc !-type d -print
C. find /etc -!dir -print
D. find /etc –t=!d -print
E. find /etc ^d -print
30. To match all filenames that
start with ‘f’, followed by any
two characters, followe
d by any string; the end
character must be an ‘s’:
A. ls f??[?*]s
B. ls f??*s
C. ls f**?s
D. ls f?**s
E. ls f**+s
Explanation / Answer
25. This is to find all the files in the /apps directory but do not search in /apps/bin:
Ans:D. find /apps -name –skip "/apps/bin" –o –print
26. To find all files that have been modified in the last five
days:
Ans: B. find / -mtime -5 –print
Syntax is: find -mtime -no.of days.
27. To find files in /var/adm di
rectory that have not been mod
ified in the last five days:
Ans: A. find / -mtime +5 -print
28. To find all directories in /etc
Ans:B. find /etc -type d -print
29. To find all files but not directories in /etc
Ans: A. find /etc -type !dir -print
30. To match all filenames that
start with ‘f’, followed by any
two characters, followe
d by any string; the end
character must be an ‘s’:
Ans: B. ls f??*s
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.