Docsity

Linux System Administration Exam Questions and Answers, Exams of Science education

Toggle sidebar
bg1
Linux Exam (54Q) Latest,Graded A+
1) You need to search for man pages that relate to the Postfix service. Which command will do this -
CORRECT ANSWER man -k postfix, apropos postfix
2) With **asymmetric encryption**, the public key is sent to the recipient and the information that is
encrypted with the public key can only be decrypted with the private key -CORRECT ANSWER True
3) Which of the following commands would you use to add a default gateway router address of
10.10.4.254 to your route table -CORRECT ANSWER route add default gw 10.10.4.254
4) If we wanted to learn about all the available options for the cd command, how might we display its
manual page -CORRECT ANSWER man cd
5) Which directory contains filesystem management utilities such as cp or mv -CORRECT ANSWER /bin
and /usr/bin
6) We need to create a symbolic link in your home directory that links the manual file to the
/usr/share/doc/manual directory. Which command would we do to achieve this -CORRECT ANSWER ln
-s /usr/share/doc/manual ~/manual
Explanation
The -s option creates a symbolic link with the ln command.
7) **** While working in the **command line console (not running X Windows)**, you suddenly need
access to another shell to do another task. You don't want to quit or halt the current application. What
might you do to run both your other function in a shell while still running your current application -
CORRECT ANSWER You can press ALT-F2 or CTRL-ALT-F2 to open an alternate console screen and
access a new shell session.
Explanation
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Linux System Administration Exam Questions and Answers and more Exams Science education in PDF only on Docsity!

Linux Exam (54Q) Latest,Graded A+

  1. You need to search for man pages that relate to the Postfix service. Which command will do this - CORRECT ANSWER man -k postfix, apropos postfix
  2. With asymmetric encryption, the public key is sent to the recipient and the information that is encrypted with the public key can only be decrypted with the private key - CORRECT ANSWER True
  3. Which of the following commands would you use to add a default gateway router address of 10.10.4.254 to your route table - CORRECT ANSWER route add default gw 10.10.4.
  4. If we wanted to learn about all the available options for the cd command, how might we display its manual page - CORRECT ANSWER man cd
  5. Which directory contains filesystem management utilities such as cp or mv - CORRECT ANSWER /bin and /usr/bin
  6. We need to create a symbolic link in your home directory that links the manual file to the /usr/share/doc/manual directory. Which command would we do to achieve this - CORRECT ANSWER ln -s /usr/share/doc/manual ~/manual Explanation The -s option creates a symbolic link with the ln command.
  7. **** While working in the command line console (not running X Windows), you suddenly need access to another shell to do another task. You don't want to quit or halt the current application. What might you do to run both your other function in a shell while still running your current application - CORRECT ANSWER You can press ALT-F2 or CTRL-ALT-F2 to open an alternate console screen and access a new shell session. Explanation

Pressing ALT-F2 or CTRL-ALT-F2 will open an alternate console. You can use this console to perform other tasks without stopping the program running in the first console screen. You can switch back by pressing ALT-F1 or CTRL-ALT-F1.

  1. What command will print a list of all running processes on our system - CORRECT ANSWER top, ps
  2. What commands will tell us what our IP address is on our Linux system - CORRECT ANSWER ifconfig, ip addr Explanation The ifconfig utility can be used to both view our current IP address and network-related settings, as well as modify them. On newer Red Hat-based distributions you can also use the command ip addr to view the set IP address.
  3. Which section of a man page contains administrative utilities used by the root user - CORRECT ANSWER 8
  4. You are in charge of installing a new Linux server. This Linux server will be used to host a high load production database application that will be used by a large number of users. Which might be the best Linux distribution to choose for this mission critical application server, with consideration for out-of-box configuration - CORRECT ANSWER Red Hat Enterprise Linux, SUSE Linux Enterprise Server Explanation These distributions are not only designed for high-demand network services but also provide enterprise- level support, should it be needed.
  5. You have been tasked to install six new Linux servers for your organization's legal department. The head of the legal department asks that five additional servers be added to this project. You are still constrained by the original time schedule for this project. What might be an appropriate response - CORRECT ANSWER Explain to the department head making the request that the additional work may interfere with your ability to meet the original timeline. Ask for guidance on whether you need to meet the original timeline and scope of the deployment and see if you can extend the timeline Explanation
  1. Who founded the GNU Project - CORRECT ANSWER CORRECT ANSWER Richard Stallman Explanation Richard Stallman champions the freely-distributed source code concept behind GNU.
  2. We need to find a file named la.txt in our current directory. Which command would we use - CORRECT ANSWER CORRECT ANSWER find -name la.txt
  3. What environmental variable might we use to specify the directory where man page files will be located - CORRECT ANSWER CORRECT ANSWER MANPATH
  4. You are going to install Linux on a PC that you built out of several spare parts. The distribution you chose does not list some of your components in its HCL. This machine is only going to be used for email, spreadsheets, and light office work. What should you do - CORRECT ANSWER CORRECT ANSWER The parts not listed in the HCL should be replaced with parts that are, if possible. Explanation It is always your best option to use supported hardware when installing Linux distributions. This will ease the process of installing your distro, because the parts are under the HCL and you know they are supported.
  5. When it comes to bash configuration files, which one of these files would be read first when a login bash shell is run - CORRECT ANSWER CORRECT ANSWER /etc/profile
  6. The users in your organization are having issues accessing the corporate e-mail server, hosted by a third-party vendor. You suspect that a router may be down somewhere within your organization's network. Given that the host name of the e-mail server is pop.linuxacademy.com, which of the following commands would you enter at the shell prompt to test this - CORRECT ANSWER CORRECT ANSWER

