(101-500) Pre-Assessment Quiz Flashcards

1
Q

Which of the following commands will display the shell that the user is currently using? (Choose two.)
a. echo $1
b. echo $2
c. echo $SHELL
d. echo $0

A

c. echo $SHELL
d. echo $0

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

Which of the following keystroke combinations will exit the vi text editor? (Choose two.)
a. :q
b. ZZ
c. XX
d. !q

A

a. :q
b. ZZ

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

Jordan wants to remove an empty directory that is no longer being used. Which of the following commands could he use to accomplish this task? (Choose all that apply.)
a. rm olddir
b. rm -r olddir
c. rmdir -r olddir
d. rmdir olddir

A

b. rm -r olddir
d. rmdir olddir

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

Which of the following commands will change group ownership of a file to finance? (Choose all that apply.)
a. chown finance myfile
b. chown :finance myfile
c. chgrp finance myfile
d. chgrp -v finance myfile

A

b. chown :finance myfile
c. chgrp finance myfile
d. chgrp -v finance myfile

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

Jan needs to set permissions on a file so that the owner has read, write, and execute permissions. The group should have read permissions only, and everyone else should have no access. Which of the following parameters, when used with the chmod command, would set the permissions described?
a. 047
b. 740
c. 026
d. 620

A

b. 740

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

If a hard link is created for a file and then the original file is deleted, what is the status of the hard link as a result?

a. The hard link is still accessible with all of the original contents of the original file.

b. The hard link is automatically deleted as well.

c. The hard link becomes broken and when using a color-coded terminal turns red.

d. The hard link is broken but appears normal in the terminal. The user will only notice that it is broken when trying to access the file.

A

a. The hard link is still accessible with all of the original contents of the original file.

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 create a physical volume out of an unused partition?

a. lvm --create	
b. volumecreate	
c. lvm --newpv	
d. pvcreate
A

d. pvcreate

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

Which filesystem is the /proc directory mounted to?
a. root - /
b. sysfs
c. procfs
d. swap

A

c. procfs

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

Murray runs the lsmod command on a guest virtual machine. He sees a few modules that start with virtio. Which of the following hypervisors is he most likely running?
a. Hyper-V
b. VMWare
c. VirtualBox
d. KVM

A

d. KVM

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

Katy wants to see the last 10 entries in the log file /var/log/auth.log. Which of the following commands will display only those 10 entries?

a. tail /var/log/auth.log
b. less /var/log/auth.log
c. cat -n 10 /var/log/auth.log
d. last 10 /var/log/auth.log

A

a. tail /var/log/auth.log

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