Solories 10 PART 2

Is this your test? Login to manage it. If not, you can create a test just like it.

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

1.
1 point
QUESTION 1
Val has gathered information about the data stored in her home directory using the following
command line.
$ du -sk * | sort -n | tail > file2
Which answer correctly describes what happens when the command is invoked?
A. The tail command redirects stdin to file2
B. The sort command redirects stdout to the du command
C. The stdout from the du command is sent to the sort command
D. The stderr from the tail command will be sent to file2
2.
1 point
QUESTION 2
Click the Exhibit button.
The exhibit shows a listing of Jane's home directory. Jane wants to delete the directory dir1.
Choose the command that would remove only the dir1 directory.
A. rm ./widgets/*
B. rm ./widgets/dir1
C. rm -r ./widgets
D. rmdir ./widgets/dir1
3.
1 point
QUESTION 3
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
4.
1 point
QUESTION 4
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
5.
1 point
You have a default install of Solaris 10 on your desktop system.
You are user tim. Examine the following command and output.
$ ls -l project465.odt
-rw-r--r-- 1 tim tim 394 Apr 9 15:29 project465.odt
You need to allow another user access to write the file. You do not have access to the root
account. Which command can be used to grant write access to the file?
A. chown command
B. chgrp command
C. setfacl command
D. nischown command
6.
1 point
QUESTION 6
Click the Exhibit button.
Examine the exhibit. Based on the information in this exhibit, which files can user Jane delete?
A. file1 file2 log
B. file2 log
C. file1 file3 log
D. file1 file2 file3 log
7.
1 point
QUESTION 7
Frank executes the following single command line:
$ ln /export/home/frank/audio_books/enders_game
/export/home/frank/bookdata
Choose the files that would result from executing this command.
A. -rw-r--r-- 2 frank frank 1699 Oct 29 00:51 enders_game
B. lrwxrwxrwx 1 frank frank 27 May 17 00:54
/export/home/frank/audio_books/enders_game -> /export/home/frank/bookdata
C. -rw-r--r-- 2 frank frank 1699 Oct 29 00:51 bookdata
D. lrwxrwxrwx 1 frank frank 42 May 17 00:54 /export/home/frank/bookdata ->
/export/home/frank/audio_books/enders_game
8.
1 point
QUESTION 8
Click the Exhibit button.
The exhibit shows a listing of Jane's directory. Consider the first entry buttons. Choose the
commands that might have been used to create this file.
A. cp snippets buttons
B. ln gadget buttons
C. ln snippets buttons
D. ln search buttons
E. cp gadget buttons
F. ln -s snippets buttons
9.
1 point
QUESTION 9
Click the Exhibit button.
Jane has listed the files in her home directory as shown in the exhibit. Choose the answers that
correctly describes the files in this directory. (Choose three.)
A. The file fixit is a symbolic link to the file repair
B. The file buttons can be executed by a user in the sales group
C. The file gadget could be a hard link to the file buttons
D. The file search can be modified by users in the sales group
E. The file repair is a symbolic link to the file fixit
F. Users in the sales group can enter the widgets directory
10.
1 point
QUESTION 10
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/
11.
1 point
QUESTION 11
Click the Exhibit button
This user is using the Korn shell. Which command did the user execute to display the list shown
in the exhibit?
A. fc -l 122-137
B. fc -l 122
C. fc -l 122 137
D. history
12.
1 point
QUESTION 12
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
13.
1 point
QUESTION 13
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 redirect to /dev/null
D. stdin, stderr and stdout are sent to /dev/null
14.
1 point
QUESTION 14
Click the Exhibit button
Which answer best describes this block of code?
A. This is part of a for loop.
B. This is a if/then/else command.
C. This is part of a case statement.
D. This is part of a while loop.
15.
1 point
QUESTION 15
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
16.
1 point
QUESTION 16
Jim has a compressed text file named saved.zip
Jim used the following command to create the file:
zip -r saved plants
adding: plants (deflated 94%)
Jim wants to list the contents of the plants file, but not extract it.
Which command will NOT list the contents of the file plants?
A. gunzip -c saved.zip
B. gzcat saved.zip
C. unzip -c saved.zip
D. unzip -l saved.zip
17.
1 point
QUESTION 17
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.
18.
1 point
QUESTION 18
Which command can NOT use the ~/.rhost for authentication?
A. ftp
B. rcp
C. rlogin
D. rsh
E. rdist
19.
1 point
QUESTION 19
Wally is trying to execute commands from his host trisol on a remote host called urbank A.
Urbanka has been configured with a .rhosts file. Choose the command that will NOT use
the .rhost authentication.
A. rcp
B. rlogin
C. telnet
D. rsh
20.
1 point
QUESTION 20
Consider the following command:
$ find . -name "*.txt" -print
Choose the answer that best describes -name
A. an argument
B. an option
C. a variable
D. a preference
21.
1 point
QUESTION 21
Click the Exhibit button.
The user Frank displays a command history as seen in the exhibit. Choose the number that
history assigned to the command in which Frank used an absolute path.
A. 20
B. 19
C. 18
D. 16
E. 14
22.
1 point
QUESTION 22
When a non-root user changes their password which of the following is true?
A. The new password must contain all alphanumeric characters.
B. The new password can NOT contain numbers.
C. The password can contain spaces.
D. The password can be the reverse of the users name.
23.
1 point
QUESTION 23
Click the Exhibit button.
A user named Jim has just logged into the system and issued a command to list his home
directory. Which of the following commands could be used to display the listing as shown in the
exhibit? (Choose two.)
A. ls -p -e *
B. ls -a-l *
C. ls -a -l
D. ls -pe
E. ls -al
24.
1 point
QUESTION 24
While working in his home directory Jim lists the directory contents with the following result:
$ ls -F
affiliates* daily-report* fixes today
appointment expenses/ phone-list@ windfil>
year-report|
From this list of files, which file is executable?
A. affiliates
B. fixes
C. expenses
D. phone-list
E. windfil
F. yearly-report
25.
1 point
QUESTION 25
Click the Exhibit button
You are examining the /usr/sfw/share/man directory, and then issue a sequence of commands as
shown in the exhibit. Which answer correctly displays the output of the pwd command?
A. /usr/sfw
B. /usr
C. /usr/sfw/share
D. /
26.
1 point
QUESTION 26
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 ]]
27.
1 point
QUESTION 27
What are the minimum number of characters that a regular user must use when creating a
password?
A. 0
B. 2
C. 4
D. 6
E. 8
28.
1 point
QUESTION 28
What are the minimum number of characters that a regular user must use when creating a
password?
A. 0
B. 2
C. 4
D. 6
E. 8
29.
1 point
QUESTION 29
Jane has two text files, file1 and file2. She wants to append the contents of file2 to the existing
contents of file1. Choose the command that will achieve this goal.
A. cat file1 >> file2
B. cat file1 file2 > file1
C. echo file2 >> file1
D. file1 << file2
E. >file2 >> file1
F. cat file2 | file1
G. cat file2 >> file1
30.
1 point
QUESTION 30
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
31.
1 point
QUESTION 31
While working in his home directory, Jim lists the contents of the directory with the following
result:
$ ls -F
affiliates* daily-report* fixes today
appointment expenses/ phone-list@ windfil>
year-report|
This directory listing indicates that the phone-list file is what type of file?
A. directory
B. block special file
C. executable file
D. hard link
E. symbolic link
F. ordinary file
32.
1 point
QUESTION 32
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.
A. pstack
B. ps
C. prstat
D. prun
33.
1 point
QUESTION 33
Choose the answer that describes a process that runs in the background and provides a service.
A. user process
B. system daemon
C. rouge process
D. defunct process
E. shell process
34.
1 point
QUESTION 34
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
35.
1 point
QUESTION 35
Wally is logged into a system and is searching in a file using the following command.
$ grep -i "$LOGNAME" weekly-reports.txt
What is Wally searching for in this file?
A. The string wally, upper or lower case.
B. The string LOGNAME, upper or lower case.
C. The string LOGNAME at the end of a line, upper or lower case.
D. The string $LOGNAME upper or lower case.
36.
1 point
QUESTION 36
Choose the command that will display a list of process signals.
A. signal -l
B. ps -s
C. psig
D. kill -l
37.
1 point
QUESTION 37
Frank is writing a ksh script. How does he indicate the beginning and end of a block of statements
in a while loop?
A. Using { and }
B. Using [ and ]
C. Using do and done
D. Using if and fi
38.
1 point
QUESTION 38
You have a directory named images, this directory contains various digital images of various file
format types. You need to list all of the .gif and .jpg files. You decide to use a find command to
gather this information. Choose the command that will display these files correctly.
A. find ./images -type f \( -name \*.gif -o -name \*.jpg \) '{}'
B. find ./images -type f \( -name '*.gif' -a -name '*.jpg' \) -print
C. find ./images -type f \( -name \*.gif -o -name \*.jpg \)
D. find ./images -type f -name "*.gif" -name "*.jpg" -print
E. grep ash userdata ; grep ksh userdata
39.
1 point
QUESTION 39
Click the Exhibit button.
The exhibit shows the first few lines of a system run control script. What is the meaning of the -d
in the test expression?
A. If the first expression is true.
B. If the /usr/bin directory exists.
C. If the first expression evaluates to false.
D. If /usr/bin contains the exit command.
40.
1 point
QUESTION 40
Jane executes the following command:
$ alais search='grep -i
>The
> is defined by setting which shell variable?
A. PS1
B. PS2
C. PS3
D. PS4
41.
1 point
QUESTION 41
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. Wally executes the following command:
$ fg
Which job will be placed in the foreground of the shell?
A. ./makecert
B. ./crypttool.sh confidential-report
C. ./affiliate
D. vi cust-report
42.
1 point
QUESTION 42
Which positional parameter holds the value of the number of positional parameters?
A. $0
B. $*
C. $#
D. $@
43.
1 point
QUESTION 43
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
44.
1 point
QUESTION 44
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.
45.
1 point
QUESTION 45
Jim wants to alias the grep command to the string search. Choose the command that Jim should
add to his .
kshrc file to accomplish this alias.
A. alias search = 'grep -i'
B. alias search='grep -i'
C. alias search ='grep -i'
D. alias search=`grep -i`
46.
1 point
QUESTION 46
Click the Exhibit button
While working in his home directory, Wally executes the commands shown in the exhibit. Wally
needs to execute a find command that he had previously executed. He is using a ksh shell.
Choose the command which will execute the find command again.
A. r 163
B. !find
C. !!find
D. r -f
47.
1 point
QUESTION 47
Wally wants to quickly create a file that stores some information about a upcoming meeting. Wally
is on the phone with his customer and doesn't want to interrupt the conversation to find a pen or
pencil. Choose the command sequence that Wally might use on his system to store this
information.
A. cat < meeting.txt Monday, the 23
rd
, 10:00 AM
B. cat > meeting.txt Monday, the 23
rd
, 10:00 AM
C. cat < meeting.txt Monday, the 23
rd
, 10:00 AM
D. cat > meeting.txt Monday, the 23
rd
, 10:00 AM
48.
1 point
QUESTION 48
Click the Exhibit button.
The exhibit is a listing of your current directory. You need to place the file sonic into the directory
dir1 and rename the file to game, while removing the original file. Choose the commands that will
accomplish this task. (Choose two.)
A. cp ./sonic /widgets/dir1/game ; rm sonic
B. mv /sonic widgets/dir1/game
C. cp /sonic widgets/dir1/game ; rm /sonic
D. mv sonic widgets/dir1/game
E. cp ./widgets/dir1/sonic /game; rm -r sonic
F. mv sonic ./dir1/game
G. cp ./sonic ./widgets/dir1/game ; rm ./sonic
H. mv /sonic /widgets/dir1/ ; rm ./sonic
49.
1 point
QUESTION 49
While working in his home directory Jim lists the directory contents with the following result:
From this list of files, which file is executable?
A. affiliates
B. fixes

C. expenses
D. phone-list
E. windfil
F. yearly-report
50.
1 point
QUESTION 50
You have a file named customer1 and you need to examine the file in read only mode using the vi
editor. Which two commands will open the file in the vi editor as read only? (Choose two.)
A. view customer1
B. vi -ro customer1
C. vi -RO customer1
D. view -ro customer1
E. vi -R customer1
F. vi -r customer1