Ensurepass.com : Ensure you pass the IT Exams
2018 Jan Oracle Official New Released 1z0-876
100% Free Download! 100% Pass Guaranteed!
http://www.EnsurePass.com/1z0-876.html
Oracle Solaris Certified Associate Exam
Question No: 101
Wally has a file with data about various coffee plants, the data is stored in a file named plants, the file is in the coffee directory of Wally#39;s home directory. He wants to find the number of entries that are NOT the plant quot;Gallieniiquot; or quot;gallieniiquot;. Choose the command that Wally might use to extract the information from the file.
-
grep -v Gallienii ./coffee/plants | wc -l
-
grep -nv Gallienii ./coffee/plants| wc -l
-
find ./coffee/plants ( !G* -o !g* ) | wc -l
-
grep -ivn Gallienii ./coffee/plants| wc -l
-
grep -vc Gallienii ./coffee/plants | wc -l
Answer: D
Question No: 102
Jane is writing a shell script. While testing the script, she finds that the script is in a infinite
loop. She issues the following command:
$ kill `pgrep affiliate.sh`
Which signal does this command send to the process?
-
SIGHUP
-
SIGKILL
-
SIGINT
-
SIGTERM
Answer: D
Question No: 103
Click the Exhibit button.
The exhibit shows both the data from Jane#39;s home directory and a command. Based on the data shown, choose the command that would move Jane into the directory named things.
A. mv ../..
-
cd ./things
-
cd ./../../things
-
chdir ../../things
-
cd /../../things
Answer: C
Question No: 104
Wally notices that the system seems to be running slower, and he wants to run a command to determine which process might be using the most system resources. Choose the command he might use for this purpose.
-
pstack
-
ps
-
prstat
-
prun
Answer: C
Question No: 105
You have a parts list, and you need to search it for all parts that contain the string V1 or the string R3. You decide to use a grep utility to search the file. Which grep command will you use?
-
grep -F #39;V1|R3#39; ./parts_list
-
fgrep #39;V1|R3#39; ./parts_list
-
egrep #39;V1|R3#39; ./parts_list
-
grep #39;V1|R3#39; ./parts_list
Answer: C
Question No: 106
You need to find all files in your home directory hierarchy that contain the string sample in
the file name. You want a relative path to each file so you can easily retrieve it. Choose the command that will find these files.
-
ls -l * | grep -v sample
-
find . -print | grep sample
-
ls -Rl | grep -i sample
-
grep sample lt; find . -print
Answer: B
Question No: 107
Wally is searching for the PID of the syslog process on his system. He uses the following command:
$ pgrep syslogd
Choose the answer that describes the outcome of this command.
-
The PIDs of all syslogd processes are displayed.
-
The PID and full path of the first syslogd process is displayed.
-
The PIDs and name of each syslogd process is displayed.
-
The PIDs and full path of all syslogd processes is displayed.
Answer: A
Question No: 108
Which grep program is used to search for literal strings and does not interrupt regular expressions?
-
grep
-
lgrep
-
egrep
-
fgrep
Answer: D
Question No: 109
Frank is the administrator of the site where you work. You notice Frank issues the following command:
# kill -HUP `cat /usr/local/apache2/logs/httpd.pid`
Choose the answer that best describes what this command will do.
-
Terminate the httpd process and all the child processes.
-
Restart the httpd process and all child processes.
-
Force the httpd process to reread it#39;s configuration file.
-
Terminate the httpd process but not the children.
Answer: C
Question No: 110
Val is searching through a file using the following egrep command:
$ egrep #39;3 #39; ./customer-data
Choose the answer that best describes what the result of this search will be.
-
Find all lines with #39;3 #39; in the line.
-
Find all lines with one or more #39; #39; characters.
-
Find all lines with three #39; #39; characters.
-
Find all lines with one or more 3#39;s.
-
Find all lines with more than three 3#39;s.
Answer: D