Linux Exam Questions Flashcards
A service in the server is generating errors after changes. What directories would contain the file
/etc file
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?
The database used by the locate command is not up-to-date.
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?
The binary files should be placed in the directory located in the PATH.
As a junior system administrator, you were tasked with installing packages updates on an Ubuntu server. Which command would you run
apt upgrade
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?
Traceroute
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?
The service needs to be restarted to apply the changes.
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?
tar
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?
Other users do not have high enough level permissions to run the script.
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?
The user chose Live mode, which doesn’t retain its state.
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?
Grub encryption
Which of the following commands is used to update the list of available packages when using Debian package management?
apt update
Which RPM command will output the name of the package that supplied the /etc/exports file?
rpm -qf /etc/exports
What is detailed by a Free Software license?
Conditions for distributing and modifying the licensed software.
Which of the following commands lists the dependencies of a given dpkg package?
apt show package
Which of the following are not a common service offered by public cloud providers?
Graphics as a Service (GaaS)