(XKO-004) Pre-Assessment Quiz Flashcards

1
Q

Christine wants to watch the /var/log/syslog file in real time as he performs a few tasks on the server. Which of the following tasks will allow him to do this?

a. cat -A /var/log/syslog
b. echo /var/log/syslog
c. tail -f /var/log/syslog
d. show –all /var/log/syslog

A

c. tail -f /var/log/syslog

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Theo has created a virtual machine with a virtual disk configured to only use a minimal amount of hard disk space. The computer has a one terabyte drive, and even though he has created an 800 GB virtual disk, the host operating system is still showing 600 GB free space. Which of the following technologies is Theo’s system using?

a. JSON	
b. YAML	
c. thin provisioning	
d. thick provisioning
A

c. thin provisioning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Tyrese is reviewing the history of commands issued on a Linux workstation and sees the command: cut -d: -f1,7 /etc/passwd | tee users.txt. What does this command do?

a. Creates a file named users.txt that contains a list of usernames along with their home directory.

b. Appends a list of usernames and user ids to a file named users.txt

c. Creates a file named users.txt that contains a list of usernames along with their default BASH shell while at the same time displaying that information to the screen.

d. Appends a list of usernames and their respective home directory to a file named users.txt while at the same time displaying that information out to the screen.

A

Creates a file named users.txt that contains a list of usernames along with their default BASH shell while at the same time displaying that information to the screen.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which of the following might you expect to see as the first line of a BASH script?

a. #$/bin/bash	
b. #!/bin/bash	
c. ##/sbin/bash	
d. !#/sbin/bash
A

!/bin/bash

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In which of the following files is the user configuration information stored for Git?

a. /etc/git.conf	
b. ~/.git.conf	
c. /etc/git/git.config 	
d. ~/.gitconfig
A

d. ~/.gitconfig

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following character sets allow you to implement the Unicode standard?

a. ASCII	
b. UTF-8	
c. ISO-8859	
d. Latin1
A

b. UTF-8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which of the following commands can be used to view and set the time zone on a Linux system?

a. set-locale	 
b. timedatectl	
c. tzselect 	
d. localectl
A

b. timedatectl

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following commands can be used to view which processes are listening on a given port? (Choose all that apply.)

a. lsof
b. netstat
c. trace
d. pstrace

A

a. lsof
b. netstat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Emily wants to download a file from a web server, but doesn’t have a GUI installed. Which of the following tools could she use to download a file using the command line from the web server? (Choose two.)

a. httpget
b. curl
c. gcc
d. wget

A

b. curl
d. wget

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which of the following commands can be used to generate the host keys used by sshd?

a. ssh-keygen	
b. sshd --generate-keys 	
c. ssh --keygen	
d. keygen
A

a. ssh-keygen

How well did you know this?
1
Not at all
2
3
4
5
Perfectly