traceroute pop.linuxacademy.com, tracepath pop.linuxacademy.com Explanation The traceroute pop.linuxacademy.com and the tracepath pop.linuxacademy.com commands list all of the routers between the source and destination hosts, allowing you to identify a router that isn't working correctly.

  1. You need to delete the /APP directory within your user's home directory. Given that it has child folders and files in it, which is the best command to do this - CORRECT ANSWER CORRECT ANSWER rm -rf ~/APP Explanation The rm -rf command will delete the directory and its contents; the r flag will recurcisely delete files and directories, while the f flag forces the run.
  2. What utility allows us to switch users, including switching to the root user - CORRECT ANSWER CORRECT ANSWER su Explanation The su command allows us to switch to a different user's shell prompt. If we use the su command withing appending a username, it will switch to the root user.
  3. As a developer, your supervisor wants you to download the source code for the latest Linux kernel and then modify it to support a custom application that your organization is developing in-house. Given the current kernel open source licensing is this possible to do - CORRECT ANSWER CORRECT ANSWER Yes, you can create a new Linux flavor and even redistribute it as long as the source code will remain freely available. Explanation The Linux kernel uses the GPL, which allows for the modification and redistribution of source code that will remain freely available.
  1. You've downloaded an application package that has an extension of .rpm. What is required to install it on your Linux system - CORRECT ANSWER CORRECT ANSWER Red Hat Package Management System
  2. You have been editing a configuration file using vi. You realize that you've made many mistakes and need to quit without saving the changes so that you can start over. Which command will allow you to do this - CORRECT ANSWER CORRECT ANSWER :q!
  3. Which of the following shell commands will load the ssh client and connect as the stephen user to an ssh server with an IP address of 172.16.10.123 - CORRECT ANSWER CORRECT ANSWER ssh [email protected], ssh -l stephen 172.16.10.
  4. What file might we look at to view our most recently entered shell commands - CORRECT ANSWER CORRECT ANSWER ~/.bash_history
  5. While using vi to edit a file in command mode, you try to use the BACKSPACE key to delete a word, but nothing happens. What's wrong - CORRECT ANSWER CORRECT ANSWER You have to switch to insert mode.
  6. Which of the files below will configure the path to the man page's files - CORRECT ANSWER CORRECT ANSWER /etc/man_db.conf
  7. Which software movement is considered by many to be more radical than the others - CORRECT ANSWER CORRECT ANSWER FSF
  8. If you wanted to disable a second network interface in Linux what command would you enter at the shell - CORRECT ANSWER CORRECT ANSWER ifdown eth

Explanation The ifdown eth1 command will disable the second Ethernet interface in the system.

  1. Besides man, what other text-mode utility can you use to get help in Linux - CORRECT ANSWER CORRECT ANSWER info Explanation info, while similar to man, is newer and more interactive.
  2. What utility can we use to view manual pages - CORRECT ANSWER CORRECT ANSWER man
  3. You need to verify that a remote host with a hostname of dns2.linuxacademy.com is up and running. Which of the following commands would you enter at the shell prompt to do this - CORRECT ANSWER CORRECT ANSWER ping dns2.linuxacademy.com Explanation The ping command will test communications between your system and the specified host.
  4. Which of the following sections gives a brief review of the syntax used for a particular command or utility within a man page - CORRECT ANSWER CORRECT ANSWER SYNOPSIS
  5. When it comes to bash configuration files, which of the following will be read/executed when logging into a shell that is considered to be a non-login shell - CORRECT ANSWER CORRECT ANSWER ~/.bashrc

The User Datagram Protocol (UDP) is an unacknowledged, connectionless protocol that sends packets without requesting a confirmation of receipt. This makes it ideal for network applications that need very low latency and can tolerate a certain degree of unreliability, such as streaming video.

  1. What is the default shell for most Linux distributions - CORRECT ANSWER CORRECT ANSWER bash
  2. Which software development model is considered to be less structured than the others - CORRECT ANSWER CORRECT ANSWER Bazaar
  3. You have just added a second network interface to your Linux system. If your first NIC is aliased as eth0. What is the most likely value of your newly-added NIC alias - CORRECT ANSWER CORRECT ANSWER eth
  4. When using command completion within a Linux shell, what key should you press - CORRECT ANSWER CORRECT ANSWER TAB
  5. You have a project where you have to build an email server for your organization of around 200 employees. You are thinking of using a Linux system to accomplish this. Would it be possible to achieve this - CORRECT ANSWER CORRECT ANSWER Yes. Linux can be configured to provide email services. Explanation There are many email packages available for Linux that are scalable for larger organizations.
  6. Which of the following are actual roles of the Linux filesystem - CORRECT ANSWER CORRECT ANSWER To preserve data integrity, Being able to locate data easily
  1. By default, which port does the sshd daemon listen on for incoming SSH connections - CORRECT ANSWER CORRECT ANSWER 22