Linux Exam Questions Flashcards

1
Q

A service in the server is generating errors after changes. What directories would contain the file

A

/etc file

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

A new Linux user saved an important file in the system, but can’t find it. He tries to use the locate command, but it doesn’t appear. What may be the cause of the disappearance?

A

The database used by the locate command is not up-to-date.

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

A Linux user downloaded a new binary to the OS, but can’t run it right away. What should she do to allow execution of the binary from the location in the system?

A

The binary files should be placed in the directory located in the PATH.

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

As a junior system administrator, you were tasked with installing packages updates on an Ubuntu server. Which command would you run

A

apt upgrade

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

An Employee in your company submitted a support ticket regarding connectivity speed when trying to access a specific server. Which of the following network testing tools can you use to find the cause of the slowdown in the route to the server?

A

Traceroute

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

A network administrator activated the SAMBA service in a Linux machine .He then changed the configuration file to allow guest Login. While testing the new configuration, he was not able to log in as a guest. A status check confirmed that the system is up and running. What may be the cause?

A

The service needs to be restarted to apply the changes.

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

You were asked to create a script that will back up and archive all user desktop directories in a Linux machine. Which of the following tools will you use in the script to back up the directories?

A

tar

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

A Bash script is run by a user to access/etc/shadow and fetch a hashed password. When a different user runs the script however, the execution fails. What could be the problem?

A

Other users do not have high enough level permissions to run the script.

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

A new Linux user selected the Live option upon installation. He then created a holiday schedule and saved it in the home directory before turning off the computer. The next day he turned the computer on and could not find the file. What may be the reason?

A

The user chose Live mode, which doesn’t retain its state.

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

A user presses the letter ‘e’ on the keyboard during the Linux boot process and was prompted to enter a password, which security mechanism was implemented?

A

Grub encryption

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

Which of the following commands is used to update the list of available packages when using Debian package management?

A

apt update

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

Which RPM command will output the name of the package that supplied the /etc/exports file?

A

rpm -qf /etc/exports

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

What is detailed by a Free Software license?

A

Conditions for distributing and modifying the licensed software.

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

Which of the following commands lists the dependencies of a given dpkg package?

A

apt show package

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

Which of the following are not a common service offered by public cloud providers?

A

Graphics as a Service (GaaS)

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