101-500 Real Exam Dumps Questions and answers 91-100

Get Full Version of the Exam

Question No.91

Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)

  1. uptime

  2. up

  3. top

  4. uname -u

Correct Answer: AC

Question No.92

Which variable defines the directories in which a Bash shell searches for executable commands?



  3. PATH



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.)

  1. esc ZZ

  2. ctrl :w!

  3. esc zz

  4. esc :wq!

  5. 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?

  1. sed #39;/bob/Bob#39; letter gt; newletter

  2. sed s/bob/Bob/ letter lt; newletter

  3. sed#39;s/bob/Bob#39; letter gt; newletter

  4. sed #39;s/bob/Bob/g#39; letter gt; newletter

  5. 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?

  1. vi starts and loads the last file used andmoves the cursor to the position where vi was when it last exited.

  2. vi starts and requires the user to explicitly either create a new or load an existing file.

  3. vi exits with an error message as it cannot be invoked without a file name to operate on.

  4. vi starts in command mode and opens a new empty file.

  5. 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?

  1. It allows disks to be mounted remotely.

  2. It runs a command as a process in a subshell.

  3. It makes the command history available to subshells.

  4. It sets up environment variables for applications.

  5. 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?

  1. gzip archive.tgz | tar xvf –

  2. tar ztf archive.tgz

  3. gzip -d archive.tgz | tar tvf –

  4. 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?

  1. tr #39;\s#39; #39; #39; lt; a.txt gt; b.txt

  2. tr -c #39; #39; lt; a.txt gt; b.txt

  3. tr -d #39; #39; lt; a.txt gt; b.txt

  4. tr -r #39; #39; #39;\n#39; lt; a.txt gt; b.txt

  5. 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?

  1. cat lt; myapp | cat gt; file1.log

  2. myapp 0gt;amp;1 | cat gt; file1.log

  3. myapp | cat gt; file1.log

  4. myapp | tee file1.log

  5. 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?

  1. kill -PIPE 123

  2. kill -KILL 123

  3. kill -STOP 123

  4. kill -TERM 123

Correct Answer: D

Get Full Version of 101-500 Dumps