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? - ** VERIFIED 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? - ** VERIFIED ANSWERS **✔✔:q! Or Q bang
What directory would the ~ character represent? - ** VERIFIED ANSWERS **✔✔The
home directory of the currently logged in user.
What is the default shell for most Linux distributions - ** VERIFIED 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? - ** VERIFIED ANSWERS **✔✔dmesg |
less (driver message)
Which of the following sections give a brief review of the syntax used for a particular
command or utility within a man page? - ** VERIFIED ANSWERS **✔✔SYNOPSIS
In which directory could you add files so that a newly created user will automatically have
them when they first log in? - ** VERIFIED ANSWERS **✔✔/etc/skel
Which of the following provides binary files containing prewritten code elements or
interfaces that programmers can call when writing Linux programs? - ** VERIFIED
ANSWERS **✔✔Libraries
, You are running a ping command to see if a particular host is set up. How would you specify
to the ping command that only five packets get sent to the remote host? - ** VERIFIED
ANSWERS **✔✔ping -c 5 host.example.com
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? -
** VERIFIED ANSWERS **✔✔ping dns2.linuxacademy.com
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? - ** VERIFIED ANSWERS **✔✔You have to
switch to insert mode.
Which command would uncompress the contents in the file 'important.bz2' - ** VERIFIED
ANSWERS **✔✔bunzip2
How would you add a new user account to a system? - ** VERIFIED ANSWERS
**✔✔useradd newguy
Which software development model is considered to be less structured than the others? - **
VERIFIED ANSWERS **✔✔Bazaar
Which command in a script would display the text "hello world" to the screen, followed by a
new line? - ** VERIFIED ANSWERS **✔✔Echo "hello world"
Which file(s) are used for DNS resolution? - ** VERIFIED 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? - ** VERIFIED ANSWERS **✔✔There is no execute
permission set
If you wanted to disable a second network interference in Linux what command would you
enter at the shell? - ** VERIFIED 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? - ** VERIFIED ANSWERS **✔✔:q! Or Q bang
What directory would the ~ character represent? - ** VERIFIED ANSWERS **✔✔The
home directory of the currently logged in user.
What is the default shell for most Linux distributions - ** VERIFIED 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? - ** VERIFIED ANSWERS **✔✔dmesg |
less (driver message)
Which of the following sections give a brief review of the syntax used for a particular
command or utility within a man page? - ** VERIFIED ANSWERS **✔✔SYNOPSIS
In which directory could you add files so that a newly created user will automatically have
them when they first log in? - ** VERIFIED ANSWERS **✔✔/etc/skel
Which of the following provides binary files containing prewritten code elements or
interfaces that programmers can call when writing Linux programs? - ** VERIFIED
ANSWERS **✔✔Libraries
, You are running a ping command to see if a particular host is set up. How would you specify
to the ping command that only five packets get sent to the remote host? - ** VERIFIED
ANSWERS **✔✔ping -c 5 host.example.com
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? -
** VERIFIED ANSWERS **✔✔ping dns2.linuxacademy.com
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? - ** VERIFIED ANSWERS **✔✔You have to
switch to insert mode.
Which command would uncompress the contents in the file 'important.bz2' - ** VERIFIED
ANSWERS **✔✔bunzip2
How would you add a new user account to a system? - ** VERIFIED ANSWERS
**✔✔useradd newguy
Which software development model is considered to be less structured than the others? - **
VERIFIED ANSWERS **✔✔Bazaar
Which command in a script would display the text "hello world" to the screen, followed by a
new line? - ** VERIFIED ANSWERS **✔✔Echo "hello world"
Which file(s) are used for DNS resolution? - ** VERIFIED 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? - ** VERIFIED ANSWERS **✔✔There is no execute
permission set