LPI LINUX
ESSENTIALS EXAM
QUESTIONS AND
ANSWERS
If you wanted to disable a second network interference in Linux what command would
you enter at the shell? - Answers-ifdown eth1
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? - Answers-:q! Or Q bang
What directory would the ~ character represent? - Answers-The home directory of the
currently logged in user.
What is the default shell for most Linux distributions - Answers-Bash
You need to troubleshoot a hardware issue. Which command would let you view the
kernel ring buffer to see what hardware was just added? - Answers-dmesg | less (driver
message)
Which command in a script would display the text "hello world" to the screen, followed
by a new line? - Answers-Echo "hello world"
Which file(s) are used for DNS resolution? - Answers-/etc/hosts and /etc/resolv.conf
An application has the following permissions set on it:
Rw-r—r—
Yet it does not run. Why is that? - Answers-There is no execute permission set
What protocol is used by network programs/applications that need very low latency and,
therefore, can tolerate a degree of unreliability? - Answers-User Datagram Protocol
, How would you set permissions on a newly created script so that it could be executed? -
Answers-Chmod u+x script.sh
What is the proper syntax for creating a parent directory, followed by a child
subdirectory? - Answers-mkdir -p dir1/dir2
You need to create a symbolic link from a file located at /usr/share/manual to a link in
your home directory named 'manual'. Which command would we use to achieve this? -
Answers-ln -s /usr/share/doc/manual ~/manual
Which of the following sections give a brief review of the syntax used for a particular
command or utility within a man page? - Answers-SYNOPSIS
In which directory could you add files so that a newly created user will automatically
have them when they first log in? - Answers-/etc/skel
How would you add a new user account to a system? - Answers-useradd newguy
Which software development model is considered to be less structured than the others?
- Answers-Bazaar
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 your other functions in a shell while still running
your current application? - Answers-You can press ALT-F2 or CTRL-ALT-F2 to open an
alternate console screen and access a new shell session.
You need to search for man that relate to the Postfix service. Which command will do
this? - Answers-apropos postfix and man -k postix (Must be root)
Which directory contains filesystem management utilities such as cp or mv? - Answers-
/bin and /usr/bin
What utility can we use to find manual pages? - Answers-Man
What file might we look at to view our most recently entered shell commands? -
Answers-~/.bash_history
What command will bring a list of all running processes on our system? - Answers-Top
Which of the following commands would you use to view a default gateway address on
your system? - Answers-Route and netstat -r
Which commands would you run to see who is currently logged into the system? -
Answers-W and who
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Greaterheights. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.49. You're not tied to anything after your purchase.