From YOUR home directory, execute a find command string that will locate the fil
ID: 3798721 • Letter: F
Question
From YOUR home directory, execute a find command string that will locate the file called resolv.conf. Include the -exec flag in the find command to cat the file to the screen. Begin your find search from the /etc directory.
Select the correct find command string below that will accomplish this.
find /etc -name 'resolv.conf' -cat {} ;
find /etc -name 'resolv.conf' -exec cat {} ;
find . -name 'resolv.conf' -exec cat {} ;
find / -name 'resolv.conf' -exec cat {} ;
QUESTION 2
What find command option (flag) will allow you to specify you are searching for a directory?
-dir
-D
-type d
-size
QUESTION 3
What does the -ok flag do for the find command?
Checks if you are okay?
Like -exec, except that the generated command line is printed with a question mark first, and is executed only if the user responds by typing y.
Match a specified number of links.
Nothing. It is not a valid find command option.
QUESTION 4
Copy file called sortfile from my home directory. The file contains three columns of information : username, uid number and group name respectively, separated by a field separator.
Will the following command sort the file on the group name field?
sort -t! -k3 sortfile
Yes
No
QUESTION 5
Copy the file called sortfile from my home directory. The file contains three columns of information : username, uid number and group name respectively, separated by a field separator.
The following command will reverse sort the the file numerically on the uid.
sort -t! -k2rn sortfile
True
False
QUESTION 6
Using the tar command, tar the directory called midterm located in my home directiry. Create a tar file called midterm.tar. What is the size of the file called midterm.tar in bytes?
QUESTION 7
cd to my home directory.
Name one of the files that are contained within the tar file called accounts.tar?
QUESTION 8
What is the Parent Process ID of the process called kdmflush?
The PPID is ____
a-find /etc -name 'resolv.conf' -cat {} ;
b-find /etc -name 'resolv.conf' -exec cat {} ;
c-find . -name 'resolv.conf' -exec cat {} ;
d-find / -name 'resolv.conf' -exec cat {} ;
Explanation / Answer
QUESTION 1
c- find . -name 'resolv.conf' -exec cat {} ;
QUESTION 2
-dir
QUESTION 3
d Nothing. It is not a valid find command option.
QUESTION 4
No
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.