Solories 10 PART 3

Is this your test? Login to manage it. If not, you can develop an exam just like it.

This is a non-interactive preview of the quiz content.

1.
1 point
QUESTION 51
Val wants to change the permissions on a file to remove access for all user that are not in the
file's group. She also wants the group permissions to allow the file to have read and write access.
Val can currently read and write the file. Which octal mode with the chmod command will set
those permissions?
A. chmod 664 ./data
B. chmod 660 ./data
C. chmod 775 ./data
D. chmod 550 ./data
2.
1 point
QUESTION 52
You have a file that contains a list of parts in a single column. You need to append the text
string .ex2009 to each entry. You will use the vi editor and the last line mode to append this text
to each entry. Which command will add the text correctly?
A. :%s/*/.ex2009/
B. :%s/.$/.ex2009/
C. :%s/$/.ex2009/
D. :%s/*$/.ex2009/
3.
1 point
QUESTION 53
Click the Exhibit button
The exhibit shows information about data in Jane's home directory. Jane wants to delete, from
her home directory, the directory named widgets and this directory's contents. Select the
command that would best work to achieve Jane's goal.
A. rm -r ./widgets
B. rmdir ./widgets
C. rm * ./widgets
D. rmdir -r *
E. rmdir -r ./widgets
F. rm -r *
4.
1 point
QUESTION 54
You own a file that is part of a web development project. This file is shared by the group
permission among the members of the web development group called webdev. The world
permissions for the file are set to read only for security reasons. You wish to give write access on
the file for a contractor not in the webdev group. You do not have root access. Which method
describes how you can grant write permissions to the contractor's user ID?
A. Edit the /etc/group file and add the contractor's user ID to the group.
B. Create a owner ACL for the contractor's user ID.
C. Add a mandatory access control for the contractor's user ID.
D. The world or group permissions must be modified by root
5.
1 point
QUESTION 55
Jane is about to edit a file with the vi editor. She executes the following command:
$ vi ./customer_sat.txt
Choose the vi editor mode that Jane will be using when the file is opened.
A. command mode
B. edit mode
C. last line mode
D. ex mode
6.
1 point
QUESTION 56
Click the Exhibit button.
Val wants to copy the customer data files from the data directory, to a directory called customer.
The new customer directory will be in Val's home directory. Choose the command that Val will
use to accomplish this task.
A. touch $HOME/customer ; cp customer-local customer-region customer-state $HOME/customer
B. mkdir $HOME/customer ; mv customer-local customer-region customer-state $HOME/customer
C. mkdir ../customer ; cp customer-local customer-region customer-state ../customer
D. cp customer-local customer-region customer-state | mkdir $HOME/customer
7.
1 point
QUESTION 57
You have created a tar archive of a source code directory. You now want to compress the file
using the gzip utility. Choose the command that you could use to compress the file.
A. gzip -c source_code.tar
B. gzip -d source_code.tar
C. gzip source_code.tar
D. gzip -cvf source_code.tar.gz source_code.tar
8.
1 point
QUESTION 58
Val is copying files named daily.rpt from a directory called reports into her home directory on host
users1 over to /var/tmp/val on host datastor. Choose the command that Val might use to copy the
files.
A. ftp user1:~val/reports/daily.rpt datastor:/var/tmp/val
B. rcp cp user1:~val/reports/daily.rpt datastor:/var/tmp/val/daily.rpt
C. rcp user1:~val/reports/daily.rpt datastor:/var/tmp/val/daily.rpt
D. rcp datastor:/var/tmp/val/daily.rpt user1:~val/reports/daily.rpt
E. rsh user1:~val/reports/daily.rpt datastor:/var/tmp/val/daily.rpt
9.
1 point
QUESTION 59
Your logging into the system as user Val, you are notified upon login that you must change your
user password on the system. Your current password is 2co0lu! Choose the password that meets
the requirements for a user changing the password on a Solaris 10 system.
A. 2co0l4u
B. valiscol
C. 2C00L4u2
D. 321 123!
10.
1 point
QUESTION 60
A user is creating an archive using the zip utility. The user executes the following sequence of
commands.
$ zip -rm archive.zip /data/dir1
$ zip -rm archive.zip /product/dir1
$ zip -rm archive.zip /data/dir2
What will be the result of running this sequence of commands?
A. An archive.zip file will be created and the contents will be the three directories.
B. An archive.zip file will be created the contents will be /data/dir2
C. An archive.zip file will be created the contents will be /data/dir1
D. The three directories will be removed from the archive.zip
11.
1 point
QUESTION 61
Frank has a archive named data-1-4.tar and he needs to recover the contents of the archive.
Which command will restore the contents of the archive to disk?
A. tar xvf data-1-4.tar
B. tar uvf data-1-4.tar
C. tar cvf data-1-4.tar
D. tar rvf data-1-4.tar
E. tar tvf data-1-4.tar
12.
1 point
QUESTION 62
Frank is going to add four files to a tar archive. The files are called data1, data2, etc. These files
will be stored in a new archive called data-1-4.tar Which command will correctly create this
archive?
A. tar xvf data-1-4.tar data1 data2 data3 data4
B. tar uvf data-1-4.tar data1 data2 data3 data4
C. tar cvf data-1-4.tar data1 data2 data3 data4
D. tar rvf data-1-4.tar data1 data2 data3 data4
E. tar tvf data-1-4.tar data1 data2 data3 data4
13.
1 point
QUESTION 63
Frank wants to login to a remote system named proteus and edit multiple files. The remote host
proteus has been configured with a .rhosts file in Frank's home directory.
Choose the command that will allow Frank to login without entering a password.
A. telnet
B. ftp
C. rcp
D. dtlogin
E. rlogin
14.
1 point
QUESTION 64
You have a compressed file named meeting-agenda.gz. You would like to examine the content of
this compressed file. Choose the command that will display the files content to the screen.
A. unzip -c meeting-agenda.gz
B. gzip -c meeting-agenda.gz
C. zcat meeting-agenda.gz
D. gzcat meeting-agenda,gz
15.
1 point
QUESTION 65
Choose the answer that correctly describes the Java Archive tool.
A. The jar tool creates archive compatible with the tar command.
B. The jar tool use the zip command syntax to create archive files.
C. The jar tool creates compressed archive files.
D. The jar tool create archives compatible with the compress command
16.
1 point
QUESTION 66
Val needs to transfer multiple files from a remote system to her local system. She has established
an ftp session with the remote system. When multiple files are transferred with ftp the system will
prompt you to determine if you want each file transferred. Choose the ftp command that will
disable this ftp prompt when transferring multiple files.
A. mget
B. mput
C. promp
D. noprompt
E. recv
17.
1 point
QUESTION 67
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.
A. The PIDs of all syslogd processes are displayed.
B. The PID and full path of the first syslogd process is displayed.
C. The PIDs and name of each syslogd process is displayed.
D. The PIDs and full path of all syslogd processes is displayed
18.
1 point
QUESTION 68
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's home directory. He wants to find the number of entries that
are NOT the plant "Gallienii" or "gallienii". Choose the command that Wally might use to extract
the information from the file.
A. grep -v Gallienii ./coffee/plants | wc -l
B. grep -nv Gallienii ./coffee/plants| wc -l
C. find ./coffee/plants ( !G* -o !g* ) | wc -l
D. grep -ivn Gallienii ./coffee/plants| wc -l
E. grep -vc Gallienii ./coffee/plants | wc -l
19.
1 point
QUESTION 69
You have a file that contains confidential customer data called customer489.dat. You need to
make this file available to the sales group but protect the data from other users. You are not a
member of the sales group and you do not have root access.
-rw-r--r-- 1 tbussart staff 465394 Apr 1 15:20 customer489.dat $ getent
group sales
sales::1034:tom,dick,harry
Which command will configure the file for the described access?
A. chgrp sales /export/home/tbussart/customer489.dat
B. groupadd sales /export/home/tbussart/customer489.dat
C. setfacl -m g:sales:rw-,m:rw- /export/home/tbussart/customer489.dat
D. chmod +w /export/home/tbussart/customer489.dat
20.
1 point
QUESTION 70
Wally created a new file named coursebook. The umask was set to the Solaris 10 default when
the file was created. Wally used the following command to change the files permissions:
$ chmod g+w ./coursebook
Which octal mode with the chmod command can Wally use to set these same permissions?
A. chmod 662 ./coursebook
B. chmod 660 ./coursebook
C. chmod 664 ./coursebook
D. chmod 442 ./coursebook
21.
1 point
QUESTION 71
Click the Exhibit button.
The exhibit shows a listing of Jane's directory. Consider the entry repair. Choose the commands
that might have been used to create this file.
A. cp /export/home/jane/things/fixit /export/home/jane/repair
B. ln /export/home/jane/repair /export/home/jane/things/fixit
C. ln /export/home/jane/things/fixit /export/home/jane/repair
D. mkfile 32b /export/home/jane/repair
E. ln -s /export/home/jane/things/fixit /export/home/jane/repair
F. ln -s /export/home/jane/repair /export/home/jane/things/fixit
22.
1 point
QUESTION 72
Tina has executed the following command:
$ affiliate.sh >/dev/null 2>1
Choose the statement that is true concerning this command.
A. stdin is redirected /dev/null, stderr is sent to the screen.
B. stderr is redirected to /dev/null, stdout is sent to the screen.
C. stdout is redirected to /dev/null, stderr is redirec
D. stdin, stderr and stdout are sent to /dev/null
23.
1 point
QUESTION 73
Click the Exhibit button.
You are using the vi editor to edit the file displayed in the exhibit. You are in command mode and
the cursor is on the first letter of the word oriented on line four. You need to delete two words:
oriented and interactive. Choose the commands that will complete this task. (Choose two.)
A. dw
B. 2dw
C. d2w
D. 2d$
E. 2D$
F. 2wd
24.
1 point
QUESTION 74
You attempt to login using the Solaris Login Graphical User Interface (GUI), however an error
message is displayed. After closing the error message you are returned to the Login Screen. How
would you login to read the log files that were indicated in the error message. Which of the
following describes how you can login to read these log files?
A. At the Login Screen select the Options, then Sessions, then Fail Safe Session and login.
B. Reboot the system, login to the CDE Desktop session with your user name and password.
C. From a different system at the login screen select Options, Remote Login and select your
system, login to the session with your user name and password.
D. At the Login Screen select the Options, select Reset Login Screen, login to the session with
your user name and password.
25.
1 point
QUESTION 75
Wally is using a Korn shell. He uses the escape key followed by the backslash key for file name
completion in this shell. Which of the following commands did Wally use to configure file name
completion?
A. set filec
B. set -o emacs
C. set -o vi
D. fc -l
26.
1 point
QUESTION 76
Click the Exhibit button.
Jane is attempting to create a directory in which to store scripts. The exhibit shows the sequence
of commands used by Jane and the resulting error that has occurred. Which command or
sequence of commands would have created the directory correctly? (Choose two.)
A. touch mydir; mkdir scripts
B. mkdir -p ./mydir/scripts
C. md ./mydir/scripts
D. make -dir mydir/scripts
E. mkdir ./mydir; mkdir ./mydir/scripts
F. mkdir mydir; mkdir scripts
27.
1 point
QUESTION 77
Wally has just edited a file with the vi editor, he saves the new file with the name newdata.
The following is a listing of that file:
-rw-r----- 1 wally other 111286 May 27 19:10 newdata
Based on the information provided, what is the value of the umask setting?
A. 0620
B. 0025
C. 0027
D. 0022
28.
1 point
QUESTION 78
Click the Exhibit button.
Jane has listed information about directories under her home directory. Choose which statement
is true concerning the file finder.
A. finder is a symbolic link
B. finder has a hard link
C. finder is writable
D. finder has a ACL
29.
1 point
QUESTION 79
You own a file that is part of a web development project. This file is shared by the group
permission among the members of the web development group called webdev. The world
permissions for the file are set to read only for security reasons. You wish to give write access on
the file for a contractor not in the webdev group. You do not have root access. Which method
describes how you can grant write permissions to the contractor's user ID?
A. Edit the /etc/group file and add the contractor's user ID to the group.
B. Create a owner ACL for the contractor's user ID.
C. Add a mandatory access control for the contractor's user ID.
D. The world or group permissions must be modified by root.
30.
1 point
QUESTION 80
Tina has executed the following command:
$ affiliate.sh 2>>/var/log/worklog
Choose the statement that is true concerning this command.
A. stdin is redirected to a file.
B. stderr is redirected to a file.
C. stdout is redirected to a file.
D. all output from the script is redirected to a file.
31.
1 point
QUESTION 81
Click the Exhibit button.
Frank needs to add write access for the sales group, so he uses the following command:
$ chmod g+w project543.dat
Choose which answer reflects the result of this command.
A. Only the sales group will be given write access to the file.
B. Only the sales group and market group will have write access to the file.
C. The sales group and market group and user jane will have write access to the file.
D. The sales group and market group and user jane and others will have write access to the file.
32.
1 point
QUESTION 82
Click the Exhibit button.
Jane has discovered that the file bluetooth is corrupted. She wants to remove all instances of this
file from the system. What command should Jane use to remove all instances of bluetooth?
A. rm blue*
B. rm bluetooth cellphone
C. rm keyboard bluetooth quarters
D. rm bluetooth cellphone keyboard quarters
33.
1 point
QUESTION 83
Click the Exhibit button.
The exhibit is a listing of Jane's directory. Choose which file is linked to the file keyboard.
A. bluetooth
B. cellphone
C. mouse
D. quarters
34.
1 point
QUESTION 84
Which permission bit is required on a directory in order to list the files and directories that reside
in the directory?
A. execute bit
B. read bit
C. write bit
D. read and write bit
35.
1 point
QUESTION 85
Click the Exhibit button.
The user named Val issued a sequence of commands, as shown in the exhibit. Which of the
following choices describes the results of the last command executed by Val?
A. Changes directory to Val's home directory.
B. -: does not exist is displayed.
C. -: No such file or directory is displayed.
D. Changes directory to the previous directory.
E. Changes to the first directory listed in the current directory.
36.
1 point
QUESTION 86
Click the Exhibit button.
The exhibit shows the first few lines of a system run control script. In which shell is this script
executed?
A. Bourne Shell
B. Z Shell
C. C Shell
D. Korn Shell
E. Bash Shell
37.
1 point
QUESTION 87
Click the Exhibit button.
Wally is using a Korn shell, and is writing a report for a customer. The report contains instructions
on how to use a set of scripts that he has created for this customer. The scripts are all interactive.
Wally is running the scripts while creating the report, so he can cut and paste the user prompts
into his document. From the information in the exhibit, choose the script that was last running in
the foreground.
A. ./makecert
B. ./crypttool.sh confidential-report
C. ./affiliate
D. vi cust-report
38.
1 point
QUESTION 88
Frank is writing a ksh script. How does he indicate the beginning and end of a block of statements
in a case statement?
A. case and esac
B. do and done
C. case and done
D. [[ and ]]
39.
1 point
QUESTION 89
Click the Exhibit button
Wally is using a Korn shell, and is writing a report for a customer. The report contains instructions
on how to use a set of scripts that Wally has created for this customer's use. The scripts are all
interactive so Wally is running the scripts while creating the report to cut and paste the user
prompts into his document. Examine the exhibit. Which command will Wally use to continue
working in the cust-report file?
A. kill -THAW 1854
B. fg %+
C. fg %-
D. fg %1
E. fg
40.
1 point
QUESTION 90
Wally created the following aliases.
printall='pr * | lpr'
pa=printall
Choose the answer that best describes what the result will be when Wally uses the pa alias.
A. The string printall will be displayed.
B. The command not found error message will be displayed.
C. The value of the printall alias will be displayed.
D. The printall alias will execute.
41.
1 point
QUESTION 91
Click the Exhibit button.
Wally is using a Korn shell, and is writing a report for his customers. The report contains
instructions on how to use a set of scripts that he has created for the customers to use. The
scripts are all interactive. Wally is running the scripts while creating the report so he can cut and
paste the user prompts into his document. From the information in the exhibit, choose the script
that was last executed in the shell.
A. ./makecert
B. ./crypttool.sh confidential-report
C. ./affiliate
D. vi cust-report
42.
1 point
QUESTION 92
Dave has a compressed tar archive named pics.tar.Z Dave needs to uncompress and extract the
data from this file. Which command will extract and uncompress the file?
A. uncompress pics.tar.Z;tar xvf pics.tar
B. zcat -c pics.tar.Z | tar xvf -
C. bunzip2 pics.tar.Z;tar xvf pics.tar
D. bzcat pics.tar.Z | tar xvf -
43.
1 point
QUESTION 93
Val wants to backup her home directory to a tape device. Choose the command she might use to
create the backup.
A. tape
B. mt
C. compress
D. tar
44.
1 point
QUESTION 94
Jane needs to list a directory on a remote system named entropy. The system has been
configured with a .rhosts file in Jane's home directory. Choose the command that will display the
contents of a directory without Jane having to login to the remote system.
A. rsh entropy ls /export/home/jane/scripts/*
B. rcp entropy ls /export/home/jane/scripts/*
C. ls -r entropy /export/home/jane/scripts/*
D. rlogin entropy ls /export/home/jane/scripts/*
45.
1 point
QUESTION 95
You have a directory that contains only text files. You wish to compress all of these files. Which
command can be used to compress these text files?
A. ls * | compress
B. echo * > compress -
C. compress *
D. compress < echo *
46.
1 point
QUESTION 96
Wally wants to list all files in his current directory. Choose the command that will list all the files
only in Wally's current directory.
A. echo *
B. strings .
C. ls -a
D. ls -l
E. ls -R
47.
1 point
QUESTION 97
Click the Exhibit button.
A user named Val wants to configure the man command so that she is able to use the man -k
option. Note that the -k option uses the windex database. Which command will configure the
windex database for man pages?
A. man -f windex
B. catman -w
C. whatis windex
D. make -m man
48.
1 point
QUESTION 98
Click the Exhibit button.
The user named Val issued a sequence of commands, as shown in the exhibit. Which of the
following choices describes the results of the last command executed by Val?
A. Changes directory to Val's home directory.
B. -: does not exist is displayed.
C. -: No such file or directory is displayed.
D. Changes directory to the previous directory.
E. Changes to the first directory listed in the current directory.
49.
1 point
QUESTION 99
Click the Exhibit button.
Jane lists the content of her home directory. The output of this listing is shown in the exhibit.
Choose the answer that best describes the first line of the command's output.
A. The amount of data in this directory in megabytes.
B. The number of inodes used in this directory.
C. The amount of data used in kilobytes in this directory.
D. The number of blocks used in this directory.
50.
1 point
QUESTION 100
Click the Exhibit button.
The exhibit shows information about data in Jane's home directory. Which answer describes
where the directory named dir1 is stored within the file system.
A. In the inode associated with directory dir1
B. In the directory file called dir1
C. In the ACL associated with dir1
D. In the directory file called widgets
E. In the inode associated with directory widgets
F. In the ACL associated with widgets