101-500 Real Exam Dumps Questions and answers 91-100
Get Full Version of the Exam
http://www.EnsurePass.com/101-500.html
Question No.91
Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)
-
uptime
-
up
-
top
-
uname -u
Correct Answer: AC
Question No.92
Which variable defines the directories in which a Bash shell searches for executable commands?
-
BASHEXEC
-
BASHRC
-
PATH
-
EXECPATH
-
PATHRC
Correct Answer: C
Question No.93
Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)
-
esc ZZ
-
ctrl :w!
-
esc zz
-
esc :wq!
-
ctrl XX
Correct Answer: AD
Question No.94
Which of the following commands replaces each occurrence of #39;bob#39; in the file letter with #39;Bob#39; and writes the result to the file newletter?
-
sed #39;/bob/Bob#39; letter gt; newletter
-
sed s/bob/Bob/ letter lt; newletter
-
sed#39;s/bob/Bob#39; letter gt; newletter
-
sed #39;s/bob/Bob/g#39; letter gt; newletter
-
sed #39;s/bob, Bob/#39; letter gt; newletter
Correct Answer: D
Question No.95
What happens after issuing the command vi without any additional parameters?
-
vi starts and loads the last file used andmoves the cursor to the position where vi was when it last exited.
-
vi starts and requires the user to explicitly either create a new or load an existing file.
-
vi exits with an error message as it cannot be invoked without a file name to operate on.
-
vi starts in command mode and opens a new empty file.
-
vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text.
Correct Answer: D
Question No.96
What is the purpose of the Bash built-in export command?
-
It allows disks to be mounted remotely.
-
It runs a command as a process in a subshell.
-
It makes the command history available to subshells.
-
It sets up environment variables for applications.
-
It shares NFS partitions for use by other systems on the network.
Correct Answer: D
Question No.97
Which of the following commands displays the contents of a gzip compressed tar archive?
-
gzip archive.tgz | tar xvf –
-
tar ztf archive.tgz
-
gzip -d archive.tgz | tar tvf –
-
tar cf archive.tgz
Correct Answer: B
Question No.98
Which of the following commands will reduce all consecutive spaces down to a single space?
-
tr #39;\s#39; #39; #39; lt; a.txt gt; b.txt
-
tr -c #39; #39; lt; a.txt gt; b.txt
-
tr -d #39; #39; lt; a.txt gt; b.txt
-
tr -r #39; #39; #39;\n#39; lt; a.txt gt; b.txt
-
tr -s #39; #39; lt; a.txt gt; b.txt
Correct Answer: E
Question No.99
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?
-
cat lt; myapp | cat gt; file1.log
-
myapp 0gt;amp;1 | cat gt; file1.log
-
myapp | cat gt; file1.log
-
myapp | tee file1.log
-
tee myapp file1.log
Correct Answer: D
Question No.100
Which of the following commands kills the process with the PID 123 but allows the process to quot;clean upquot; before exiting?
-
kill -PIPE 123
-
kill -KILL 123
-
kill -STOP 123
-
kill -TERM 123
Correct Answer: D
Get Full Version of 101-500 Dumps